Bugzilla – Attachment 153795 Details for
Bug 34334
'Item(s)' in MARC detail view untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34334: Item(s) in MARCdetail untranslatable
Bug-34334-Items-in-MARCdetail-untranslatable.patch (text/plain), 2.02 KB, created by
Katrin Fischer
on 2023-07-21 14:06:24 UTC
(
hide
)
Description:
Bug 34334: Item(s) in MARCdetail untranslatable
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-07-21 14:06:24 UTC
Size:
2.02 KB
patch
obsolete
>From 067be7c9369588bd3c345ecccaf4b2448ebb9682 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 21 Jul 2023 10:17:39 +0000 >Subject: [PATCH] Bug 34334: Item(s) in MARCdetail untranslatable > >This patch adds a <span> 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 <caroline.cyr-la-rose@inlibro.com> >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > 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 449b159a87..c5db687dc9 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" %] <span>Item(s)</span> [% END %] > [% END %] > [% END # /WRAPPER tabs_nav %] > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34334
:
153775
|
153794
| 153795