From 177ff20ec2f249ebacee5f793fa0926ded6d1184 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 2 Jul 2015 10:37:22 +0200 Subject: [PATCH] Bug 14485: HTML comment disables translation in cataloguing/addbooks.tt In cataloguing/addbooks.tt, the line : [% total %] result(s) found in catalog, is not present in PO files even after an update. I've found that the cause is the previous HTML comment line. This patch converts HTML comment into TT comment and adds a div to have a more comprehensive string to translate. Test plan : - without patch - go into /misc/translator - run PO update for example in french : translate update fr-FR => the text "result(s) found in catalog" is missing from PO file : fr-FR-staff-prog.po - restore default PO files - apply patch - go into /misc/translator - run PO update for example in french : translate update fr-FR => You find text "result(s) found in catalog" in PO file : fr-FR-staff-prog.po Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Eduardo Castro Avalos Works as advertised. Just one msgid appear with msgid "%s result(s) found in catalog," Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit e2ab42716825c5dedbb0036ae56a28e6119083f5) Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt index 19e0e1cb76..affa0fef7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -101,11 +101,13 @@ No results found [% END %] - +[%# display the search results %] [% IF ( total ) %] -[% total %] result(s) found in catalog, -[% breeding_count %] result(s) found in reservoir +
+ [% total %] result(s) found in catalog, + [% breeding_count %] result(s) found in reservoir +
[% pagination_bar %]
-- 2.39.5