feat(i18n): translate the interface and the journal at runtime
The language setting was plumbing with nothing behind it: no catalogue shipped, and every label was a bare QStringLiteral, so picking English changed nothing. A catalogue is now a JSON file read as it is, translations/<code>.json, keyed by the French source string. No Linguist, no lrelease, no build step: a new language costs one file. The catalogues the application ships with are compiled into the binary, so the chosen language works whatever the install layout is, while one dropped into a translations folder still wins over it. "System" reads what the FWS install left behind — LC_ALL, LC_MESSAGES, LANG, then the LANG= line of /etc/locale.conf — so the interface follows the language chosen at install time without the user configuring anything. Fixes #16
This commit is contained in:
9 files changed
+882
-42
No files matched your search
@@ -18,4 +18,10 @@
|
||||
<file alias="plugin.svg">icons/plugin.svg</file>
|
||||
<file alias="broom.svg">icons/broom.svg</file>
|
||||
</qresource>
|
||||
<!-- The catalogues that ship with the application. Compiled in rather than
|
||||
copied next to the binary so a catalogue is there whatever the install
|
||||
layout is; a user-installed one in a "translations" folder still wins. -->
|
||||
<qresource prefix="/translations">
|
||||
<file alias="en.json" compress="1">../translations/en.json</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Reference in new issue
Block a user