3 Commits

Author SHA1 Message Date
Hirek cbdb7e0c84 fix(lang): sync_lang.py leaves the developer tab's rows to English, as the test does
The developer tab's rows (Ini.*) and the words of its lists (Choice.*) come in
English where a language lacks them (SimulatorKeyRows), and
LocalizationTests counts them optional. sync_lang.py added them to every
language as untranslated copies; now it adds them, as the other optional keys,
only with --all, and --check finds every language in line.
2026-11-30 17:34:29 +01:00
maj00r 7a03cc0c6a fix(lang): untranslated keys marked without TODO, and sync_lang.py split up
Sonar counted each "<!-- TODO: translate -->" as an open task (S1135, 73 of them):
the added keys are marked "<!-- untranslated -->" now. sync() is split into smaller
functions (S3776); what the script does is the same, zh.xml regenerated from main
comes out identical.
2026-11-29 23:14:35 +01:00
maj00r 9fe767cf9f fix(lang): the Chinese translation has every key of en.xml again, and a script keeps languages in line
zh.xml (#45) was translated from an older en.xml: 73 keys the tests require were
missing and 97 keys en.xml no longer has were still there. The localization test
failed on main, so no package and no release were made after the merge.

tools/sync_lang.py adds the missing keys with the English text, marked
<!-- TODO: translate -->, and removes the unused ones; the rest of the file stays
as it is. --check only lists the differences. The missing Chinese keys are filled
in with it, and the README says how to use it.
2026-11-29 22:23:07 +01:00