From 4f263ac2b9c4ebbebe5fc4b87c88ce4af863c047 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 25 Jun 2018 08:49:28 +0200 Subject: [PATCH] Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/patroncards --- .../prog/en/modules/patroncards/edit-batch.tt | 53 +++--- .../en/modules/patroncards/edit-layout.tt | 153 +++++++++--------- .../en/modules/patroncards/edit-profile.tt | 45 +++--- .../en/modules/patroncards/edit-template.tt | 59 +++---- .../prog/en/modules/patroncards/home.tt | 9 +- .../en/modules/patroncards/image-manage.tt | 51 +++--- .../prog/en/modules/patroncards/manage.tt | 81 +++++----- .../prog/en/modules/patroncards/print.tt | 45 +++--- 8 files changed, 252 insertions(+), 244 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt index 1eaaa95065..9b5fa44060 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt @@ -1,7 +1,8 @@ +[% PROCESS 'i18n.inc' %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - Koha › Tools › Patron card creator › Batches › [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %] + [% t('Koha › Tools › Patron card creator › Batches ›') %] [% IF batch_id %][% t('Edit (') %][% batch_id %])[% ELSE %][% t('New') %][% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") %] @@ -10,14 +11,14 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
@@ -33,21 +34,21 @@ [% IF ( duplicate_message ) %]
- Duplicate patrons removed from batch number [% batch_id %]: [% duplicate_count %] + [% t('Duplicate patrons removed from batch number') %] [% batch_id %]: [% duplicate_count %]
[% END %] [% INCLUDE 'patroncards-errors.inc' %]
-
Current library: [% LoginBranchname %]
+
[% t('Current library:') %] [% LoginBranchname %]
  1. -
@@ -55,16 +56,16 @@
[% IF ( table_loop ) %]
-

Patrons in batch number [% batch_id %]

+

[% t('Patrons in batch number') %] [% batch_id %]

[% FOREACH table_loo IN table_loop %] [% IF ( table_loo.header_fields ) %] @@ -73,13 +74,13 @@ [% FOREACH header_field IN table_loo.header_fields %] [% SWITCH header_field.field_label -%] [% CASE "Summary" -%] - + [% CASE "Borrower Number" %] - + [% CASE "Actions " %] - + [% CASE "Select" -%] - + [% CASE %] [% END -%] @@ -92,8 +93,8 @@ [% FOREACH text_field IN table_loo.text_fields %] [% IF ( text_field.select_field ) %] [% ELSE %] @@ -110,8 +111,8 @@
  1. -

    There are no patrons in this batch yet

    -

    Add patrons by borrowernumber using the text area above or leave empty to add via patron search.

    +

    [% t('There are no patrons in this batch yet') %]

    +

    [% t('Add patrons by borrowernumber using the text area above or leave empty to add via patron search.') %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt index ae1481292e..74040c6a2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt @@ -1,6 +1,7 @@ +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - Koha › Tools › Patron card creator › Layout › [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %] + [% t('Koha › Tools › Patron card creator › Layout ›') %] [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -8,11 +9,11 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
@@ -30,18 +31,18 @@
- [% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] patron card text layout + [% IF ( layout_id ) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('patron card text layout') %]
  1. - General settings + [% t('General settings') %]
    1. - +
    2. - +
    3. - + [% IF ( page_side ) %] - Front - Back + [% t('Front') %] + [% t('Back') %] [% ELSE %] - Front - Back + [% t('Front') %] + [% t('Back') %] [% END %]
    4. - + [% IF ( guide_box ) %] - On - Off + [% t('On') %] + [% t('Off') %] [% ELSE %] - On - Off + [% t('On') %] + [% t('Off') %] [% END %]
    5. - + [% IF ( guide_grid ) %] - On - Off + [% t('On') %] + [% t('Off') %] [% ELSE %] - On - Off + [% t('On') %] + [% t('Off') %] [% END %]
    @@ -89,23 +90,23 @@
  2. - Text fields + [% t('Text fields') %]
    1. [% IF ( field_1 ) %] - Field 1 + [% t('Field 1') %] [% ELSE %] - Field 1 + [% t('Field 1') %] [% END %]
Borrower name[% t('Borrower name') %]Borrower number[% t('Borrower number') %]Actions[% t('Actions') %]Select[% t('Select') %][% header_field.field_label %] - Delete - Export + [% t('Delete') %] + [% t('Export') %]
[% FOREACH TABL IN TABLE %] @@ -81,11 +82,11 @@ [% FOREACH header_field IN TABL.header_fields %] [% SWITCH header_field.field_label -%] [% CASE "ID" %] - + [% CASE "Name" %] - + [% CASE " " %] - + [% CASE %] [% END %] @@ -96,13 +97,13 @@ [% FOREACH text_field IN TABL.text_fields %] [% IF ( text_field.select_field ) %] [% ELSIF ( text_field.field_value ) %] [% ELSE %] - + [% END %] [% END %] @@ -115,7 +116,7 @@ [% IF ( DELETE_SUCCESSFULL ) %]
-

Image(s) successfully deleted

+

[% t('Image(s) successfully deleted') %]

[% END %] @@ -123,11 +124,11 @@ [% ELSE %]
- No images are currently available. + [% t('No images are currently available.') %]
[% IF ( DELETE_SUCCESSFULL ) %]
-

Image(s) successfully deleted

+

[% t('Image(s) successfully deleted') %]

[% END %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt index 8136394685..a7cc486c97 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -1,29 +1,30 @@ +[% PROCESS 'i18n.inc' %] [% USE CGI %] [% SET footerjs = 1 %] [% BLOCK translate_card_element %] [%- SWITCH element -%] -[%- CASE 'layout' -%]layout -[%- CASE 'Layouts' -%]Layouts -[%- CASE 'template' -%]template -[%- CASE 'Templates' -%]Templates -[%- CASE 'profile' -%]profile -[%- CASE 'Profiles' -%]Profiles -[%- CASE 'batch' -%]batch -[%- CASE 'Batches' -%]Batches -[%- CASE 'Actions' -%]Actions +[%- CASE 'layout' -%][% t('layout') %] +[%- CASE 'Layouts' -%][% t('Layouts') %] +[%- CASE 'template' -%][% t('template') %] +[%- CASE 'Templates' -%][% t('Templates') %] +[%- CASE 'profile' -%][% t('profile') %] +[%- CASE 'Profiles' -%][% t('Profiles') %] +[%- CASE 'batch' -%][% t('batch') %] +[%- CASE 'Batches' -%][% t('Batches') %] +[%- CASE 'Actions' -%][% t('Actions') %] [%- END -%] [% END %] [% BLOCK translate_card_elements %] [%- SWITCH element -%] -[%- CASE 'layout' -%]layouts -[%- CASE 'template' -%]templates -[%- CASE 'profile' -%]profiles -[%- CASE 'batch' -%]batches +[%- CASE 'layout' -%][% t('layouts') %] +[%- CASE 'template' -%][% t('templates') %] +[%- CASE 'profile' -%][% t('profiles') %] +[%- CASE 'batch' -%][% t('batches') %] [%- END -%] [% END %] [% INCLUDE 'doc-head-open.inc' %] - Koha › Tools › Patron card creator › [% PROCESS translate_card_element element=card_element_title %] + [% t('Koha › Tools › Patron card creator ›') %] [% PROCESS translate_card_element element=card_element_title %] [% INCLUDE 'doc-head-close.inc' %] @@ -31,9 +32,9 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
@@ -44,29 +45,29 @@ [% INCLUDE 'patroncards-errors.inc' %]
-
Current library: [% LoginBranchname %]
+
[% t('Current library:') %] [% LoginBranchname %]
[% IF ( table_loop ) %] -

Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]

+

[% t('Currently available') %] [% PROCESS translate_card_element element=card_element_title FILTER lower %]

Image ID[% t('Image ID') %]Name[% t('Name') %]Delete[% t('Delete') %][% header_field.field_label %] - Delete + [% t('Delete') %] [% text_field.field_value %]  
[% FOREACH table_loo IN table_loop %] [% IF ( table_loo.header_fields ) %] [% FOREACH header_field IN table_loo.header_fields %] [% SWITCH header_field.field_label -%] - [%- CASE 'Layout ID' -%] - [%- CASE 'Layout' -%] - [%- CASE 'Action' -%] - [%- CASE 'Actions' -%] - [%- CASE 'Select' -%][% IF ( print ) %][% END %] - [%- CASE 'Template ID' -%] - [%- CASE 'Template Name' -%] - [%- CASE 'Description' -%] - [%- CASE 'Profile ID' -%] - [%- CASE 'Printer Name' -%] - [%- CASE 'Paper Bin' -%] - [%- CASE 'Batch ID' -%] - [%- CASE 'Patron Count' -%] + [%- CASE 'Layout ID' -%] + [%- CASE 'Layout' -%] + [%- CASE 'Action' -%] + [%- CASE 'Actions' -%] + [%- CASE 'Select' -%][% IF ( print ) %][% END %] + [%- CASE 'Template ID' -%] + [%- CASE 'Template Name' -%] + [%- CASE 'Description' -%] + [%- CASE 'Profile ID' -%] + [%- CASE 'Printer Name' -%] + [%- CASE 'Paper Bin' -%] + [%- CASE 'Batch ID' -%] + [%- CASE 'Patron Count' -%] [%- CASE -%] [% END -%] [% END %] @@ -76,15 +77,15 @@ [% FOREACH text_field IN table_loo.text_fields %] [% IF ( text_field.select_field ) %] [% IF ( print ) %][% END %] [% ELSIF ( text_field.field_value ) %] [% ELSE %] - + [% END %] [% END %] @@ -96,10 +97,10 @@ [% IF patron_lists %]
- Or use a patron list + [% t('Or use a patron list') %]
  1. - + [% FOREACH template IN templates %] @@ -82,7 +83,7 @@
  2. - +
  3. - + - Used for duplex printers (needs a '1 up template') + [% t('Used for duplex printers (needs a \'1 up template\')') %]
  4. - - + +
- Cancel + [% t('Cancel') %]
[% END %] -- 2.17.1
Layout IDLayoutActionActionsSelectTemplate IDTemplate nameDescriptionProfile IDPrinter namePaper binBatch IDPatron count[% t('Layout ID') %][% t('Layout') %][% t('Action') %][% t('Actions') %][% t('Select') %][% t('Template ID') %][% t('Template name') %][% t('Description') %][% t('Profile ID') %][% t('Printer name') %][% t('Paper bin') %][% t('Batch ID') %][% t('Patron count') %][% header_field.field_label %] - Edit - [% IF ( print ) %] Export[% END %] - Delete + [% t('Edit') %] + [% IF ( print ) %] [% t('Export') %][% END %] + [% t('Delete') %] [% text_field.field_value %]