Bug 33910: Improve translation of title tags: Authorities

This patch updates authorities templates so that title
tags can be more easily translated.

To test, apply the patch and confirm that the following authorities
pages have the correct title tags:

- Authorities -> Authorities home page
  - Authority search results
    - Authority details
      - Edit authority
      - Merge authorities
- Cataloging -> New or edit record
  - Trigger the authority search plugin on a field which is linked to an
    authority type.

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-06-06 15:05:17 +00:00 committed by Tomas Cohen Arazi
parent 1ce37bf529
commit f1975ff68e
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
8 changed files with 51 additions and 12 deletions

View File

@ -1,8 +1,12 @@
[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Cataloging authority plugin &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Cataloging authority plugin") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
#clear-form {

View File

@ -1,7 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Authorities &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,8 +1,17 @@
[% USE raw %]
[% USE To %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] &rsaquo; Authorities &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF ( authid ) %]
[% tx("Modify authority #{authority_id} ({authtypetext})", { authority_id = authid, authtypetext = authtypetext }) | html %]
[% ELSE %]
[% tx("Adding authority ({authtypetext})", { authtypetext = authtypetext }) | html %]
[% END %] &rsaquo;
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
<script>

View File

@ -1,7 +1,12 @@
[% USE To %]
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Authority details &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Authority details") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,15 +1,18 @@
[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
<title>[% FILTER collapse %]
[% IF ( unknownauthid ) %]
Unknown authority record
[% t("Unknown authority record") | html %]
[% ELSE %]
Details for authority #[% authid | html %] ([% authtypetext | html %])
[% END %] &rsaquo; Authorities &rsaquo; Koha
</title>
[% tx("Details for authority #{authid} ({authtypetext})", { authid = authid, authtypetext = authtypetext }) | html %]
[% END %] &rsaquo;
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
[% IF ( displayhierarchy ) %]

View File

@ -1,9 +1,14 @@
[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'merge-record.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Merging records &rsaquo; Cataloging &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Merging records") | html %] &rsaquo;
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
div.record ul, div.record li { float:none; display:block; }

View File

@ -1,10 +1,14 @@
[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities-search-results.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Cataloging authority plugin &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Cataloging authority plugin") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
<style>

View File

@ -1,10 +1,15 @@
[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities-search-results.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Authority search results &rsaquo; Authorities &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Authority search results") | html %] &rsaquo;
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
<style>