From e764b4258463306ef58d79458d78630e9b1c1344 Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Fri, 13 May 2022 21:25:53 +0200 Subject: [PATCH] Bug 30629: fix in title of some pages == Test plan == 1. Go to http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=layout 2. See that the page title in your browser window title is wrong because it contains 3. Go to http://localhost:8081/cgi-bin/koha/labels/label-manage.pl?label_element=batch 4. See that the page title in your browser window title is wrong because it contains 5. Go to http://localhost:8081/cgi-bin/koha/admin/aqbudgetperiods.pl 6. Administration => Budgets => Click on a budget => planning => plan by months 7. See that the page title in your browser window title is wrong because it contains 8. Refresh the pages and see that the titles are correct 9. Sign off :) --- .../prog/en/includes/budget_planning.inc | 7 ++++--- .../prog/en/modules/labels/label-manage.tt | 17 +++++++++-------- .../prog/en/modules/patroncards/manage.tt | 19 ++++++++++--------- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc index d1f2dc78ae..bc79e2a024 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc @@ -1,7 +1,8 @@ +[% PROCESS 'i18n.inc' %] [%- BLOCK planning -%] [%- SWITCH plan -%] - [%- CASE 'MONTHS' -%]by months - [%- CASE 'BRANCHES' -%]by libraries - [%- CASE 'ITEMTYPES' -%]by item types + [%- CASE 'MONTHS' -%][% t('by months') %] + [%- CASE 'BRANCHES' -%][% t('by libraries') %] + [%- CASE 'ITEMTYPES' -%][% t('by item types') %] [%- END -%] [%- END -%] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt index a1d66abdd7..edecfe52af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt @@ -1,16 +1,17 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% BLOCK translate_label_element %] [%- SWITCH element -%] -[%- CASE 'layout' -%]layout -[%- CASE 'Layouts' -%]Layouts -[%- CASE 'template' -%]template -[%- CASE 'Templates' -%]Templates -[%- CASE 'profile' -%]profile -[%- CASE 'Profiles' -%]Profiles -[%- CASE 'batch' -%]batch -[%- CASE 'Batches' -%]Batches +[%- CASE 'layout' -%][% t('layout') %] +[%- CASE 'Layouts' -%][% t('Layouts') %] +[%- CASE 'template' -%][% t('template') %] +[%- CASE 'Templates' -%][% t('Templates') %] +[%- CASE 'profile' -%][% t('profile') %] +[%- CASE 'Profiles' -%][% t('Profiles') %] +[%- CASE 'batch' -%][% t('batch') %] +[%- CASE 'Batches' -%][% t('Batches') %] [%- END -%] [% END %] [% INCLUDE 'doc-head-open.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt index ec48b90ab5..0e3f6d4085 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -1,16 +1,17 @@ [% USE CGI %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% BLOCK translate_card_element %] [%- SWITCH element -%] -[%- CASE 'layout' -%]layout -[%- CASE 'Layouts' -%]Layouts -[%- CASE 'template' -%]template -[%- CASE 'Templates' -%]Templates -[%- CASE 'profile' -%]profile -[%- CASE 'Profiles' -%]Profiles -[%- CASE 'batch' -%]batch -[%- CASE 'Batches' -%]Batches -[%- CASE 'Actions' -%]Actions +[%- CASE 'layout' -%][% t('layout') %] +[%- CASE 'Layouts' -%][% t('Layouts') %] +[%- CASE 'template' -%][% t('template') %] +[%- CASE 'Templates' -%][% t('Templates') %] +[%- CASE 'profile' -%][% t('profile') %] +[%- CASE 'Profiles' -%][% t('Profiles') %] +[%- CASE 'batch' -%][% t('batch') %] +[%- CASE 'Batches' -%][% t('Batches') %] +[%- CASE 'Actions' -%][% t('Actions') %] [%- END -%] [% END %] [% BLOCK translate_card_elements %] -- 2.36.0