Bug 18209 - Patron's card manage.pl page is not fully translatable
authorBlou <philippe.blouin@inlibro.com>
Fri, 3 Mar 2017 21:13:40 +0000 (16:13 -0500)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 21 Apr 2017 10:21:12 +0000 (12:21 +0200)
The headers of the tables displayed in patroncards/manage.tt are hardcoded in the .pl and thus cannot be translated.

This simple fix reuse the translate_card_element tool already in the code to make the strings translatable.

Applied patch and verified that table headers on manage.pl display the same as before.
Signed-off-by: Marc Véron <veron@veron.ch>

Re-tested, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit bb1492e9f67439753bf428bd06fa710791e70c74)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 0a3b7777bbeb88e39903ceee35464d5eaec231e3)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt

index 383f429..b15dae5 100644 (file)
                                 <tr>
                                 [% FOREACH header_field IN table_loo.header_fields %]
                                     [% SWITCH header_field.field_label -%]
-                                        [% CASE "Select" -%]
-                                             [% IF ( print ) %]<th>Select</th>[% END %]
-                                        [% CASE %]
-                                             <th>[% header_field.field_label %]</th>
-                                        [% END -%]
+                                        [%-  CASE 'Layout ID'     -%]<th>Layout ID</th>
+                                        [%-  CASE 'Layout'        -%]<th>Layout</th>
+                                        [%-  CASE 'Action'        -%]<th>Action</th>
+                                        [%-  CASE 'Select'        -%][% IF ( print ) %]<th>Select</th>[% END %]
+                                        [%-  CASE 'Template ID'   -%]<th>Template ID</th>
+                                        [%-  CASE 'Template Name' -%]<th>Template name</th>
+                                        [%-  CASE 'Description'   -%]<th>Description</th>
+                                        [%-  CASE 'Profile ID'    -%]<th>Profile ID</th>
+                                        [%-  CASE 'Printer Name'  -%]<th>Printer name</th>
+                                        [%-  CASE 'Paper Bin'     -%]<th>Paper bin</th>
+                                        [%-  CASE 'Batch ID'      -%]<th>Batch ID</th>
+                                        [%-  CASE 'Patron Count'  -%]<th>Patron Count</th>
+                                    [% END -%]
                                 [% END %]
                                 </tr>
                                 [% ELSE %]