Mirror qet_en.ts instead of qet_fr.ts now that English is the source

#1379 added misc/i18n/mirror_source_language.py and an INSTALL.md rule
to run it on lang/qet_fr.ts after update_translations, while French was
the source language. Since #1390 the code is English and qet_fr.ts is an
ordinary translation, so following the rule would copy English text into
empty French entries. The repository test still checked qet_fr.ts and
kept passing.

The rule, the script's description and the repository test now name
lang/qet_en.ts. The script refuses a file whose <TS> header names a
language different from its sourcelanguage (qet_fr.ts says fr_FR / en),
exits 2 and leaves it untouched; files without a sourcelanguage, like
the fixtures, are accepted as before. The 6 entries master added since
the conversion are mirrored, so qet_en.ts is complete again.

Tests: 19 in misc/i18n/test_mirror_source_language.py. The repository
test fails on master (6 entries to mirror); with the check_languages()
call removed, the two refusal tests fail and a run on qet_fr.ts goes
through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Beat Hangartner
2026-10-09 10:42:00 +02:00
parent 8e7904d7b0
commit 7cff54dd19
4 changed files with 110 additions and 35 deletions
+6 -6
View File
@@ -2032,17 +2032,17 @@ Continue?</translation>
<message>
<location filename="../sources/ui/diagrameditorhandlersizewidget.ui" line="31"/>
<source>x 0.25</source>
<translation type="unfinished"></translation>
<translation>x 0.25</translation>
</message>
<message>
<location filename="../sources/ui/diagrameditorhandlersizewidget.ui" line="36"/>
<source>x 0.5</source>
<translation type="unfinished"></translation>
<translation>x 0.5</translation>
</message>
<message>
<location filename="../sources/ui/diagrameditorhandlersizewidget.ui" line="41"/>
<source>x 0.75</source>
<translation type="unfinished"></translation>
<translation>x 0.75</translation>
</message>
<message>
<location filename="../sources/ui/diagrameditorhandlersizewidget.ui" line="46"/>
@@ -19699,7 +19699,7 @@ The other fields are not used.</translation>
<message>
<location filename="../sources/editor/ui/terminaleditor.cpp" line="279"/>
<source>Change the potential of a terminal</source>
<translation type="unfinished"></translation>
<translation>Change the potential of a terminal</translation>
</message>
<message>
<location filename="../sources/editor/ui/terminaleditor.cpp" line="298"/>
@@ -19798,12 +19798,12 @@ The other fields are not used.</translation>
<message>
<location filename="../sources/editor/ui/terminaleditor.ui" line="84"/>
<source>Potential:</source>
<translation type="unfinished"></translation>
<translation>Potential:</translation>
</message>
<message>
<location filename="../sources/editor/ui/terminaleditor.ui" line="91"/>
<source>No effect unless &quot;Potential isolation&quot; is checked (all terminals of the block then stay connected). When it is checked, terminals sharing the same value stay connected to each other and the others are isolated.</source>
<translation type="unfinished"></translation>
<translation>No effect unless &quot;Potential isolation&quot; is checked (all terminals of the block then stay connected). When it is checked, terminals sharing the same value stay connected to each other and the others are isolated.</translation>
</message>
<message>
<location filename="../sources/editor/ui/terminaleditor.ui" line="98"/>