From 26d3520ed73e2da01f25f379f4ebb6b5521010cc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 15 Sep 2023 19:17:45 +0000 Subject: [PATCH] Bug 33927: Improve translation of title tags: Tools This patch modifies tools templates so that title tags can be more easily translated. The patch also makes some modifications to titles, breadcrumb navigation, and page headers in order to make them more consistent with each other and with other similar pages. To test, apply the patch and go to Tools. Test each of the following pages and each variation of the page to confirm that titles, breadcrumbs, and page headers look correct. - Tools home page - Import patrons - Import results - Notices and slips - Main page - Main page filtered by library - New notice - Edit notice - Preview notice: With a CHECKIN, CHECKOUT, or HOLD_SLIP notice, fill in the "Data for preview" box in the "Email" section. Although the template loads in a modal window which doesn't show the page title, you can confirm that there are no errors. - Overdue notice/status triggers - Batch patron deletion - Confirmation page - Batch patron modification - Batch extend due dates - Upload patron images Print notices: With useDischarge enabled, log into the OPAC as a user with no checkouts. Go to the "Ask for a discharge" tab and click "Ask for a discharge." Locate the patron's record in the staff interface and click "Discharges" in the left-hand sidebar menu. Click "Generate discharge." Open the resulting PDF file in a browser. The page title should be "Print notices for [date]." Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/batch/print-notices.tt | 9 +++-- .../modules/tools/batch_extend_due_dates.tt | 34 ++++++++++++++-- .../prog/en/modules/tools/cleanborrowers.tt | 15 ++++--- .../prog/en/modules/tools/import_borrowers.tt | 18 +++++---- .../prog/en/modules/tools/letter.tt | 39 ++++++++++++------ .../prog/en/modules/tools/modborrowers.tt | 40 +++++++++++++++---- .../prog/en/modules/tools/overduerules.tt | 6 ++- .../prog/en/modules/tools/picture-upload.tt | 10 ++++- .../prog/en/modules/tools/preview_letter.tt | 9 ++++- .../prog/en/modules/tools/tools-home.tt | 7 +++- 10 files changed, 143 insertions(+), 44 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt index 7511eb5469..043ff2758c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt @@ -1,10 +1,13 @@ -[% INCLUDE 'doc-head-open.inc' %] [% USE raw %] - Print notices for [% today | html %] +[% PROCESS 'i18n.inc' %] +[% INCLUDE 'doc-head-open.inc' %] + [% FILTER collapse %] + [% tx("Print notices for {today}", { today = today }) | html %] + [% END %]