Bug 11363: make units in label printer profile form translatable
authorRoman Amor <romanwilton@gmail.com>
Thu, 16 Jan 2014 02:55:03 +0000 (15:55 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 17 Jan 2014 15:09:55 +0000 (15:09 +0000)
Changed the unit names form an import to a switch case so that it is in
the .tt so that it can be translated

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt

index 3051521..815fe61 100644 (file)
                                                     [% ELSE %]
                                                     <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>