Bugzilla – Attachment 152125 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.13 KB, created by
Sam Lau
on 2023-06-07 17:46:43 UTC
(
hide
)
Description:
Bug 33910: Improve translation of title tags: Authorities
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-06-07 17:46:43 UTC
Size:
8.13 KB
patch
obsolete
>From a5f2d75c51a36e45f34bd1897f38935998ec4b5b 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> >--- > .../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' %] >-<title>Cataloging authority plugin › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Cataloging authority plugin") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >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 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' %] >-<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 d72d51650c..3e2276460c 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 b4a53ea58e..d9655bc88d 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 7931ce0345..8035e51b1b 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 42826d7928..f8cace919c 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