From 4d9ef1db9f25f0d520531e07f231c8ff64037652 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 21 Jul 2023 10:17:39 +0000 Subject: [PATCH] Bug 34334: Item(s) in MARCdetail untranslatable This patch adds a around the text "Item(s)" in the template for the MARC detail page in the staff interface. Without the span the translation tool can't detect the string. To test, apply the patch and update a translation, e.g. fr-FR: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file, in this case misc/translator/po/fr-FR-staff-prog.po - Confirm that the string is now in the .po file for translation. You should find these lines: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt:146 c-format msgid "Item(s)" msgstr "Exemplaire(s)" I found that the translation was already populated. Install the updated po file: > perl translate install fr-FR Test the MARC detail page in your translated language to confirm that the string is correct. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 92692a2ee96f2eced21849e0ca9fa0b5d7c44801) Signed-off-by: Fridolin Somers (cherry picked from commit 9bffe4aec1ec5cd9f224efa0ada0d0b8657a6d71) Signed-off-by: Pedro Amorim --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt index b23ebc88c0..610d50ea26 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt @@ -143,7 +143,7 @@ [% WRAPPER tab_item tabname= "tab9XX" %] 9 [% END %] [% END %] [% IF ( tab10XX ) %] - [% WRAPPER tab_item tabname= "tab10XX" %] Item(s) [% END %] + [% WRAPPER tab_item tabname= "tab10XX" %] Item(s) [% END %] [% END %] [% END # /WRAPPER tabs_nav %] -- 2.39.5