On 26/01/2026 15:32, Benno Schulenberg wrote:

Op 25-01-2026 om 17:19 schreef Egmont Koblinger:
Another random find:

9.9 tarball's hu.po line 3252.  The translation is outdated, it misses
the "+" flag.  Accordingly, it's marked as fuzzy.

This made me think: when a msgid-msgstr pair is marked as fuzzy,
then the split.py script should _not_ split any options that are
in the msgid and msgstr, because whatever is in the msgstr does
not correspond to what is in the msgid -- or at least not fully.

One can observe this problem when running ./split.py on sk.po
and then searching for "--no-dereference".  Oops.

(In hu.po at the TP there are no fuzzies, so I didn't notice the
problem there.)

So split.py has to check for the "#, fuzzy" marker, and skip the
splitting of the subsequent msgid-msgstr pair.  I've implemented
that in the attached updated script.

(But maybe it is better to split them anyway and mark every
resulting pair as fuzzy?)

Since it's relatively rare, it's probably best to skip as you've done now.
I'll rebase on your updated script.

thanks!
Padraig

Reply via email to