Bug 8938: Transport cost matrix script and template contain untranslatable strings
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Mon, 11 Aug 2014 00:10:12 +0000 (21:10 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 14 Aug 2014 23:37:37 +0000 (20:37 -0300)
commit83e9a8e73b868e75f67575a61a6604ef43bbb06b
tree08f185f359a2cc3d0098bdc35bf9a2b897536c07
parentd070c5496671e15be522dbdce015eb66c91def1d
Bug 8938: Transport cost matrix script and template contain untranslatable strings

This patch fixes the problem reported.

To test:
1) Apply the patch
2) Update translations for your preffered language, xx-YY
3) Check new entries
egrep -Rn "Cost must be expressed as a decimal number|Invalid value for" misc/translator/xx-YY*
4) Check no regression on alert, go to
Administration > Transport cost matrix
Edit some value and put a negative value & save,
alert must show up
5) On errors, part of the error string is now on TT file,
no regressions expected here

Verified that changes appear in translated language (de-CH) as appropriate. No regressions found by testing en en de-CH.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested both, entering a numeric value < 0 and non-numeric values, no regressions found.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/transport-cost-matrix.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt