Bug 11614: Untranslatable label_element_title in label management

This patch makes those strings translatable.
Title now depends on element, all on TT file,
removed from pl file

To test:
1. Apply the patch
2. Go to Tools > Label creator
3. Clic on Manage layouts, templates, profilesor batches,
title of currently available must show with fixed
capitalization
4. Update translation languages and check new entries
msgid "Currently available batches"
msgid "Currently available layouts"
msgid "Currently available profiles"
msgid "Currently available templates

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Bernardo Gonzalez Kriegel 2014-08-14 21:07:04 -03:00 committed by Tomas Cohen Arazi
parent ec2921b83b
commit 1fc9a5fadf
2 changed files with 9 additions and 7 deletions

View File

@ -113,7 +113,15 @@
<div class="hint">Current library: [% LoginBranchname %]</div>
[% IF ( table_loop ) %]
<form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]">
<h2>Currently Available [% label_element_title %]</h2>
[% IF ( label_element == 'layout' ) %]
<h2>Currently available layouts</h2>
[% ELSIF ( label_element == 'template' ) %]
<h2>Currently available templates</h2>
[% ELSIF ( label_element == 'profile' ) %]
<h2>Currently available profiles</h2>
[% ELSIF ( label_element == 'batch' ) %]
<h2>Currently available batches</h2>
[% END %]
<table id="labels-table">
[% FOREACH table_loo IN table_loop %]
[% IF ( table_loo.header_fields ) %]

View File

@ -98,12 +98,6 @@ $template->param(
element_id => $element_id,
table_loop => $table,
label_element => $label_element,
label_element_title => ($label_element eq 'layout' ? 'Layouts' :
$label_element eq 'template' ? 'Templates' :
$label_element eq 'profile' ? 'Profiles' :
$label_element eq 'batch' ? 'Batches' :
''
),
);
output_html_with_http_headers $cgi, $cookie, $template->output;