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
27 lines
1.3 KiB
XML
27 lines
1.3 KiB
XML
<!DOCTYPE RCC>
|
|
<RCC version="1.0">
|
|
<qresource prefix="/icons">
|
|
<file alias="home.svg">icons/home.svg</file>
|
|
<file alias="search.svg">icons/search.svg</file>
|
|
<file alias="package.svg">icons/package.svg</file>
|
|
<file alias="trash.svg">icons/trash.svg</file>
|
|
<file alias="arrow-up.svg">icons/arrow-up.svg</file>
|
|
<file alias="history.svg">icons/history.svg</file>
|
|
<file alias="logs.svg">icons/logs.svg</file>
|
|
<file alias="refresh.svg">icons/refresh.svg</file>
|
|
<file alias="tools.svg">icons/tools.svg</file>
|
|
<file alias="check.svg">icons/check.svg</file>
|
|
<file alias="check-dark.svg">icons/check-dark.svg</file>
|
|
<file alias="close.svg">icons/close.svg</file>
|
|
<file alias="filter.svg">icons/filter.svg</file>
|
|
<file alias="alert.svg">icons/alert.svg</file>
|
|
<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> |