* Add the Simplified Chinese catalog to the shared localization module
English source text stays the key: crates/ui-egui/locales/zh-Hans/mod.rs is generated from
crates/ui-egui/src/i18n/zh-hans.tsv (1,383 strings) by docs/i18n/tools/gen_zh_hans_locale.py, so a
translator edits one TSV row per string and the module follows. The TSV is also the file
storytold/craft-i18n's sync script reads, so the catalog can move there when SoundCraft cuts over.
The catalog covers every string passed to localization::text / localized_format! in the crate and
every reference menu label (crates/engine/catalog/menus.txt). Tests compare placeholders against the
English source, reject duplicate keys and name any untranslated string by file. Engine diagnostics
stay English by design: a half-translated error reads worse than a whole one.
Language::SimplifiedChinese ("zh-Hans") joins the enum, the Appearance menu and the ui.language
command, and the choice is saved with the UI state like the theme. AI-authored from the English
source; native-speaker review is still pending.
* Add a Han font fallback for Chinese on the desktop and the web
egui's bundled faces carry no Han glyphs, so a Chinese interface and Chinese session, track and clip
names would draw boxes. fonts.rs now appends a Han fallback to every family:
- desktop: the operating system's own face, resolved through fontconfig with lang=zh-cn plus a list
of per-platform candidates (PingFang, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi,
...). Nothing is redistributed.
- web: the browser cannot reach system fonts, so the build embeds assets/fonts/NotoSansSC-SoundCraftSubset.ttf,
a 1.1 MiB Open Font License subset of Noto Sans SC pinned at weight 400.
Han is ordered before the Hangul fallback for every interface language except Korean: the first face
with a glyph wins, and on Linux fontconfig often resolves Noto Sans CJK's Korean face, whose Han
glyphs are Korean-styled. Tests check the ordering, that every family draws Han when a system font
is present, that the bundled face draws the whole zh-Hans catalog in every family, and that it stays
inside its 2 MiB budget. ATTRIBUTION.md records the font and its OFL text; cargo xtask assets
enforces that.
* Document the zh-Hans catalog and refresh the localization numbers
docs/localization.md now describes what ships today (the Language enum, locales/<tag>/mod.rs,
text / localized_format! / error_text, the TSV-to-module step, the Han fallback, the tests) instead
of the packed-catalog design the branch carried before upstream landed the shared localization
module. docs/localization-zh-hans.md is the translator workflow; docs/i18n/glossary.md records the
wording decisions without citing another product's catalogs, and the earlier cross-corpus research
files are gone: the repository's clean-room rule forbids reading GPL translation sources, so the
terminology stands on its own reasoning.
ROADMAP.md, docs/roadmap.md, docs/localization-parity.md and docs/gaps.md move zh-Hans from "none"
to shipped-for-fixed-strings with native review pending, note the CJK fallback, and lower the
localization estimate from 70-110 h to 55-90 h.
* Align the localization numbers and the catalog-editing guidance
The localization row in docs/target-app-parity.md still listed pt-BR only, ~12 % and 70-110 h; the
G-09 row kept the old 20-40 h. Both now match ROADMAP.md, docs/roadmap.md and
docs/localization-parity.md: two shipped catalogs, ~19 %, 55-90 h to the target's eight languages.
Also, docs/localization-parity.md no longer tells a reader to add a Rust arm for every catalog: pt-BR
is hand-written, zh-Hans is generated from its TSV, and the two are now described separately. The
font regeneration commands in docs/localization.md and docs/localization-zh-hans.md name the input
the subset script requires (a Noto Sans SC variable font) instead of implying it runs with no
argument.
* zh-Hans: keep the slot and track order in "Insert {} for {}"
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
7.2 KiB
Localization parity
Last reviewed: 2026-11-13 · Last updated: 2026-11-28 · Change: minor (zh-Hans catalog covers the fixed UI strings, with a Han system-font fallback and an OFL web subset; previously minor: Spanish catalog completed, with native-speaker terminology review; previously minor: French and Spanish catalogs, partial; previously minor: pt-BR catalog completed: all fixed UI strings translated and covered by tests; native-speaker review, CJK/RTL font fallbacks and RTL script shaping still pending) · Target: Avid Pro Tools Ultimate 2026.4.1
SoundCraft defaults to English and supports selecting Brazilian Portuguese, French, Spanish and
Simplified Chinese. The Spanish catalog covers the same fixed UI strings and engine errors as pt-BR;
the French catalog is partial (missing strings show in English). The pt-BR and zh-Hans catalogs
cover all fixed UI strings found in the current source: command labels, menus, Appearance,
About/Credits, Audio Health, Playback Engine, System Usage, Workspace, plugin parameter and display
names, dialogs and buttons, tooltips (including those localized inside buttons and toggles),
accessibility names, the Edit-window status bar, the remove-session question and formatted
messages. Engine errors are matched against catalog templates at display time by
localization::error_text; zh-Hans keeps engine diagnostics in English. Values built at run time
(file, track and device names), engine command parameter documentation and third-party plugin names
stay as they are, and neither the pt-BR nor the zh-Hans catalog has been independently or
native-speaker reviewed. Pro Tools ships its UI in 8 languages (bundle .lproj folders:
English, German, Spanish, French, Japanese, Korean, Simplified Chinese, Traditional Chinese).
Localization: ~19 % (measured: 2 of the target's 8 UI languages, and neither translation has had a native-speaker pass). Remaining ≈ 55–90 h: RTL layout and complex-script shaping (egui has neither: ≈ 25–40 h, or ship Arabic/Hindi menus-only), the remaining catalogs (≈ 3–5 h of agent translation each), the Japanese/Korean font faces, and native-speaker review (human).
Open work: completing the French catalog (rows also kept in storytold/craft-i18n for when SoundCraft reads it), PR #141 (bundled multilingual font fallbacks), issue #67 (Ukrainian).
| Language | Code | UI strings translated | Dialogs / tooltips / help | Script support | Native review | Status | Est. to full (h) | In Pro Tools |
|---|---|---|---|---|---|---|---|---|
| English | en | all (source) | ✅ | Latin ✅ | — | full | 0 | ✅ |
| Simplified Chinese | zh-Hans | ✅ 100 % of fixed UI strings: menus, dialogs, buttons, tooltips, accessibility names, status bar, formatted messages | ✅ | Han ✅ (system font on the desktop, OFL subset on the web) | no | full | 0–4 (native review) | ✅ |
| Spanish | es | ✅ 100 % of fixed UI strings (1,960) and engine errors (254), as pt-BR; catalog and menu-coverage tests pass | 🟡 partial | Latin ✅ | yes (es-ES, sound engineer; terminology reviewed) | full | 0–2 | ✅ |
| Hindi | hi | 0 (0 %) | ❌ | ❌ no Devanagari font or shaping | no | none | 8–15 | ❌ |
| Arabic | ar | 0 (0 %) | ❌ | ❌ no RTL layout, no shaping | no | none | 15–25 | ❌ |
| French | fr | 🟡 1,368 of ~2,210 catalog strings (≈ 62 %); engine errors not yet translated | 🟡 partial | Latin ✅ | no | partial | 1–3 | ✅ |
| Portuguese (Brazil) | pt-BR | ✅ 100 % of fixed UI strings: menus, dialogs, buttons, tooltips, accessibility names, status bar, formatted messages and engine errors; catalog tests pass | 🟡 partial | Latin ✅ | no (native review pending) | full | 0–4 | ❌ |
| Indonesian | id | 0 (0 %) | ❌ | Latin ✅ | no | none | 3–5 | ❌ |
| Japanese | ja | 0 (0 %) | ❌ | 🟡 Han fallback draws Japanese kanji, no kana face and no IME testing | no | none | 6–10 | ✅ |
| German | de | 0 (0 %) | ❌ | Latin ✅ | no | none | 3–5 | ✅ |
| Korean | ko | 0 (0 %) | ❌ | 🟡 Hangul system-font fallback, no IME testing | no | none | 6–10 | ✅ |
| Vietnamese | vi | 0 (0 %) | ❌ | 🟡 Latin with stacked diacritics, untested | no | none | 3–5 | ❌ |
Other languages shipped: 2. (Pro Tools also ships Traditional Chinese, zh-Hant.)
Per-language hours exclude the shared catalog and script work above. A Han face now ships for the desktop (system font, never redistributed) and the web (an OFL subset); Traditional Chinese and Japanese would need their own Han faces, since the fallback list is Simplified-first.
Usage
- Pick the language in Appearance ▸ Language, or run the
ui.languagecommand with{"language": "pt-BR"}(or"en","fr","es","zh-Hans"); with no parameter it reports the current language. Example:soundcraft-cli run --demo --cmd 'ui.language={"language":"zh-Hans"}'. - The choice is a global preference saved with the UI state (like the theme); recalling a saved window configuration does not change it.
- Strings missing from the catalog fall back to English, and the tests check placeholder parity,
duplicate keys and that every string passed to
text/localized_format!has a pt-BR and a zh-Hans entry. - How a catalog is edited depends on how it is kept. pt-BR, fr and es are hand-written: add a
"English text" => "translated text"arm tocrates/ui-egui/locales/<tag>/mod.rs. zh-Hans is generated: add the row tocrates/ui-egui/src/i18n/zh-hans.tsvand runpython3 docs/i18n/tools/gen_zh_hans_locale.py— never edit the generated module by hand. See localization.md.
Revision history
| Date | Change | Summary |
|---|---|---|
| 2026-11-27 | minor | Completed the Spanish catalog (all fixed UI strings and engine errors) with a native-speaker terminology review; Spanish menu-coverage test; the path prompt's File path and Folder path fields are translated apart from the Auto Pan Path parameter |
| 2026-11-24 | minor | French and Spanish catalogs (locales/fr, locales/es, 1,368 strings each) from PR #143, on the localization layer; Appearance ▸ Language lists them; estimates unchanged |
| 2026-11-22 | minor | Added the Simplified Chinese catalog on the shared localization module (1,383 strings, all menu labels and every text/localized_format! source covered), a Han system-font fallback ordered ahead of Hangul except for Korean, and a 1.1 MiB OFL Noto Sans SC subset for the web build; catalog and font tests added; localization estimate ~12 % → ~19 % |
| 2026-11-13 | minor | Completed the pt-BR catalog: tooltips passed to buttons and toggles, Not available yet., the send hover help, no instrument, the search placeholders, the Edit-window status bar (bit depth, track count, undo, ms/frame), the remove-session question and the transport/sample-rate readouts; engine errors now reach the status line through error_text |
| 2026-11-05 | minor | Added persisted language selection, the ui.language command, English fallback and a pt-BR catalog (menus, dialogs, tooltips, accessibility text, formatted messages); added a Usage section and catalog tests |
| 2026-10-10 | major | Created: English only, no catalog; the twelve key languages at 0 %; Pro Tools' 8 languages listed from its bundle |