From 901fdce2c658bb4f19396d23a492e2dc6ce28375 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 6 May 2014 11:20:59 +0300 Subject: [PATCH] Bug 11364: Label layout types and text justification types are not translatable To test: 1) cd misc/translator 2) perl translate update xx-YY 3) check that there's no msgids that contain the layout types or text justification types in po/xx-YY-i-staff-t-prog-v-3006000.po 4) apply patch 5) perl translate update xx-YY 6) check po/xx-YY-i-staff-t-prog-v-3006000.po that it contains the msgid for the frequencies. (search for "BLOCK translate_label_types" and "BLOCK translate_justification_types") Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../en/modules/labels/label-edit-layout.tt | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt index 583f6f0eb3..b5d82c5418 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt @@ -1,3 +1,12 @@ +[% BLOCK translate_label_types %] +[% SWITCH type %] +[% CASE 'BIB' %]Biblio +[% CASE 'BARBIB' %]Barcode/Biblio +[% CASE 'BIBBAR' %]Biblio/Barcode +[% CASE 'ALT' %]Alternating +[% CASE 'BAR' %]Barcode +[% END %] +[% END %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Labels [% INCLUDE 'doc-head-close.inc' %] @@ -19,6 +28,13 @@ //]]> +[% BLOCK translate_justification_types %] +[% SWITCH type %] +[% CASE 'L' %]Left +[% CASE 'C' %]Center +[% CASE 'R' %]Right +[% END %] +[% END %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -58,9 +74,9 @@ @@ -132,9 +148,9 @@ -- 2.39.5