Bug 14667: Make some strings translatable

This patch 1/ Fixes a regression introduced by the previous patch: the
"Are you sure to delete..." strings was translatable and 2/ Make the
table headers translatable.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2015-08-18 17:40:46 +01:00 committed by Tomas Cohen Arazi
parent fa99f75bdc
commit 00d85593b9
2 changed files with 20 additions and 3 deletions

View file

@ -7,6 +7,7 @@
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models
$(".focus:last").select();
}
@ -244,7 +245,7 @@
<tr>
[% FOREACH text_field IN table_loo.text_fields %]
[% IF ( text_field.select_field ) %]
<td><a class="btn btn-mini" onclick="return confirm('Are you sure you want to delete this?');" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><icon class="icon-trash"></icon> Delete</a> <a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value |url %]')"><icon class="icon-share"></icon> Export</a></td>
<td><a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><icon class="icon-trash"></icon> Delete</a> <a class="btn btn-mini" href="#" onclick="GB_showCenter('Export labels','/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value |url %]')"><icon class="icon-share"></icon> Export</a></td>
<td><center><input type="checkbox" name="action" value="[% text_field.field_value %]"></center></td>
[% ELSE %]
<td>

View file

@ -4,6 +4,7 @@
[% INCLUDE 'greybox.inc' %]
<script type="text/javascript">
//<![CDATA[
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this?");
function Xport() {
batches= new Array;
if(document.layouts.action.length > 0) {
@ -103,7 +104,22 @@
<thead>
<tr>
[% FOREACH header_field IN table_loo.header_fields %]
<th>[% header_field.field_label %]</th>
[% SWITCH header_field.field_label %]
[% CASE 'Layout ID' %]<th>Layout ID</th>
[% CASE 'Layout' %]<th>Layout</th>
[% CASE 'Barcode Type' %]<th>Barcode type</th>
[% CASE 'Print Type' %]<th>Print type</th>
[% CASE 'Template ID' %]<th>Template ID</th>
[% CASE 'Template Name' %]<th>Template name</th>
[% CASE 'Description' %]<th>Description</th>
[% CASE 'Actions' %]<th>Actions</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 'Item Count' %]<th>Item count</th>
[% CASE %]<th>[% header_field.field_label %]</th>
[% END %]
[% END %]
</tr>
</thead>
@ -111,7 +127,7 @@
<tr>
[% FOREACH text_field IN table_loo.text_fields %]
[% IF ( text_field.select_field ) %]
<td align="center"><a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><icon class="icon-edit"></icon> Edit</a> <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]" onclick="return confirm('Are you sure you want to delete this?');"><icon class="icon-trash"></icon> Delete</a></td>
<td align="center"><a class="btn btn-mini" href="/cgi-bin/koha/labels/label-edit-[% label_element |url %].pl?op=edit&amp;element_id=[% text_field.field_value |url %]"><icon class="icon-edit"></icon> Edit</a> <a class="btn btn-mini" href="/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=[% label_element %]&amp;element_id=[% text_field.field_value |url %]" onclick="return confirm(MSG_CONFIRM_DELETE);"><icon class="icon-trash"></icon> Delete</a></td>
[% IF label_element == 'batch' %] <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
[% ELSIF ( text_field.field_value ) %]
<td>[% text_field.field_value %]</td>