Koha-clms/misc/translator
Joonas Kylmälä 67137b3f3e Bug 28291: Make koha-translate script produce valid UTF-8 YAML files
We had two problems in the LangInstaller.pm module:
 1) the PO file was read as bytes instead of as a UTF-8 text stream
 2) The YAML file being outputted was double encoded, once by setting
    the file handle to output UTF-8 and other time in the DumpFile
    function internally

To test:
1. Before applying patch do the following
$ cd misc/translator
$ ./translate update pl-PL
$ ./translate install pl-PL
$ cd -
$ less installer/data/mysql/pl-PL/marcflavour/marc21/mandatory/authorities_normal_marc21.yml
2. Notice the output of the authorities_normal_marc21.yml contains
invalid looking UTF-8 characters
3. $ git clean -d -f # to remove the old translation files
4. Apply patch and repeat the steps and notice the
authorities_normal_marc21.yml contains valid looking UTF-8 characters

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-07 14:44:00 +02:00
..
po Fix translation issues 2020-11-27 16:35:09 +01:00
LangInstaller.pm Bug 28291: Make koha-translate script produce valid UTF-8 YAML files 2021-05-07 14:44:00 +02:00
TmplTokenizer.pm Bug 21395: (QA follow-up) Remove some introduced issues 2020-06-29 12:37:02 +02:00
VerboseWarnings.pm Bug 24000: Some modules do not return 1 2021-04-06 15:56:30 +02:00
po2json Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
tmpl_process3.pl Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
translate Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
xgettext-installer Bug 28154: Fix encoding issues on Koha-installer.pot 2021-04-16 13:53:54 +02:00
xgettext-pref Bug 28154: Fix encoding issues on Koha-pref.pot 2021-04-16 13:53:54 +02:00
xgettext-tt2 Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
xgettext.pl Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00