Koha/misc/translator
Jonathan Druart bab96c3f22 Bug 11571: fix breakage of -f option for translate script
Bug 7934 breaks the -f option introduced in bug 9161; this patch
repairs the regression.

While the generation of the command tmpl_process3.pl, a space is
missing if the -x option is given.

The tmpl_process3.pl is called like:
/home/koha/src/misc/translator/tmpl_process3.pl -q update -i
/home/koha/src/koha-tmpl/intranet-tmpl/prog/en/ -s
/home/koha/src/misc/translator/po/fr-FR-i-staff-t-prog-v-3006000.po -r
-x 'help'-f pay.tt

Revised test plan:
1) cd ./misc/translator
2) put a warn at LangInstaller.pm line 375.
3) time ./translate update fr-FR -f pay.tt
-- note the execution time and the output. The options in the
    command contain "-x 'help'-f pay.tt"
    The -f param is not passed to the script.
    The execution time is strangely long.
5) git reset --hard origin/master
6) apply this patch
7) put a warn at LangInstaller.pm line 375.
8) time ./translate update fr-FR -f pay.tt
-- verify the output and the execution time is now corrected.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-01-26 15:50:41 +00:00
..
po Translation update - split staff UI and help files 2013-12-17 16:22:49 -03:00
LangInstaller.pm Bug 11571: fix breakage of -f option for translate script 2014-01-26 15:50:41 +00:00
Makefile merging 2.2 branch with head. Sorry for not making it before, many many commits done here 2005-03-01 13:40:35 +00:00
text-extract.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
text-extract2.pl Bug 8384: Some Perl scripts do not compile 2012-07-10 10:50:58 +02:00
tmpl_process3.pl Bug 9161: Followup: the -f param does not work correctly 2013-05-24 09:08:27 -07:00
TmplTokenizer.pm Revert "Subroutine prototypes used at line XXX, column 1. See page 194 of PBP." 2012-06-11 15:38:35 +02:00
translate Bug 9161: Translate only specific files 2013-05-24 09:08:25 -07:00
translator_doc.html Documents translator dependency on 'gettext' Linux tools and add it to debian.packages 2008-06-26 05:51:35 -05:00
translator_doc.txt Documents translator dependency on 'gettext' Linux tools and add it to debian.packages 2008-06-26 05:51:35 -05:00
VerboseWarnings.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
xgettext.pl Bug 5709: Add the ability to translate HTML5 placeholder text in an input field 2012-12-13 10:34:57 -05:00