From 80bf83ea5eb7250628acce2b854c26b3d96a06de Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Jun 2023 15:19:20 +0000 Subject: [PATCH] Bug 33917: Improve translation of title tags: Offline circulation and patron lists This patch updates offline circulation and patron lists templates so that title tags can be more easily translated. To test, apply the patch and confirm that the following pages have the correct title tags: - Circulation -> Upload offline circulation file - Add to queue - View pending offline circulations - Tools -> Patron lists - New list, edit list - View list --- .../prog/en/modules/offline_circ/enqueue_koc.tt | 8 +++++++- .../prog/en/modules/offline_circ/list.tt | 7 ++++++- .../prog/en/modules/offline_circ/process_koc.tt | 7 ++++++- .../prog/en/modules/patron_lists/add-modify.tt | 14 +++++++++----- .../prog/en/modules/patron_lists/list.tt | 9 ++++++++- .../prog/en/modules/patron_lists/lists.tt | 7 ++++++- 6 files changed, 42 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt index bab38d55e5..05b7cfd2c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt @@ -1,5 +1,11 @@ +[% USE raw %] +[% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] -Add offline circulations to queue › Circulation › Koha +[% FILTER collapse %] + [% t("Add offline circulations to queue") | html %] › + [% t("Circulation") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt index f47b0bef45..bba7a63b82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt @@ -1,8 +1,13 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE "doc-head-open.inc" %] - Offline circulation › Circulation › Koha + [% FILTER collapse %] + [% t("Offline circulation") | html %] › + [% t("Circulation") | html %] › + [% t("Koha") | html %] + [% END %] [% INCLUDE "doc-head-close.inc" %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt index 94586b14e7..8423e510b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt @@ -1,8 +1,13 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Offline circulation file upload › Circulation › Koha +[% FILTER collapse %] + [% t("Offline circulation file upload") | html %] › + [% t("Circulation") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt index 85fabb0c84..142efe84a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt @@ -1,14 +1,18 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - +<title>[% FILTER collapse %] [% IF list.patron_list_id %] - Modify patron list + [% t("Modify patron list") | html %] [% ELSE %] - New patron list - [% END %] › Patron lists › Tools › Koha - + [% t("New patron list") | html %] + [% END %] › + [% t("Patron lists") | html %] › + [% t("Tools") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt index dc3c6b6376..1e25e8c07c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt @@ -2,10 +2,17 @@ [% USE Asset %] [% USE KohaDates %] [% USE TablesSettings %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'columns_settings.inc' %] -Add patrons › [% list.name | html %] › Patron lists › Tools › Koha +[% FILTER collapse %] + [% t("Add patrons") | html %] › + [% list.name | html %] › + [% t("Patron lists") | html %] › + [% t("Tools") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %]