]> git.koha-community.org Git - koha.git/commit
Bug 14264: Fix export of late orders when translated
authorJonathan Druart <jonathan.druart@koha-community.org>
Sun, 24 May 2015 15:52:25 +0000 (17:52 +0200)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 11 Dec 2015 01:46:29 +0000 (14:46 +1300)
commitbf9994fb34aa01bf9a635358f4adb64b8a7b26c4
tree0f1897174125af1a4b2f0e6ef99f802c0bd16516
parent6edc09cfef26158266979479de0c7e83566ccd64
Bug 14264: Fix export of late orders when translated

Bug 7298 tried to fix this issue, but it was not correct.
We have 3 files in acqui/csv:
basketgroup.tt, basket.tt and lateorders.tt
The first 2 don't contain translatable string, and are not modified on
translating the templates (`translate install`)
On the contrary, lateorders.tt has some strings to translate ('Author:',
'Published by:', etc.). After being translated, all carriage returns
between TT tags are removed.

Test plan:
1/ choose a language and update + translate the templates
for instance:
  cd misc/translate;
  ./translate update es-ES; ./translate install es-ES
2/ Go to acqui/lateorders.pl using this language
3/ Generate a csv for 1+ late orders and confirm the first line only
contains the headers.

Signed-off-by: Laurence Lefaucheur <laurence.lefaucheur@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b2706884a1916827229ad6f818790ec47a43cbf5)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 9fa3b18924addd2c468435b13bc1fc84157fff28)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
acqui/lateorders-export.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/csv/lateorders.tt