Bug 20111: i18nize units in Patron card creator
authorVictor Grousset <victor.grousset@biblibre.com>
Wed, 14 Feb 2018 10:25:34 +0000 (11:25 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:15 +0000 (17:31 -0300)
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

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt

index 3f69400..83222ed 100644 (file)
                                             <option value="[% unit.type %]">
                                             [% END %]
 
-                                            [% unit.desc %]
+                                            [% SWITCH unit.type %]
+                                            [%   CASE 'POINT' %]
+                                            <span>PostScript Points</span>
+                                            [%   CASE 'AGATE' %]
+                                            <span>Adobe Agates</span>
+                                            [%   CASE 'INCH' %]
+                                            <span>US Inches</span>
+                                            [%   CASE 'MM' %]
+                                            <span>SI Millimeters</span>
+                                            [%   CASE 'CM' %]
+                                            <span>SI Centimeters</span>
+                                            [% END %]
+
                                             </option>
                                         [% END %]
                                         </select>