From 7836fe4ef2bd462203c71400e630ba6278df995e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 10 Aug 2018 22:54:11 +0000 Subject: [PATCH] Bug 19500: Make module names on letters overview page translatable While the module pull down on adding and editing a letter is written out and fully translatable, the overview page showed the internal 'module code'. Patch also renames the "Members" module into the "Patrons" module to match Koha's terminology. To test: - Before applying the patch: - Add or edit a notice, look at the pull down for module - Go back to the overview page - Verify the module names don't match - Apply the patch: - Check again, pull downs should now match - Verify that Members is now Patrons everywhere Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit 5e9480937ae0a4bb901330138e1760d690d5f548) Signed-off-by: Martin Renvoize (cherry picked from commit 1015a6e416ce99ca6060583085a25ea183d99017) Signed-off-by: Fridolin Somers --- .../prog/en/modules/tools/letter.tt | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index f56c91860b..087f4c248c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -226,7 +226,21 @@ $(document).ready(function() { [% can_edit = lette.branchcode || !independant_branch %] [% IF lette.branchname %][% lette.branchname %][% ELSE %](All libraries)[% END %] - [% lette.module %] + + [% SWITCH lette.module %] + [% CASE 'acquisition' %]Acquisition + [% CASE 'catalogue' %]Catalog + [% CASE 'circulation' %]Circulation + [% CASE 'orderacquisition' %]Order acquisition + [% CASE 'claimacquisition' %]Claim acquisition + [% CASE 'claimissues' %]Claim serial issue + [% CASE 'reserves' %]Holds + [% CASE 'members' %]Patrons + [% CASE 'serial' %]Serials (new issue) + [% CASE 'suggestions' %]Suggestions + [% CASE %][% lette.module %] + [% END %] + [% lette.code %] [% lette.name %] @@ -367,9 +381,9 @@ $(document).ready(function() { [% END %] [% IF ( module == "members" ) %] - + [% ELSE %] - + [% END %] [% IF ( module == "serial" ) %] -- 2.39.2