]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 21:16:11 +0000 (22:16 +0100)
commit9fa3b18924addd2c468435b13bc1fc84157fff28
tree3ca0016de06b587dc45cb068278e0e26f118c3e7
parenta7f6d8238ea42bbf30a41126f608d814d03e530d
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>
acqui/lateorders-export.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/csv/lateorders.tt