mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 13:04:13 +02:00
287689d185
The strings in the code are French and serve as both translation key and displayed text. lang/qet_fr.ts was almost empty: 3425 messages and 22 plural messages had no translation, so lrelease compiled them as null-string records (3469 in qet_fr.qm) and the French UI showed the code text through QTranslator's null fallback. Correcting French wording therefore meant changing the key, which orphans the translation of that string in all 33 other language files; the "Élement" typo fix needed a key rename in 34 files for one accent. This copies every empty French entry's source text into its own translation, so qet_fr.qm is complete (514 KB, 0 null records, like the other languages) and French wording can be corrected in the .ts alone. Translations that already had text (113 French renderings of English-written sources, 16 identical, 54 plurals) are untouched, as are the 10 vanished entries. The file is byte-identical outside the rewritten <translation> elements. misc/i18n/mirror_source_language.py does the copy and is meant to run after update_translations; --check exits 1 when a run is needed. Forgetting it breaks nothing: an empty entry still falls back to the code text. INSTALL.md section 10 explains the rule and that -removeidentical must never be added to lrelease. Tests: misc/i18n/test_mirror_source_language.py with a before/after fixture pair covering every message class. No visible change in the application. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>