From fe22e14775c174a29914035a8c15a670a7f643ae 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 Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../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 13dac4ee38..77b88a7ce4 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,9 +1,14 @@ [% USE raw %] [% USE Asset %] [% USE KohaDates %] +[% 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 fcd05bb280..cf392039fe 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 00a33b8c2a..be8c885b87 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' %]