From d306d699782ed334afdb7cc295b8279144858ed7 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Tue, 28 Apr 2020 21:21:09 -0300 Subject: [PATCH] Bug 24636: translate planning sections This patch adds a new inc file to process and translate plannig sections To test: 1) Apply patch 2) Create new language files (cd misc/translator; ./translate create xx-YY) 3) Verify new file is taken into account in translation files egrep -n budget_planning misc/translator/xx-YY*.po check new strings in staff-prog file 4) Go to Administration > Budgets > Founds > Planning select different options, check page title and 'Planning for...' phrase 5) Translate strings, install new language, enable it, verify the text change with options like point 4) Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc | 7 +++++++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc new file mode 100644 index 0000000000..ff8cdee94e --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc @@ -0,0 +1,7 @@ +[%- BLOCK planning -%] + [%- SWITCH plan -%] + [%- CASE 'MONTHS' -%]months + [%- CASE 'BRANCHES' -%]libraries + [%- CASE 'ITEMTYPES' -%]item types + [%- END -%] +[%- END -%] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt index e714e87e2a..6872142843 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt @@ -3,7 +3,8 @@ [% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% authcat | html %] +[% PROCESS 'budget_planning.inc' %] +Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% PROCESS planning plan=authcat %] [% INCLUDE 'doc-head-close.inc' %] @@ -28,7 +29,7 @@ [% INCLUDE 'budgets-admin-toolbar.inc' %]
-

Planning for [% budget_period_description | html %] by [% authcat | html %]

+

Planning for [% budget_period_description | html %] by [% PROCESS planning plan=authcat %]

-- 2.11.0