From 1015a6e416ce99ca6060583085a25ea183d99017 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 --- .../prog/en/modules/tools/letter.tt | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 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 0e12c41ed0..7310dde334 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -47,7 +47,7 @@ [% IF ( no_op_set ) %]

Notices & slips

- + [% UNLESS independant_branch %]

Select a library : @@ -64,7 +64,7 @@

[% IF ( search ) %] -

You searched for [% searchfield | html %]

+

You searched for [% searchfield %]

[% END %] [% IF ( letter && !independant_branch) %] [% select_for_copy = BLOCK %] @@ -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" ) %] @@ -360,7 +374,7 @@ - + -- 2.39.5