Koha/misc/translator
Bernardo Gonzalez Kriegel 5caa05104d Bug 12192: Template toolkit code in HTML attributes is picked up into po-files
This patch gives a partial solution for this problem.
It ignores strings like "[% something %]", but not
"[% IF ( value )  %][% value %][% END %]"

We get 100+ strings less to translate

To test:
1) Update translation files for your preferred language
2) Apply the patch
3) Update again
4) Compare, you must find 100+ strings removed from
translation files

eg.
-msgid "[% SEARCH_RESULT.biblionumber |url %]"
-msgid "[% accepteddate | $KohaDates %]"
-msgid "[% amountoutstanding | format('%.2f') %]"
-msgid "[% authtypetext |html %]"
-msgid "[% barcode_llx |html %]"
-msgid "[% barcode_lly |html %]"
-msgid "[% biblio.quantity.length ? biblio.quantity : 1 %]"
-msgid "[% billingdate | $KohaDates %]"
-msgid "[% borname |html %]"
...

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Verified all strings removed from the po files were
pure TT.
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-05-06 10:40:14 -03:00
..
po Bug 7939: (followup) Update translation files 2015-04-30 11:27:57 -03:00
LangInstaller.pm Bug 7939: Separate po files for different MARC dialects 2015-04-30 11:22:03 -03:00
Makefile
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 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
tmpl_process3.pl Bug 13794: Text input field values not translated 2015-03-15 09:22:05 -03:00
TmplTokenizer.pm Bug 12301: Remove warnings on translate scripts 2014-05-30 15:46:17 -03:00
translate Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
VerboseWarnings.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
xgettext.pl Bug 12192: Template toolkit code in HTML attributes is picked up into po-files 2015-05-06 10:40:14 -03:00