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>
<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 ) %]
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;