From 5e9480937ae0a4bb901330138e1760d690d5f548 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 --- .../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 b72639de5b..a323f1ec72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -93,7 +93,21 @@ [% can_edit = lette.branchcode || !independant_branch | html %] [% IF lette.branchname %][% lette.branchname | html %][% ELSE %](All libraries)[% END %] - [% lette.module | html %] + + [% 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 | html %] + [% END %] + [% lette.code | html %] [% lette.name | html %] @@ -234,9 +248,9 @@ [% END %] [% IF ( module == "members" ) %] - + [% ELSE %] - + [% END %] [% IF ( module == "serial" ) %] -- 2.39.5