From fd09dd40a99b20a5095e9b05724f256868421d12 Mon Sep 17 00:00:00 2001 From: Blou Date: Fri, 3 Mar 2017 16:13:40 -0500 Subject: [PATCH] Bug 18209 - Patron's card manage.pl page is not fully translatable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Re-tested, works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit bb1492e9f67439753bf428bd06fa710791e70c74) Signed-off-by: Katrin Fischer --- .../prog/en/modules/patroncards/manage.tt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt index efdf9fb72d..ed2787b9c0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -196,11 +196,19 @@ [% FOREACH header_field IN table_loo.header_fields %] [% SWITCH header_field.field_label -%] - [% CASE "Select" -%] - [% IF ( print ) %]Select[% END %] - [% CASE %] - [% header_field.field_label %] - [% END -%] + [%- CASE 'Layout ID' -%]Layout ID + [%- CASE 'Layout' -%]Layout + [%- CASE 'Action' -%]Action + [%- CASE 'Select' -%][% IF ( print ) %]Select[% END %] + [%- CASE 'Template ID' -%]Template ID + [%- CASE 'Template Name' -%]Template name + [%- CASE 'Description' -%]Description + [%- CASE 'Profile ID' -%]Profile ID + [%- CASE 'Printer Name' -%]Printer name + [%- CASE 'Paper Bin' -%]Paper bin + [%- CASE 'Batch ID' -%]Batch ID + [%- CASE 'Patron Count' -%]Patron Count + [% END -%] [% END %] [% ELSE %] -- 2.39.5