Skip to content

Localisation

The app's text is translated with Qt Linguist. This page covers what is in the catalogues today, what that does and does not promise, how to update or extend them, and the pseudo-locale QA fixture used to test the pipeline.

How it fits together

Translation source files live at apps/gui/translations/forge_gui_<code>.ts (Qt Linguist XML), one per language:

Code Language File
fr Français forge_gui_fr.ts
de Deutsch forge_gui_de.ts
es Español forge_gui_es.ts
ar العربية forge_gui_ar.ts
he עברית forge_gui_he.ts
yi יידיש forge_gui_yi.ts

English has no .ts file — it is the literal qsTr() source text. apps/forge/gui/CMakeLists.txt's qt_add_translations() call wires these in: it scans the target's sources — every QML file ICLFORGE_QML_FILES lists, which is where nearly all of the marked strings are, and the tr() calls in encoder_controller.cpp — for translatable strings, then compiles each .ts to a .qm and embeds it as a resource under :/i18n at build time. LanguageManager (apps/shared/preferences/src/language_manager.{hpp,cpp}) loads the matching .qm for the active language and applies right-to-left layout mirroring for Arabic, Hebrew and Yiddish (Main.qml's LayoutMirroring root, and the bundled Noto Sans Arabic/Hebrew faces those three scripts need — Latin has no glyph coverage for either).

Settings → Appearance → Language switches it live, no restart needed (languageManager.setLanguage(code), a plain context property main.cpp installs — not a QML_SINGLETON the way EncoderController is, since LanguageManager takes the application and the engine as constructor arguments, which a singleton factory cannot supply).

What's translated today

Every catalogue is complete. The six files carry 1023 messages each, the count the pseudo-locale xx below has too — the window chrome, the header buttons, the tab names, the Guided wizard, the whole Settings dialog, the longer explanatory PrefsNote paragraphs through the Format/AC-4/Objects/Coding tools/Metadata tabs, the QC, Inspect objects and Open stream dialogs, and the Accessible.* names and descriptions — and none of them is left type="unfinished". That includes the strings the keyboard and text-size pass of 2026-09-06 added (Keyboard & text size): the text-size setting, the diagnostics section, and the two tr() calls in encoder_controller.cpp. Nothing in the app falls back to English for want of a catalogue entry.

Complete is not the same as reviewed. The renderings are machine-made and no speaker of any of the six languages has read them, so a term can be filled in and still be the wrong word, or two words for one thing. Crucible's languages page carries the glossary the shared six are held to and what an audit of the mechanical output found; the review that confirms or replaces each rendering has not run for either app.

Both windows say that in their own note under the language chooser, in the same words: forge-gui's Settings → Appearance note reads "The translations are machine-made and have not been read by a speaker."

Two checks hold the completeness above. The [gui][translations] case in apps/crucible/ui/tests/test_translations.cpp reads the seven apps/forge/gui catalogues — the six languages and xx — and fails on any unfinished, vanished or obsolete entry, naming it; it runs on every platform. The other check is drift: that the committed catalogues match what lupdate extracts. It reruns forge-gui_lupdate and fails on a diff, in the pull-request gate (pr-gate.yml, when the change touches the GUI) and on the Linux GCC leg of _ci-linux.yml.

Crucible shares this pipeline

Everything above is forge-gui, half of Forge. Crucible (apps/crucible/) is the family's other Qt application, and reuses LanguageManager rather than copying it: the class takes a translation basename ("forge-gui" by default, "crucible" for Crucible) that names the .qm files it loads from :/i18n/, and useSystemLanguage() forgets a saved override so the app follows the system locale again. Crucible ships the same six languages (apps/crucible/ui/assets/translations/), has its own crucible_lupdate target, and honours the same ICLFORGE_GUI_LOCALE override for smoke checks. What is Crucible's own — the glossary its six languages are held to, the window's right-to-left half, and the gate over its catalogues — is on Crucible's languages page.

Updating an existing translation

  1. Regenerate the .ts files from current source strings:
cmake --build --preset <preset> --target forge-gui_lupdate

Any new or changed qsTr() string shows up as a <translation type="unfinished"> entry (empty, or holding the last-known text) in the relevant .ts file(s). CI's own "Check translations are up to date" step (.github/workflows/pr-gate.yml on a pull request that touches the GUI, _ci-linux.yml on the Linux GCC leg) reruns this same target and fails the build if it produces a diff nobody committed. Extraction does not depend on the compiler, so one leg is enough; Crucible's six get the same check on the windows-msvc leg (_ci-windows.yml). 2. Open the .ts file in Qt Linguist (ships with Qt), or edit the <translation> elements directly, and fill in the unfinished entries. Editing by hand, remove the type="unfinished" attribute yourself once an entry has a rendering you are willing to ship. 3. Rebuild normally to recompile the .qm and pick up the change.

Finding a string

lupdate groups each .ts file's messages into a <context><name> block named after the component it came from — AboutDialog, Ac4Panel, AssignmentPanel, ChannelMeter, EncoderController (the tr() calls in the C++), FirstRunScreen, GuidedWizard, LicencesDialog, LoudnessGroup, Main, ObjectInspectorDialog, PreferencesDialog, QcDialog, QcGateMeter, SoundfieldView, StreamPlayerDialog and VbrPanel — which is how to jump straight to the right area of a large .ts file.

Adding a new language

  1. Add translations/forge_gui_<code>.ts to the TS_FILES list in qt_add_translations() (apps/forge/gui/CMakeLists.txt's ICLFORGE_TS_FILES), then run forge-gui_lupdate to generate the initial file and translate it as above.
  2. Add {code, "Native name"} to the kLanguages array in apps/shared/preferences/src/language_manager.cpp. Miss this and LanguageManager::setLanguage() rejects the code as unsupported — the language never appears in Settings' picker even with a fully-translated .ts/.qm.
  3. If the script is right-to-left, LanguageManager already derives layout direction from QLocale(code).textDirection() automatically — no extra code needed there. If it needs a font Theme.qml's Archivo doesn't cover (as Arabic and Hebrew do, via the bundled Noto Sans faces), add the pairing to Theme.qml's rtlFonts map and language_manager.cpp's font_family_for() — the two must agree, since Theme.rtlFonts is documentation for the pairing and font_family_for() is what actually swaps the application-wide default font LanguageManager::updateFontFamily() applies on every switch.

The pseudo-locale QA fixture

apps/forge/gui/assets/translations/forge_gui_xx.ts is not a language — "xx" is not an ISO 639 code, and it never appears in LanguageManager::availableLanguages() or Settings' picker. It exists to prove the extraction → compile → load pipeline works end to end without depending on any one language's catalogue, and to catch a string that bypasses qsTr() entirely.

tools/generators/gen_pseudo_locale.py reads forge_gui_fr.ts for the message set and mechanically decorates every message it finds there — accented characters, a bracketed and length-padded wrapper ([Àccéntéd téxt ~~~~]) — so what it writes is complete for the extraction it was run against. A visible string that reaches the screen without that decoration under the pseudo-locale either never went through qsTr(), or was added after the fixture was last generated.

The fixture is not in ICLFORGE_TS_FILES, so forge-gui_lupdate does not touch it and CI's drift check cannot see it going stale. It matches the six languages today, at 1019 messages, and the [gui][translations] case above holds it to the same no-unfinished rule. Regenerate it after forge-gui_lupdate picks up new source strings:

cmake --build --preset <preset> --target forge-gui_lupdate
python tools/generators/gen_pseudo_locale.py

It is loaded only through an ICLFORGE_GUI_LOCALE=xx environment override (LanguageManager::applyInitialLanguage(), checked ahead of the persisted setting and the system locale) — apps/forge/gui/tests/qml.cmake sets this for tst_localisation_pipeline.qml's ctest entry alone, and it is embedded only into forge_gui_qmltests, never into the shipped forge-gui binary (apps/forge/gui/CMakeLists.txt's own comment on ICLFORGE_PSEUDO_TS_FILE says why).