Bugzilla – Attachment 41626 Details for
Bug 14667
Label creator UI/UX revamp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14667: Make some strings translatable
Bug-14667-Make-some-strings-translatable.patch (text/plain), 7.19 KB, created by
Jonathan Druart
on 2015-08-18 16:41:44 UTC
(
hide
)
Description:
Bug 14667: Make some strings translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-18 16:41:44 UTC
Size:
7.19 KB
patch
obsolete
>From 571d24fb035e2f697a386a549f9d65b3e342f94a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Aug 2015 17:40:46 +0100 >Subject: [PATCH] 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> >--- > .../prog/en/modules/labels/label-edit-batch.tt | 3 ++- > .../prog/en/modules/labels/label-manage.tt | 20 ++++++++++++++++++-- > 2 files changed, 20 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >index 642adc8..a7e9758 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >@@ -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(); > } >@@ -226,7 +227,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&batch_id=[% batch_id |url %]&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 %]&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&batch_id=[% batch_id |url %]&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 %]&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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >index 1e435a6..5f2ee43 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >@@ -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&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&label_element=[% label_element %]&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&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&label_element=[% label_element %]&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> >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14667
:
41438
|
41466
|
41625
| 41626 |
43175
|
43176
|
43177