Bugzilla – Attachment 76351 Details for
Bug 20988
[OMNIBUS] Internationalization: wrap all translatable text inside t() calls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists
Bug-20988-koha-tmplintranet-tmplprogenmodulespatro.patch (text/plain), 18.83 KB, created by
Julian Maurice
on 2018-06-25 07:22:58 UTC
(
hide
)
Description:
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-06-25 07:22:58 UTC
Size:
18.83 KB
patch
obsolete
>From df962ab7ba59592d5c1ee11e4099d0aa6d72e6b3 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 25 Jun 2018 08:49:20 +0200 >Subject: [PATCH] Bug 20988: > koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists > >--- > .../en/modules/patron_lists/add-modify.tt | 27 ++++---- > .../prog/en/modules/patron_lists/list.tt | 61 ++++++++++--------- > .../prog/en/modules/patron_lists/lists.tt | 37 +++++------ > 3 files changed, 64 insertions(+), 61 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt >index bf89a4db9e..0b838fa618 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt >@@ -1,11 +1,12 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron lists › >+<title>[% t('Koha ⺠Tools ⺠Patron lists âº') %] > [% IF list.patron_list_id %] >- Modify patron list >+ [% t('Modify patron list') %] > [% ELSE %] >- New patron list >+ [% t('New patron list') %] > [% END %] > </title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -14,11 +15,11 @@ > <body id="patlist_add_modify" class="pat patlist"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'cat-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="lists.pl">Patron lists</a> › >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ⺠<a href="lists.pl">[% t('Patron lists') %]</a> ⺠> [% IF list.patron_list_id %] >- Modify patron list >+ [% t('Modify patron list') %] > [% ELSE %] >- New patron list >+ [% t('New patron list') %] > [% END %] > </div> > >@@ -27,9 +28,9 @@ > <div class="yui-main"> > <h1> > [% IF list.patron_list_id %] >- Modify patron list >+ [% t('Modify patron list') %] > [% ELSE %] >- New patron list >+ [% t('New patron list') %] > [% END %] > </h1> > >@@ -38,20 +39,20 @@ > > <legend> > [% IF list.patron_list_id %] >- Modify patron list >+ [% t('Modify patron list') %] > [% ELSE %] >- Create a new patron list >+ [% t('Create a new patron list') %] > [% END %] > </legend> > > <ol> > <li> >- <label class="required" for="list-name">Name:</label> >+ <label class="required" for="list-name">[% t('Name:') %]</label> > <input id="list-name" name="name" type="text" class="required" required="required" value="[% list.name %]" /> > </li> > > <li> >- <span class="label">Owner: </span>[% loggedinusername %] >+ <span class="label">[% t('Owner:') %] </span>[% loggedinusername %] > </li> > </ol> > >@@ -60,7 +61,7 @@ > <fieldset class="action"> > <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> > <input type="submit" value="Save" /> >- <a href="lists.pl" class="cancel">Cancel</a> >+ <a href="lists.pl" class="cancel">[% t('Cancel') %]</a> > </fieldset> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >index fe539eacf5..6d22750d27 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >@@ -1,8 +1,9 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% USE KohaDates %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron lists › [% list.name %] › Add patrons</title> >+<title>[% t('Koha ⺠Tools ⺠Patron lists âº') %] [% list.name %] [% t('⺠Add patrons') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > > [% Asset.css("css/datatables.css") %] >@@ -25,7 +26,7 @@ > <body id="patlist_list" class="pat patlist"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'cat-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="lists.pl">Patron lists</a> › <a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% list.id %]">[% list.name |html %]</a> › Add patrons</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ⺠<a href="lists.pl">[% t('Patron lists') %]</a> ⺠<a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% list.id %]">[% list.name |html %]</a> [% t('⺠Add patrons') %]</div> > > <div id="doc3" class="yui-t2"> > <div id="bd"> >@@ -34,10 +35,10 @@ > <h1>[% list.name |html %]</h1> > > [% IF ( not_found.size > 0 ) %] >- <div class="dialog alert"><p>Warning, the following cardnumbers were not found:</p></div> >+ <div class="dialog alert"><p>[% t('Warning, the following cardnumbers were not found:') %]</p></div> > <table style="margin:auto;"> > <thead> >- <tr><th>Cardnumbers not found</th></tr> >+ <tr><th>[% t('Cardnumbers not found') %]</th></tr> > </thead> > <tbody> > [% FOREACH nf IN not_found %] >@@ -48,10 +49,10 @@ > [% END %] > > [% IF ( existed.size > 0 ) %] >- <div class="dialog alert"><p>Warning, the following cardnumbers were already in this list:</p></div> >+ <div class="dialog alert"><p>[% t('Warning, the following cardnumbers were already in this list:') %]</p></div> > <table style="margin:auto;"> > <thead> >- <tr><th>Cardnumbers already in list</th></tr> >+ <tr><th>[% t('Cardnumbers already in list') %]</th></tr> > </thead> > <tbody> > [% FOREACH ed IN existed %] >@@ -63,20 +64,20 @@ > > <form action="list.pl" id="add_patrons" method="post" class="clearfix"> > <fieldset class="rows"> >- <legend>Add patrons</legend> >+ <legend>[% t('Add patrons') %]</legend> > <ol> > <li id="patron_search_line"> >- <label for="find_patron">Patron search: </label> >+ <label for="find_patron">[% t('Patron search:') %] </label> > <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" /> > </li> > <li id="add_patrons_by_search"><a href="#"> >- <span class="label"> </span> >- <i class="fa fa-plus"></i> Search for patrons</a></li> >+ <span class="label"> </span> >+ <i class="fa fa-plus"></i> [% t('Search for patrons') %]</a></li> > <li id="add_patrons_by_barcode"><a href="#"> >- <span class="label"> </span> >- <i class="fa fa-plus"></i> Enter multiple card numbers</a></li> >+ <span class="label"> </span> >+ <i class="fa fa-plus"></i> [% t('Enter multiple card numbers') %]</a></li> > <li id="patron_barcodes_line"> >- <label for="patrons_by_barcode">Card number list (one barcode per line):</label> >+ <label for="patrons_by_barcode">[% t('Card number list (one barcode per line):') %]</label> > <textarea id="patrons_by_barcode" name="patrons_by_barcode" id="" cols="30" rows="10"></textarea> > </li> > </ol> >@@ -88,13 +89,13 @@ > <div class="clearfix"></div> > > <fieldset id="patrons_to_add_fieldset"> >- <legend>Patrons to be added</legend> >+ <legend>[% t('Patrons to be added') %]</legend> > <div id="patrons_to_add"></div> > > <fieldset class="action"> > <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> > <input type="submit" value="Add patrons" /> >- <a href="lists.pl" class="cancel">Cancel</a> >+ <a href="lists.pl" class="cancel">[% t('Cancel') %]</a> > </fieldset> > </fieldset> > </form> >@@ -102,29 +103,29 @@ > <form action="list.pl" id="remove_patrons" method="post"> > > <div id="searchheader"> >- <span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | >- <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span> | >+ <span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a></span> | >+ <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></span> | > <div class="btn-group"> >- <button class="btn btn-default btn-xs list-remove" type="submit"><i class="fa fa-trash"></i> Remove selected</button> >+ <button class="btn btn-default btn-xs list-remove" type="submit"><i class="fa fa-trash"></i> [% t('Remove selected') %]</button> > </div> > | > <div class="btn-group"> >- <button class="btn btn-default btn-xs merge-patrons"><i class="fa fa-compress"></i> Merge selected patrons</button> >+ <button class="btn btn-default btn-xs merge-patrons"><i class="fa fa-compress"></i> [% t('Merge selected patrons') %]</button> > </div> > </div> > > <table id="patron-list-table"> > <thead> > <tr> >- <th> </th> >- <th>Card</th> >- <th>First name</th> >- <th>Surname</th> >- <th>Address</th> >- <th>Category</th> >- <th>Library</th> >- <th>Expires on</th> >- <th>Circ notes</th> >+ <th> </th> >+ <th>[% t('Card') %]</th> >+ <th>[% t('First name') %]</th> >+ <th>[% t('Surname') %]</th> >+ <th>[% t('Address') %]</th> >+ <th>[% t('Category') %]</th> >+ <th>[% t('Library') %]</th> >+ <th>[% t('Expires on') %]</th> >+ <th>[% t('Circ notes') %]</th> > </tr> > </thead> > >@@ -159,8 +160,8 @@ > </table> > > <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> >- <button type="submit" class="btn btn-default btn-sm list-remove"><i class="fa fa-trash" aria-hidden="true"></i> Remove selected patrons</button> >- <button class="btn btn-default btn-sm merge-patrons" type="submit"><i class="fa fa-compress"></i> Merge selected patrons</button> >+ <button type="submit" class="btn btn-default btn-sm list-remove"><i class="fa fa-trash" aria-hidden="true"></i> [% t('Remove selected patrons') %]</button> >+ <button class="btn btn-default btn-sm merge-patrons" type="submit"><i class="fa fa-compress"></i> [% t('Merge selected patrons') %]</button> > </form> > > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >index f2cd32df5c..5ff6522326 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >@@ -1,7 +1,8 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron lists</title> >+<title>[% t('Koha ⺠Tools ⺠Patron lists') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'greybox.inc' %] > [% Asset.css("css/datatables.css") %] >@@ -10,7 +11,7 @@ > <body id="patlist_lists" class="pat patlist"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'cat-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Patron lists</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> [% t('⺠Patron lists') %]</div> > > <div id="doc3" class="yui-t2"> > <div id="bd"> >@@ -19,20 +20,20 @@ > > <div id="toolbar" class="btn-toolbar"> > <div class="btn-group"> >- <a class="btn btn-default btn-sm" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a> >+ <a class="btn btn-default btn-sm" href="add-modify.pl"><i class="fa fa-plus"></i> [% t('New patron list') %]</a> > </div> > </div> > >- <h1>Your patron lists</h1> >+ <h1>[% t('Your patron lists') %]</h1> > > [% IF ( lists ) %] > > <table id="patron-lists-table"> > <thead> > <tr> >- <th>Name</th> >- <th>Patrons in list</th> >- <th class="NoSort"> </th> >+ <th>[% t('Name') %]</th> >+ <th>[% t('Patrons in list') %]</th> >+ <th class="NoSort"> </th> > </tr> > </thead> > >@@ -44,28 +45,28 @@ > <td> > <div class="dropdown"> > <a class="btn btn-default btn-xs dropdown-toggle" id="listactions[% l.patron_list_id %]" role="button" data-toggle="dropdown" href="#"> >- Actions <b class="caret"></b> >+ [% t('Actions') %] <b class="caret"></b> > </a> > <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id %]"> >- <li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-user"></i> Add patrons</a></li> >- <li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-pencil"></i> Edit list</a></li> >- <li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id %]" data-list-name="[% l.name %]"><i class="fa fa-trash"></i> Delete list</a></li> >+ <li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-user"></i> [% t('Add patrons') %]</a></li> >+ <li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-pencil"></i> [% t('Edit list') %]</a></li> >+ <li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id %]" data-list-name="[% l.name %]"><i class="fa fa-trash"></i> [% t('Delete list') %]</a></li> > [% IF ( l.patron_list_patrons_rs.count ) %] > <li class="divider"></li> > <li> >- <a class="print_cards" href="/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]" data-patron_list_id="[% l.patron_list_id %]"><i class="fa fa-print"></i> Print patron cards</a> >+ <a class="print_cards" href="/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]" data-patron_list_id="[% l.patron_list_id %]"><i class="fa fa-print"></i> [% t('Print patron cards') %]</a> > </li> > [% IF CAN_user_tools_edit_patrons %] > <li> > <a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id %]&op=show"> >- <i class="fa fa-pencil"></i> Batch edit patrons >+ <i class="fa fa-pencil"></i> [% t('Batch edit patrons') %] > </a> > </li> > [% END %] > [% IF CAN_user_tools_delete_anonymize_patrons %] > <li> > <a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id %]&checkbox=borrower"> >- <i class="fa fa-trash"></i> Batch delete patrons >+ <i class="fa fa-trash"></i> [% t('Batch delete patrons') %] > </a> > </li> > [% END %] >@@ -83,18 +84,18 @@ > <div class="modal-dialog"> > <div class="modal-content"> > <div class="modal-header"> >- <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> >- <h3 id="patronExportModal_label">Print patron cards</h3> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >+ <h3 id="patronExportModal_label">[% t('Print patron cards') %]</h3> > </div> > <div class="modal-body"> >- <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div> >+ <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div> > </div> > </div> > </div> > </div> > > [% ELSE %] >- <div class="dialog message">There are no patron lists.</div> >+ <div class="dialog message">[% t('There are no patron lists.') %]</div> > [% END %] > > </div> >-- >2.17.1
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 20988
:
76333
|
76334
|
76335
|
76336
|
76337
|
76338
|
76339
|
76340
|
76341
|
76342
|
76343
|
76344
|
76345
|
76346
|
76347
|
76348
|
76349
|
76350
|
76351
|
76352
|
76353
|
76354
|
76355
|
76356
|
76357
|
76358
|
76359
|
76360
|
76361
|
76362
|
76363
|
76364
|
76365
|
76934
|
76935