Visitar URL original
Translate the `announcement-dismiss-label` language key · Issue #15289 · quarto-dev/quarto-cli · GitHub
Skip to content

Translate the announcement-dismiss-label language key #15289

Open

Description

@cderv

Description

The dismiss control of a website announcement from #15253 uses a new language key, announcement-dismiss-label.
It gives the close button of a dismissable announcement its accessible name, so screen readers announce it.
The button only shows an "X" icon, so this label is the only text a screen reader user gets.

Related: #15235

Most translations were added in #15290.
Danish (da), Greek (el) and Norwegian Bokmål (nb) still fall back to English because reviewers did not agree on the wording.
See the comment below for suggested translations.

The English value is:

announcement-dismiss-label: "Dismiss announcement"

"Dismiss" here means close or hide the announcement bar, not reject, decline or delete it.
A short imperative that matches the wording your language already uses for closing a banner or a dialog is what we are after.

Regional files (de-CH, fr-CA, pt-BR) fall back to their parent language and do not need a separate entry unless the wording should differ.

Language files (35)

Activity

  1. cderv commented on Nov 4, 2026

    @cderv
    MemberAuthor

    Translated in #15290: az, bg, ca, cs, de, es, eu, fi, fr, he, id, is, it, ja, ko, lt, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh and zh-TW. Each value is a machine translation that two independent reviewers accepted, or a correction both reviewers proposed. de-CH, fr-CA and pt-BR follow their base language.

    Three languages stay in English because the reviewers did not agree on the wording. Native speakers, please pick one or suggest a better value:

    • da: "Luk meddelelse" or "Luk meddelelsen". One reviewer finds the indefinite form unnatural for this one specific banner.
    • el: "Κλείστε την ανακοίνωση", "Κλείσε την ανακοίνωση" or "Κλείσιμο ανακοίνωσης". One reviewer finds the first one a plural or formal imperative, the other prefers a noun like the file's other labels (Καθαρισμός, Ακύρωση).
    • nb: "Lukk meldingen" or "Lukk kunngjøringen". One reviewer says "meldingen" reads as a message, not an announcement. nn took "Lukk kunngjeringa" with the same noun.

    "Dismiss" in the English value means close or hide the banner, not reject or delete it, so a value with the reject sense is the one to avoid.

    Accessible name of the dismiss button in each language

    Taken from the aria-label of the quarto-announcement-action button in the HTML of a website page rendered with lang: <code>. The button shows only an "X" icon, so this is the name a screen reader announces. da, el, nb show the English fallback.

    Language Accessible name
    az Elanı bağla
    bg Затвори съобщението
    ca Tanca l'avís
    cs Zavřít oznámení
    da Dismiss announcement
    de-CH Ankündigung schließen
    de Ankündigung schließen
    el Dismiss announcement
    es Cerrar el aviso
    eu Itxi oharra
    fi Sulje ilmoitus
    fr-CA Fermer l'annonce
    fr Fermer l'annonce
    he סגור את ההודעה
    id Tutup pengumuman
    is Loka tilkynningu
    it Chiudi l'annuncio
    ja お知らせを閉じる
    ko 공지 닫기
    lt Uždaryti pranešimą
    nb Dismiss announcement
    nl Mededeling sluiten
    nn Lukk kunngjeringa
    pl Zamknij komunikat
    pt-BR Fechar o aviso
    pt Fechar o aviso
    ru Закрыть объявление
    sk Zatvoriť oznámenie
    sl Zapri obvestilo
    sr-Latn Zatvori obaveštenje
    sv Stäng meddelandet
    tr Duyuruyu kapat
    ua Закрити оголошення
    zh-TW 關閉公告
    zh 关闭公告

    Source of the project (one page per language, lang set to the language code):

    # _quarto.yml
    project:
      type: website
    website:
      title: "Demo"
      announcement:
        content: "Demo announcement"
        dismissable: true
    format: html
    ---
    title: "de"
    lang: de
    ---
    
    Page in de.
  2. himanchalkaushale commented on Nov 9, 2026

    @himanchalkaushale

    Hi @cderv I'd like to work on this issue. Could you please assign this issue to me?

  3. cderv commented on Nov 9, 2026

    @cderv
    MemberAuthor

    Thanks for your interest! We are now looking for native speakers of Danish, Greek or Norwegian Bokmål to help with the remaining translations. If you speak one of these languages, your input on the suggestions above would be welcome.

    We don't usually assign issues to external contributors, but we welcome PRs from users who want to work on a problem they have encountered and understand. Adding a 👍 reaction to issues that are important to you is also helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions