Skip to content

Translate the tools-share and tools-download language keys #15271

Open

Description

@cderv

The book tools menu has two language keys, tools-share and tools-download, added in January 2024. tools-share is the label of the sidebar menu that lists the sharing services, and tools-download is the caption of the downloads menu and the prefix before each format name, like "Download PDF".

Only 8 translations have them, so the others fall back to English. A reader of a book in Polish or Japanese still sees "Share" and "Download" in the tools menu.

The English values are:

tools-share: "Share"
tools-download: "Download"

Each unchecked file below needs both entries.
Regional files (de-CH, fr-CA, zh-TW) already fall back to their parent language, so they only need the keys when the wording should differ.

Language files (35)

Activity

  1. self-assigned this
    on Nov 3, 2026
  2. added this to the v1.12 milestone on Nov 3, 2026
  3. cderv commented on Nov 3, 2026

    @cderv
    MemberAuthor

    #15272 fills tools-share in all 24 languages that were missing it, and tools-download in 23 of them. The values are machine translations that two independent AI reviewers accepted, or a correction both reviewers proposed on their own. They are listed in the PR.

    One value is left because the reviewers disagreed. It stays in English until a native speaker picks.

    Language Key Machine translation Other candidate What the reviewers said
    sr-Latn tools-download Preuzmi Skini One reviewer accepted "Preuzmi" as the more standard word. The other preferred "Skini" because the file already uses it in notebook-preview-download ("Skini Svesku").

    If you speak Serbian, which one would you use for the button that downloads the book, and before a format name like "Preuzmi PDF"? A PR adding tools-download to _language-sr-Latn.yml and removing it from tests/unit/language-known-gaps.yml is welcome (the language README explains it). Native speakers are also welcome to improve any of the other values.

    The two labels are icon buttons in the book sidebar, so the text is their accessible name. I rendered a book per language with sharing and downloads enabled, using the language as lang, and read the names from the HTML:

    Book used for the check (one per language)

    _quarto.yml

    project:
      type: book
    book:
      title: "Tools menu demo"
      chapters:
        - index.qmd
      sharing: [twitter, facebook]
      downloads: [pdf, epub]
    lang: pl
    format:
      html: default

    index.qmd

    # Tools menu demo
    
    See the sidebar tools.
    Language Share Download
    ca Comparteix Descarrega
    cs Sdílet Stáhnout
    da Del Download
    de Teilen Herunterladen
    fi Jaa Lataa
    fr Partager Télécharger
    he שתף הורד
    id Bagikan Unduh
    it Condividi Scarica
    ja 共有 ダウンロード
    ko 공유 다운로드
    lt Bendrinti Atsisiųsti
    nb Del Last ned
    nl Delen Download
    nn Del Last ned
    pl Udostępnij Pobierz
    pt Partilhar Baixar
    ru Поделиться Скачать
    sk Zdieľať Stiahnuť
    sr-Latn Podeli Download (English fallback)
    sv Dela Ladda ner
    tr Paylaş İndir
    ua Поділитися Завантажити
    zh 分享 下载
    zh-TW 分享 下載
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions