Koha-clms/misc/translator
Bernardo Gonzalez Kriegel 0d5d14935a Bug 25257: Preserve prolog on translated XML files
This patch fix the missing xml prolog in translated
files, XML or TT.

Is fixed teaching C4::TTParse not to ignore <?..?> constructs,
then teaching xgettext.pl to ignore those strings. Net result is
that they are copied in the translated file.

To test:
1) Update & install your preferred language,
(cd misc/translator/; perl translate update xx-YY; perl translate install xx-YY )

2) Compare the first lines (head -2) of:
koha-tmpl/opac-tmpl/bootstrap/en/xslt/compact.xsl
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt
koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl
and
koha-tmpl/opac-tmpl/bootstrap/xx-YY/xslt/compact.xsl
koha-tmpl/opac-tmpl/bootstrap/xx-YY/modules/opac-opensearch.tt
koha-tmpl/intranet-tmpl/prog/xx-YY/xslt/plainMARC.xsl

Check the missing prolog

3) Install this patch, repeat 1 and 2, now the prolog is present
on translated files.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
2020-05-08 20:33:57 +00:00
..
po Bug 24664: Add missing *-messages-js.po 2020-03-12 23:42:25 +00:00
LangInstaller.pm Bug 24734: Fix paths in LangInstaller.pm for JS files 2020-03-05 23:25:08 +00:00
TmplTokenizer.pm Bug 21481: (QA follow-up) Remove last reference to text-extract2 2018-10-05 15:03:18 +00:00
VerboseWarnings.pm Bug 16011: $VERSION - Remove the $VERSION init 2016-03-24 17:20:28 +00:00
po2json Bug 21156: Add plural translation capabilities to JS files 2020-03-05 23:24:35 +00:00
tmpl_process3.pl Bug 18688: Warnings about UTF-8 charset when creating a new language 2020-01-12 18:55:54 +00:00
translate Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00
xgettext.pl Bug 25257: Preserve prolog on translated XML files 2020-05-08 20:33:57 +00:00