From 1d6da1787a04fa93108371756f1f7a35ca7d3469 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Thu, 17 Sep 2026 07:47:17 +0800 Subject: [PATCH] i18n: translate the download progress stage strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fill in the 4 `modals.download.progress.*` keys added by the previous commit across all 9 locales, so no `[TODO: Translate]` placeholder remains and the "no remaining placeholders" claim in the guidelines holds again. No new terminology: `metadata` reuses the §5 row (fr métadonnées, de Metadaten, es metadatos, ru метаданные, he מטא-נתונים, ja メタデータ, ko 메타데이터, zh-CN 元数据, zh-TW 中繼資料) and the fetching phrasing mirrors each locale's existing `download.fetchingRepoFiles` / `fetchingVersions` (de passive "werden abgerufen", es "Obteniendo", fr "Récupération des", ru "Получение", he "מביא", ja "取得中", ko "가져오는 중"). "model file" follows `errors.noModelFiles` in each file. `{name}` and `{source}` are verbatim §1-R2 placeholders. `{source}` is replaced at runtime with the *untranslated* platform name, so its surrounding spacing follows each locale's `modelCard.actions.viewOnSource` precedent — ja `{source} から`, ko `{source}에서`, zh `从 {source}` / `從 {source}`, he `מ-{source}` (as in the existing `מ-CivitAI`), ru `из {source}` (as in `из Workflow`) — and no brand ever appears inside the translated text. Punctuation: ASCII `:` for the Latin / Cyrillic / Hebrew locales and for ja / ko, whose four sibling keys in the same `progress` block already use ASCII; French keeps this file's ` : `; zh-CN / zh-TW use full-width `:` like their siblings. The guidelines gain a status block recording the pass and those spacing precedents, so a future source added to the same slot does not have to re-derive them. Verified: `pytest tests/i18n/test_i18n.py` 20 passed, `sync_translation_keys.py --dry-run` reports no drift, `npm test` exits 0 (1259 JS + 91 Vue). Each locale file gains exactly 4 lines — the values were substituted as literals rather than re-serialising the JSON, so no formatting churn. --- docs/i18n-translation-guidelines.md | 13 +++++++++++++ locales/de.json | 8 ++++---- locales/es.json | 8 ++++---- locales/fr.json | 8 ++++---- locales/he.json | 8 ++++---- locales/ja.json | 8 ++++---- locales/ko.json | 8 ++++---- locales/ru.json | 8 ++++---- locales/zh-CN.json | 8 ++++---- locales/zh-TW.json | 8 ++++---- 10 files changed, 49 insertions(+), 36 deletions(-) diff --git a/docs/i18n-translation-guidelines.md b/docs/i18n-translation-guidelines.md index 4db2c158..c49f5c5c 100644 --- a/docs/i18n-translation-guidelines.md +++ b/docs/i18n-translation-guidelines.md @@ -57,6 +57,19 @@ Locales: `en`, `zh-CN`, `zh-TW`, `ja`, `ko`, `fr`, `de`, `es`, `ru`, `he` (RTL). > `Alt` and the `↑/↓` glyphs stay Latin/verbatim in every locale, the same precedent as > `Shift+Enter` in `modals.model.metadata.notesHint`; zh-CN / zh-TW / ja use full-width > parentheses and ko keeps this file's ASCII style. +> +> **Status (2026-09, download metadata phases):** the download progress UI now names the two +> post-transfer stages instead of sitting at 100% showing `0 B/s`, adding 4 +> `modals.download.progress.*` keys (`metadata`, `indexingFile`, `fetchingSourceMetadata`, +> `fetchingMetadata`). Translated in all 9 locales in the same pass, so the "no remaining +> placeholders" claim holds again. No new terminology: `metadata` reuses the §5 row, and the +> fetching phrasing mirrors each locale's `download.fetchingRepoFiles` / `fetchingVersions`. +> `{name}` and `{source}` are verbatim §1-R2 placeholders — `{source}` is filled at runtime +> with the *untranslated* platform name, so its surrounding spacing follows each locale's +> `modelCard.actions.viewOnSource` precedent (ja `{source} から`, ko `{source}에서`, +> zh `从 {source}` / `從 {source}`, he `מ-{source}`) and no brand ever appears inside the +> translated text. ja / ko keep this block's ASCII `:` like their sibling progress keys; +> zh-CN / zh-TW use full-width `:`. --- diff --git a/locales/de.json b/locales/de.json index 64a90d73..2c27d48a 100644 --- a/locales/de.json +++ b/locales/de.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "Aktuelle Datei:", "downloading": "Wird heruntergeladen: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "Metadaten: {name}", + "indexingFile": "Modelldatei wird gelesen...", + "fetchingSourceMetadata": "Metadaten werden von {source} abgerufen...", + "fetchingMetadata": "Metadaten werden abgerufen...", "transferred": "Heruntergeladen: {downloaded} / {total}", "transferredSimple": "Heruntergeladen: {downloaded}", "transferredUnknown": "Heruntergeladen: --", diff --git a/locales/es.json b/locales/es.json index c671bbab..fba68110 100644 --- a/locales/es.json +++ b/locales/es.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "Archivo actual:", "downloading": "Descargando: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "Metadatos: {name}", + "indexingFile": "Leyendo el archivo de modelo...", + "fetchingSourceMetadata": "Obteniendo metadatos de {source}...", + "fetchingMetadata": "Obteniendo metadatos...", "transferred": "Descargado: {downloaded} / {total}", "transferredSimple": "Descargado: {downloaded}", "transferredUnknown": "Descargado: --", diff --git a/locales/fr.json b/locales/fr.json index cb770d3c..6cc684ee 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "Fichier actuel :", "downloading": "Téléchargement : {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "Métadonnées : {name}", + "indexingFile": "Lecture du fichier de modèle...", + "fetchingSourceMetadata": "Récupération des métadonnées depuis {source}...", + "fetchingMetadata": "Récupération des métadonnées...", "transferred": "Téléchargé : {downloaded} / {total}", "transferredSimple": "Téléchargé : {downloaded}", "transferredUnknown": "Téléchargé : --", diff --git a/locales/he.json b/locales/he.json index 17854fc2..86d45820 100644 --- a/locales/he.json +++ b/locales/he.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "הקובץ הנוכחי:", "downloading": "מוריד: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "מטא-נתונים: {name}", + "indexingFile": "קורא קובץ מודל...", + "fetchingSourceMetadata": "מביא מטא-נתונים מ-{source}...", + "fetchingMetadata": "מביא מטא-נתונים...", "transferred": "הורד: {downloaded} / {total}", "transferredSimple": "הורד: {downloaded}", "transferredUnknown": "הורד: --", diff --git a/locales/ja.json b/locales/ja.json index 4228299f..6bedb64d 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "現在のファイル:", "downloading": "ダウンロード中: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "メタデータ: {name}", + "indexingFile": "モデルファイルを読み込み中...", + "fetchingSourceMetadata": "{source} からメタデータを取得中...", + "fetchingMetadata": "メタデータを取得中...", "transferred": "ダウンロード済み: {downloaded} / {total}", "transferredSimple": "ダウンロード済み: {downloaded}", "transferredUnknown": "ダウンロード済み: --", diff --git a/locales/ko.json b/locales/ko.json index 9fcb24a0..be1b7ff2 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "현재 파일:", "downloading": "다운로드 중: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "메타데이터: {name}", + "indexingFile": "모델 파일 읽는 중...", + "fetchingSourceMetadata": "{source}에서 메타데이터 가져오는 중...", + "fetchingMetadata": "메타데이터 가져오는 중...", "transferred": "다운로드됨: {downloaded} / {total}", "transferredSimple": "다운로드됨: {downloaded}", "transferredUnknown": "다운로드됨: --", diff --git a/locales/ru.json b/locales/ru.json index 5377223b..a84e8c2d 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "Текущий файл:", "downloading": "Скачивается: {name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "Метаданные: {name}", + "indexingFile": "Чтение файла модели...", + "fetchingSourceMetadata": "Получение метаданных из {source}...", + "fetchingMetadata": "Получение метаданных...", "transferred": "Скачано: {downloaded} / {total}", "transferredSimple": "Скачано: {downloaded}", "transferredUnknown": "Скачано: --", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 0002f28e..02b471df 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "当前文件:", "downloading": "下载中:{name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "元数据:{name}", + "indexingFile": "正在读取模型文件...", + "fetchingSourceMetadata": "正在从 {source} 获取元数据...", + "fetchingMetadata": "正在获取元数据...", "transferred": "已下载:{downloaded} / {total}", "transferredSimple": "已下载:{downloaded}", "transferredUnknown": "已下载:--", diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 8c2730e9..05663c35 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -1488,10 +1488,10 @@ "progress": { "currentFile": "目前檔案:", "downloading": "下載中:{name}", - "metadata": "[TODO: Translate] Metadata: {name}", - "indexingFile": "[TODO: Translate] Reading model file...", - "fetchingSourceMetadata": "[TODO: Translate] Fetching metadata from {source}...", - "fetchingMetadata": "[TODO: Translate] Fetching metadata...", + "metadata": "中繼資料:{name}", + "indexingFile": "正在讀取模型檔案...", + "fetchingSourceMetadata": "正在從 {source} 取得中繼資料...", + "fetchingMetadata": "正在取得中繼資料...", "transferred": "已下載:{downloaded} / {total}", "transferredSimple": "已下載:{downloaded}", "transferredUnknown": "已下載:--",