[Koha-bugs] [Bug 25305] Double UTF-8 encoding on translation files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 29 08:27:16 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25305
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #103875|0 |1
is obsolete| |
--- Comment #2 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 103902
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103902&action=edit
Bug 25305: fix double encoding in translation files
Changes inroduced in Bug 24217 and Bug 24365 are
producing strings with double encoding
Don't know exactly what is producing the problem,
but I propose a fix
There are two changes, a feature limited use of
Modern::Perl and preventing double encoding in
output file.
To test:
1) Create translation files for a new language
( cd misc/translator; ./translate create xx-YY)
A new language means one that isn't already in Koha, xx-YY=>something you
invent.
2) Verify double encoding
egrep "Aix-Marseille|Jean Prunier|periodika|Bokm" misc/translator/po/xx-YY-*
check strange strings
3) Apply the patch
4) Create po files again
( cd misc/translator; rm -f po/xx-YY*; ./translate create xx-YY)
5) Verify no more double encoding
egrep "Aix-Marseille|Jean Prunier|periodika|Bokm" misc/translator/po/xx-YY-*
check normal strings
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list