[Koha-bugs] [Bug 30733] Simplify translatable strings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 12 06:23:34 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30733

--- Comment #8 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Updating the .po files of a lang on master, then doing "git add" on the .po and
then updating with the patches should allow to see the difference.

git diff | grep "\-msgid" | wc -l 
182
git diff | grep "\+msgid" | wc -l
337

That makes sense, ~680 <span> used to remove 182 strings means that I split in
3.7 on average. I had the impression that on the 2300 search results on Pootle,
I had touched more than 182 though. But if I "only" added 680 <span> than makes
sense.
As for the 337 string added, with 680 <span> and assuming half of the simpler
strings being duplicates with existing or between themselves, that makes sense
to have only 337 new strings.

A quick skimming in the updated staff .po searching for %s shows that the
terrible strings remaining are mostly those that make the <title> of each Koha
page. So that's still quite a number of strings to clean. And then a few
templates outputting CSV.

Doing git diff and there searching for «\-msgid "» and «\+msgid "» allows to 
see the complexity of the removed strings and the simplicity of the added ones.


@Fridolin here is your count method, I don't know what it means but here it is
so you can interpret it:
#current master
msggrep -K -e '%s' misc/translator/po/fr-FR-staff-prog.po | grep -c "^msgid"
1749
#after patch
msggrep -K -e '%s' misc/translator/po/fr-FR-staff-prog.po | grep -c "^msgid"
1708

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list