From 1d45aa0517df821c1f66191d8041b457913b4582 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 30 Jul 2025 14:59:48 +0000 Subject: [PATCH] Bug 40510: Add context to the word "More" in several templates This patch updates several templates to use internationalization template functions to add context to the word "More." This gives translators information about the context of the word. To test, apply the patch and test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > gulp po:update > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings which were updated e.g. misc/translator/po/fr-FR-messages.po - Locate instances of the string 'msgid "More"', for example: #: koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt:308 msgctxt "Show more information" msgid "More" msgstr "" - Edit each of the three instances of the "msgstr" string however you want (it's just for testing) - Install the updated translation: > perl translate install fr-FR - In the staff interface, switch to the updated translation and confirm that your translations appear: - In the header menu - In the toolbar shown on a patron checkout or detail page - In Acquisitions -> Invoices -> Invoice search results -> - Click the invoice number - Follow the "Go to receipt page" link - If necessary, receive a pending order so that the "Already received" table appears. - Confirm that your translated string appears as a column header - Go to Administration -> Identity providers - Edit an identity provider - Under "Advanced configuration" you should see your translated string as a link to show more information about the fields. - Click the "Manage domains" link for an identity provider. - Edit a domain. - You should see your translated string as a link to show more information under the "Domain" field. Sponsored-by: Athens County Public Libraries --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +- .../intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 2 +- .../prog/en/modules/admin/identity_provider_domains.tt | 4 ++-- .../prog/en/modules/admin/identity_providers.tt | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 16ed39f758e..0634fd3492b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -44,7 +44,7 @@ [% Koha.Preference('IntranetNav') | $raw %]