]> git.koha-community.org Git - koha.git/commit
Bug 34334: Item(s) in MARCdetail untranslatable
authorOwen Leonard <oleonard@myacpl.org>
Fri, 21 Jul 2023 10:17:39 +0000 (10:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 21 Jul 2023 20:14:39 +0000 (17:14 -0300)
commit92692a2ee96f2eced21849e0ca9fa0b5d7c44801
tree5a2f6ecacab34e659e7e90ae98b2296a8dd8654e
parentc8dbed27f1e3b5f962318b0e158166794974b406
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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt