From 9d245e202918259d00c430931aebb55f75288308 Mon Sep 17 00:00:00 2001
From: Victor Grousset <victor.grousset@biblibre.com>
Date: Wed, 14 Feb 2018 11:25:34 +0100
Subject: [PATCH] Bug 20111: i18nize units in Patron card creator
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Test plan:
1. install and switch to the fr_FR locale
or another one and adapt the test plan accordingly
2. go to /cgi-bin/koha/patroncards/edit-template.pl?op=new
3. then you should see the "Unités" dropdown with english units
4. apply this patch
5. install the language
6. refresh the page
7. then you should see the "Unités" dropdown with french units
---
.../prog/en/modules/patroncards/edit-template.tt | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt
index 3f69400..96e3ae5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt
@@ -84,7 +84,19 @@
<option value="[% unit.type %]">
[% END %]
- [% unit.desc %]
+ [% SWITCH unit.type %]
+ [% CASE 'POINT' %]
+ PostScript Points
+ [% CASE 'AGATE' %]
+ Adobe Agates
+ [% CASE 'INCH' %]
+ US Inches
+ [% CASE 'MM' %]
+ SI Millimeters
+ [% CASE 'CM' %]
+ SI Centimeters
+ [% END %]
+
</option>
[% END %]
</select>
--
2.7.4