Koha/misc/translator
Jonathan Druart 2001b853f4 Bug 36516: Fix useless warning from translation script
I lost too much time trying to know what the translation script outputs
  sh: 1: Syntax error: end of file unexpected

To recreate:
touch 'koha-tmpl/intranet-tmpl/prog/en/modules/<' (yes, don't ask!)
koha-translate -i de-DE --dev kohadev
or
koha-translate -u de-DE --dev kohadev

And you get the shell error without any ideas what's happening!

With this patch applied you will not get any errors because the quote
will actually copy the file (what is expected).

But without the quote the cp command will fail and the explanation will be
displayed
sh: 1: Syntax error: end of file unexpected
Cannot copy /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/< to /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/de-DE/modules/< at /kohadevbox/koha/misc/translator/tmpl_process3.pl line 385.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0026ee3e97)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 13:46:27 +02:00
..
LangInstaller.pm Bug 31640: Fuzzy translations of preferences can cause missing sections and inaccurate translations 2023-04-06 09:29:27 -03:00
po2json Bug 34983: Force a sort order in JSON output of po2json 2023-10-24 10:05:27 -03:00
tmpl_process3.pl Bug 36516: Fix useless warning from translation script 2024-05-23 13:46:27 +02:00
TmplTokenizer.pm Bug 35043: Use Locale::PO->quote 2023-10-27 16:45:52 -03:00
translate Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
VerboseWarnings.pm Bug 17600: Fix tests 2021-07-16 09:47:01 +02:00
xgettext-installer Bug 31292: Untranslatable string in sample_notices.yaml 2022-08-08 13:10:56 -03: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 35043: Use Locale::PO->quote 2023-10-27 16:45:52 -03:00