[Koha-bugs] [Bug 24211] Compress/uncompress translation files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 21 15:51:22 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24211
--- Comment #11 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Bernardo Gonzalez Kriegel from comment #10)
> Current translation process does not use .mo files, we only use .po files as
> a bag of matching strings (msgid -> msgsrt) to do search and replace
> inspecting tt, xml and js files.
I know that. What I suggested was to use .mo files as bag of strings too. But
that may require additional dependencies, so it may not be worth it, especially
if:
> .mo binary files are not much smaller than .po files :)
I just did a small test:
msgfmt -o fr-FR-staff-prog.mo fr-FR-staff-prog.po
gzip -k fr-FR-staff-prog.po
du -h fr-FR-staff-prog*
824K fr-FR-staff-prog.mo
2,1M fr-FR-staff-prog.po
392K fr-FR-staff-prog.po.gz
So, .mo files are smaller than .po files, but not as small as gzipped .po
Which is kind of disappointing :/
Anyway, I just wanted to know if you had considered this approach. Thanks for
answering.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list