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
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit bf40cb58aa)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
e1fe71f372
commit
368fa69831
|
|
@ -44,7 +44,7 @@
|
|||
[% Koha.Preference('IntranetNav') | $raw %]
|
||||
<li class="nav-item dropdown">
|
||||
<a href="/cgi-bin/koha/mainpage.pl" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false"
|
||||
><span class="nav-link-icon"><i class="fa fa-fw fa-bars" title="More"></i></span> <span class="nav-link-text">More</span></a
|
||||
><span class="nav-link-icon"><i class="fa fa-fw fa-bars" title="[% tp('More menu options', 'More') | html %]"></i></span> <span class="nav-link-text">[% tp("More menu options", "More") | html %]</span></a
|
||||
>
|
||||
<ul class="dropdown-menu dropdown-menu-dark dropdown-menu-end">
|
||||
<li><a class="dropdown-item" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown">More <span class="caret"></span></button>
|
||||
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown">[% tp("More menu options", "More") | html %] <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@
|
|||
<th>Order line</th>
|
||||
<th title="Item holds / Total holds">Holds</th>
|
||||
<th>Summary</th>
|
||||
<th class="no-sort">More</th>
|
||||
<th class="no-sort">[% tp("Table column with more options", "More") | html %]</th>
|
||||
<th>Replacement price</th>
|
||||
<th>Quantity</th>
|
||||
<th>Fund</th>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
<label for="domain">Domain: </label>
|
||||
<input type="text" name="domain" id="domain" size="60" />
|
||||
<div class="hint"
|
||||
>Email domain to match this rule. <button class="more btn btn-ligth" data-bs-target="domain"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Email domain to match this rule. <button class="more btn btn-ligth" data-bs-target="domain"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-domain" style="display: none">
|
||||
<p>If this field is empty, or '*' any email domain will match this rule.</p>
|
||||
|
|
@ -182,7 +182,7 @@
|
|||
<label for="domain">Domain: </label>
|
||||
<input type="text" name="domain" id="domain" size="60" value="[%- identity_provider_domain.domain | html -%]" />
|
||||
<div class="hint"
|
||||
>Email domain to match this rule. <button class="more btn btn-ligth" data-bs-target="domain"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Email domain to match this rule. <button class="more btn btn-ligth" data-bs-target="domain"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-domain" style="display: none">
|
||||
<p>If this field is empty, or '*' any email domain will match this rule.</p>
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@
|
|||
<textarea name="config" id="config" class="required" cols="75" rows="10"></textarea>
|
||||
<span class="required">Required</span>
|
||||
<div class="hint"
|
||||
>Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-config" style="display: none">
|
||||
<div>This configuration differs for each protocol.</div>
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10"></textarea>
|
||||
<span class="required">Required</span>
|
||||
<div class="hint"
|
||||
>Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-mapping" style="display: none">
|
||||
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div>
|
||||
|
|
@ -290,7 +290,7 @@
|
|||
<textarea name="config" id="config" class="required" cols="75" rows="10">[%- identity_provider.config | html -%]</textarea>
|
||||
<span class="required">Required</span>
|
||||
<div class="hint"
|
||||
>Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-config" style="display: none">
|
||||
<div>This configuration differs for each protocol.</div>
|
||||
|
|
@ -305,7 +305,7 @@
|
|||
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10">[%- identity_provider.mapping | html -%]</textarea>
|
||||
<span class="required">Required</span>
|
||||
<div class="hint"
|
||||
>Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> More</button></div
|
||||
>Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> [% tp("Show more information", "More") | html %]</button></div
|
||||
>
|
||||
<div class="hint more-mapping" style="display: none">
|
||||
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue