From 068d0c43c1e59e8165945fe379568b66b389aee4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Jun 2023 15:29:12 +0000 Subject: [PATCH] Bug 33925: Improve translation of title tags: Serials MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates serials templates so that title tags can be more easily translated. Some templates have been updated for consistency as well: Harmonizing page title, breaddrumb navigation, and page headers; Adding "page-section"
where it was lacking. To test, apply the patch and confirm that the following pages have the correct title tags: - Serials home - Serials search results - Subscription details - Subscription edit - Search for vendor - Search for bibliographic record - Subscription renew - Serial collection - Create and modify routing list - Preview routing list - View routing slip - Claims - Check expiration - With a subscription which has manual history enabled, click the "Edit history" link under the "Planning" tab. - Select multiple serial search results and batch edit - New subscription - Manage frequencies: Create and edit - Manage numbering patterns: Create and edit Signed-off-by: Loïc Vassaux-Artur Signed-off-by: Katrin Fischer --- .../en/modules/serials/acqui-search-result.tt | 8 +- .../prog/en/modules/serials/acqui-search.tt | 8 +- .../en/modules/serials/checkexpiration.tt | 24 +++--- .../prog/en/modules/serials/claims.tt | 10 ++- .../prog/en/modules/serials/result.tt | 8 +- .../modules/serials/routing-preview-slip.tt | 10 ++- .../en/modules/serials/routing-preview.tt | 8 +- .../prog/en/modules/serials/routing.tt | 20 +++-- .../en/modules/serials/serials-collection.tt | 8 +- .../prog/en/modules/serials/serials-edit.tt | 15 +++- .../prog/en/modules/serials/serials-home.tt | 6 +- .../prog/en/modules/serials/serials-search.tt | 7 +- .../en/modules/serials/subscription-add.tt | 12 ++- .../modules/serials/subscription-batchedit.tt | 7 +- .../serials/subscription-bib-search.tt | 8 +- .../en/modules/serials/subscription-detail.tt | 11 ++- .../serials/subscription-frequencies.tt | 35 +++++++- .../modules/serials/subscription-history.tt | 80 +++++++++++-------- .../serials/subscription-numberpatterns.tt | 16 +++- .../en/modules/serials/subscription-renew.tt | 17 ++-- .../prog/en/modules/serials/viewalerts.tt | 8 +- 21 files changed, 245 insertions(+), 81 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt index 2c1460fa8b..6f03b3a2f8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt @@ -1,6 +1,12 @@ +[% USE raw %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Select vendor › Serials › Koha +[% FILTER collapse %] + [% t("Vendor search results") | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt index aa2988f086..6940821358 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt @@ -1,5 +1,11 @@ +[% USE raw %] +[% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] -Search for vendor › Serials › Koha +[% FILTER collapse %] + [% t("Search for vendor") | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt index 32570a6e18..e3a4466818 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt @@ -1,9 +1,14 @@ [% USE raw %] [% USE Branches %] [% USE KohaDates %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Check expiration › Serials › Koha +[% FILTER collapse %] + [% t("Check expiration") | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -71,18 +76,12 @@ [% IF ( subscriptions_loop ) %] -

- [% numsubscription | html %] subscription(s) - [% IF ( title ) %] - with title matching [% title | html %] - [% IF ( issn ) %]and [% END %] - [% END %] - [% IF ( issn ) %] - with ISSN matching [% issn | html %] - [% END %] - will expire before [% date | $KohaDates %] -

+

+ [% expirydate = date | $KohaDates %] + [% tnx("Your search returned 1 subscription expiring before {date}", "Your search returned {count} subscriptions expiring before {date}", numsubscription, { date = expirydate, count = numsubscription }) %] +

+
Select all | Clear all @@ -138,6 +137,7 @@ [% END %] +
[% ELSIF searched %]

No results for your query

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index 8b98eebc7e..56c96de354 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -3,9 +3,17 @@ [% USE AuthorisedValues %] [% USE Branches %] [% USE KohaDates %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - [% IF ( supplierid ) -%] Claims for [% suppliername | html %] › [% END %] Claims › Serials › Koha + [% FILTER collapse %] + [% IF( supplierid ) %] + [% tx("Claims for {vendor}", { vendor = suppliername }) | html %] › + [% END %] + [% t("Claims") | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] + [% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt index 9f8a77d05b..8292fa5292 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt @@ -1,6 +1,12 @@ +[% USE raw %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Search results › Serials › Koha +[% FILTER collapse %] + [% t("Search results") | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt index 930b1a7868..dbcadf40bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt @@ -1,8 +1,13 @@ -[% USE Koha %] [% USE raw %] +[% USE Koha %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Routing slip preview › Serials › Koha +[% FILTER collapse %] + [% tx("Routing slip for {title}", { title = title }) | html %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt index f169a58274..6f6c5a86b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -4,9 +4,19 @@ [% USE KohaDates %] [% USE Branches %] [% USE Koha %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( modify ) %][% bibliotitle | html %] › Modify subscription[% ELSE %]New subscription[% END %] › Serials › Koha +[% FILTER collapse %] + [% IF( modify ) %] + [% t("Modify subscription") | html %] › + [% bibliotitle | html %] + [% ELSE %] + [% t("New subscription") | html %] + [% END %] › + [% t("Serials") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %]