Bug 40510 - Add context to the word "More" in several templates
Summary: Add context to the word "More" in several templates
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-25 07:34 UTC by Anneli Österman
Modified: 2025-07-30 16:13 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40510: Add context to the word "More" in several templates (10.90 KB, patch)
2025-07-30 16:13 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Anneli Österman 2025-07-25 07:34:03 UTC
In version 24.xx the More dropdown in the main header had it's own string in translations and we had translated it to "Muita toimintoja" (Other functions). In version 25.xx it has been combined with other "More" terms which is translated as "Lisätietoja" (More information). This translation does not fit with the dropdown but is otherwise ok. We would like to separate the header's More string from the others so that we can continue to make a different kind of translation for it.

The More from header is now part of this string: https://translate.koha-community.org/translate/koha/main/staff-prog/fi/?checksum=dd12a8feae20b559
Comment 1 Owen Leonard 2025-07-30 16:13:15 UTC
Created attachment 184905 [details] [review]
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