]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 23 Nov 2015 14:24:51 +0000 (11:24 -0300)
commitb2706884a1916827229ad6f818790ec47a43cbf5
treed816c91690108fd703820f01b6136285cfb1aa7b
parent5574a2fc4952322219892bcff3ea2525fec41949
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>
acqui/lateorders-export.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/csv/lateorders.tt