From 56dfb3841ec685be44f6f521adc89b3fdad330e5 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 --- .../intranet-tmpl/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 0e12c41..d3652c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -92,7 +92,21 @@ [% 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 %] @@ -233,9 +247,9 @@ [% END %] [% IF ( module == "members" ) %] - + [% ELSE %] - + [% END %] [% IF ( module == "serial" ) %] -- 2.1.4