From 4bf308020b9f7b28cb831c0cf796ff732a894e98 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Jun 2023 15:05:17 +0000 Subject: [PATCH] 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. --- .../prog/en/modules/authorities/auth_finder.tt | 6 +++++- .../prog/en/modules/authorities/authorities-home.tt | 6 +++++- .../prog/en/modules/authorities/authorities.tt | 11 ++++++++++- .../authorities/blinddetail-biblio-search.tt | 7 ++++++- .../prog/en/modules/authorities/detail.tt | 13 ++++++++----- .../prog/en/modules/authorities/merge.tt | 7 ++++++- .../en/modules/authorities/searchresultlist-auth.tt | 6 +++++- .../prog/en/modules/authorities/searchresultlist.tt | 7 ++++++- 8 files changed, 51 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt index 14d5b8db3c..1c6f801f2c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt @@ -1,8 +1,12 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Cataloging authority plugin › Koha +[% FILTER collapse %] + [% t("Cataloging authority plugin") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt index 9703ee9ecd..5e6933caea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt @@ -1,7 +1,11 @@ [% USE raw %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Authorities › Koha +[% FILTER collapse %] + [% t("Authorities") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index 71b8eb3ef6..63b1dd6975 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -1,8 +1,17 @@ [% USE raw %] [% USE To %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] › Authorities › Koha +[% 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 %] › + [% t("Authorities") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.js("lib/hc-sticky.js") | $raw %]