[Koha-bugs] [Bug 33077] New: Improve ease of translating template title tags
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 27 16:22:12 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Bug ID: 33077
Summary: Improve ease of translating template title tags
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: koha-bugs at lists.koha-community.org
Reporter: oleonard at myacpl.org
QA Contact: testopia at bugs.koha-community.org
CC: frederic at tamil.fr
Depends on: 15395
Title tags (<title>) in templates present an especially difficult case for
translators because we can't use our usual trick of wrapping text elements with
<span>. This results in strings like this waiting for translation:
#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt:6
#, c-format
msgid ""
"%s %s Modify city %s New city %s › %s %s Confirm deletion of city "
"› %s %s Cities › Administration › Koha "
We can instead use the i18n template plugin introduced by Bug 15395 to wrap
individual title tag elements like so:
[% t("Modify city") | html %]
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15395
[Bug 15395] Internationalization: plural forms, context, and more
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list