Bugzilla – Attachment 154812 Details for
Bug 33910
Improve translation of title tags: Authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33910: Improve translation of title tags: Authorities
Bug-33910-Improve-translation-of-title-tags-Author.patch (text/plain), 8.20 KB, created by
Katrin Fischer
on 2023-08-25 13:33:42 UTC
(
hide
)
Description:
Bug 33910: Improve translation of title tags: Authorities
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-08-25 13:33:42 UTC
Size:
8.20 KB
patch
obsolete
>From 73ad18132a431d1a9bcf985fc2e7fb8186b01c5f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. > >Signed-off-by: Sam Lau <samalau@gmail.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 b1ac1b538f..69dafe73de 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' %] >-<title>Cataloging authority plugin › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Cataloging authority plugin") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <style> > #clear-form { >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' %] >-<title>Authorities › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Authorities") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >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 7e20732846..e2b8f01e9f 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' %] >-<title>[% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] › Authorities › 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 %] › >+ [% t("Authorities") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.js("lib/hc-sticky.js") | $raw %] > <script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >index 8930da5d55..32ed4aa7dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >@@ -1,7 +1,12 @@ > [% USE To %] >+[% USE raw %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Authority details › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Authority details") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >index 95390901cf..2392e86dff 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -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 %] › Authorities › Koha >-</title> >+ [% tx("Details for authority #{authid} ({authtypetext})", { authid = authid, authtypetext = authtypetext }) | html %] >+ [% END %] › >+ [% t("Authorities") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.css("css/addbiblio.css") | $raw %] > [% IF ( displayhierarchy ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt >index d2fb80baff..cc2e0ffee6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt >@@ -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 › Cataloging › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Merging records") | html %] › >+ [% t("Authorities") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <style> > div.record ul, div.record li { float:none; display:block; } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >index 10b86c5bc9..c063817a0f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >@@ -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 › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Cataloging authority plugin") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.css("css/addbiblio.css") | $raw %] > <style> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >index 33a3479c72..cb6ff2deef 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >@@ -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 › Authorities › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Authority search results") | html %] › >+ [% t("Authorities") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.css("css/addbiblio.css") | $raw %] > <style> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33910
:
152124
|
152125
| 154812 |
154848