Bugzilla – Attachment 76360 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/offline_circ
Bug-20988-koha-tmplintranet-tmplprogenmodulesoffli.patch (text/plain), 13.80 KB, created by
Julian Maurice
on 2018-06-25 07:23:48 UTC
(
hide
)
Description:
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-06-25 07:23:48 UTC
Size:
13.80 KB
patch
obsolete
>From da183c33f337a6234b0a787e4252e7f409eeaef2 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 25 Jun 2018 08:51:12 +0200 >Subject: [PATCH] Bug 20988: > koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ > >--- > .../en/modules/offline_circ/enqueue_koc.tt | 15 ++++----- > .../prog/en/modules/offline_circ/list.tt | 29 ++++++++--------- > .../en/modules/offline_circ/process_koc.tt | 31 ++++++++++--------- > 3 files changed, 39 insertions(+), 36 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt >index dee915750d..4d9f86562b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt >@@ -1,31 +1,32 @@ >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Circulation › Add offline circulations to queue</title> >+<title>[% t('Koha ⺠Circulation ⺠Add offline circulations to queue') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="ocirc_enqueue_koc" class="circ ocirc"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'circ-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Add offline circulations to queue</a></div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/circ/circulation-home.pl">[% t('Circulation') %]</a> ⺠<a href="/cgi-bin/koha/offline_circ/process_koc.pl">[% t('Add offline circulations to queue') %]</a></div> > > <div class="main container-fluid"> > <div class="row"> > <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> > >- <h2>Koha offline circulation</h2> >- <p>Your file was processed.</p> >+ <h2>[% t('Koha offline circulation') %]</h2> >+ <p>[% t('Your file was processed.') %]</p> > > [% FOREACH message IN messages %] > [% IF ( message.message ) %] > [% IF ( message.ERROR_file_version ) %] >- <div class="dialog alert"><p>Warning: This file is version [% message.upload_version %], but I only know how to import version [% message.current_version %]. I'll try my best.</p> >+ <div class="dialog alert"><p>[% t('Warning: This file is version') %] [% message.upload_version %][% t(', but I only know how to import version') %] [% message.current_version %][% t('. I\'ll try my best.') %]</p> > [% END %] > [% END %] > [% END %] > >-<p><a href="process_koc.pl">Upload another KOC file</a></p> >+<p><a href="process_koc.pl">[% t('Upload another KOC file') %]</a></p> > >-<p><a href="list.pl">View pending offline circulation actions</a></p> >+<p><a href="list.pl">[% t('View pending offline circulation actions') %]</a></p> > > </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >index c5803ae91c..ae9c7e8150 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt >@@ -1,7 +1,8 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% SET footerjs = 1 %] > [% INCLUDE "doc-head-open.inc" %] >- <title>Koha › Circulation › Offline circulation</title> >+ <title>[% t('Koha ⺠Circulation ⺠Offline circulation') %]</title> > [% INCLUDE "doc-head-close.inc" %] > </head> > >@@ -9,13 +10,13 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'circ-search.inc' %] > >- <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Offline circulation</div> >+ <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/circ/circulation-home.pl">[% t('Circulation') %]</a> [% t('⺠Offline circulation') %]</div> > > <div class="main container-fluid"> > <div class="row"> > <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> > >- <h2>Offline circulation</h2> >+ <h2>[% t('Offline circulation') %]</h2> > > [% IF ( pending_operations ) %] > >@@ -25,12 +26,12 @@ > <table id="operations"> > <thead> > <tr> >- <th> </th> >- <th>Date</th> >- <th>Action</th> >- <th>Barcode</th> >- <th>Card number</th> >- <th>Amount</th> >+ <th> </th> >+ <th>[% t('Date') %]</th> >+ <th>[% t('Action') %]</th> >+ <th>[% t('Barcode') %]</th> >+ <th>[% t('Card number') %]</th> >+ <th>[% t('Amount') %]</th> > </tr> > </thead> > <tbody> >@@ -41,11 +42,11 @@ > <td> > [% SWITCH ( operation.action ) -%] > [% CASE "issue" -%] >- Check out >+ [% t('Check out') %] > [% CASE "return" -%] >- Check in >+ [% t('Check in') %] > [% CASE "payment" -%] >- Payment >+ [% t('Payment') %] > [% CASE # default case -%] > [% operation.action %] > [% END -%] >@@ -72,7 +73,7 @@ > </tbody> > </table> > >- <p id="actions">For the selected operations: >+ <p id="actions">[% t('For the selected operations:') %] > <input type="button" id="process" value="Process" /> > <input type="button" id="delete" value="Delete" /></p> > >@@ -80,7 +81,7 @@ > > [% ELSE %] > >- <p>There are no pending offline operations.</p> >+ <p>[% t('There are no pending offline operations.') %]</p> > > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt >index b7f50e6b29..1f95f660ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt >@@ -1,7 +1,8 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Circulation › Offline circulation file upload</title> >+<title>[% t('Koha ⺠Circulation ⺠Offline circulation file upload') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -9,41 +10,41 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'circ-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › [% IF ( transactions_loaded ) %] <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Offline circulation file upload</a> › Results[% ELSE %] Offline circulation file upload[% END %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠<a href="/cgi-bin/koha/circ/circulation-home.pl">[% t('Circulation') %]</a> ⺠[% IF ( transactions_loaded ) %] <a href="/cgi-bin/koha/offline_circ/process_koc.pl">[% t('Offline circulation file upload') %]</a> [% t('⺠Results') %][% ELSE %] [% t('Offline circulation file upload') %][% END %]</div> > > <div class="main container-fluid"> > <div class="row"> > <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> > > [% IF ( transactions_loaded ) %] >- <h2>Koha offline circulation</h2> >- <p>Your data was processed. Here are the results:</p> >+ <h2>[% t('Koha offline circulation') %]</h2> >+ <p>[% t('Your data was processed. Here are the results:') %]</p> > [% FOREACH message IN messages %] > [% IF ( message.message ) %] > <div class="dialog alert"> >- [% IF ( message.ERROR_file_version ) %]<p>Warning: This file is version [% message.upload_version %], but I only know how to import version [% message.current_version %]. I'll try my best.</p>[% END %] >+ [% IF ( message.ERROR_file_version ) %]<p>[% t('Warning: This file is version') %] [% message.upload_version %][% t(', but I only know how to import version') %] [% message.current_version %][% t('. I\'ll try my best.') %]</p>[% END %] > </div> > [% END %] >- [% IF ( message.ERROR_no_borrower_from_item ) %]<p>Warning: Unable to determine patron from item barcode ([% message.badbarcode %]). Cannot check in.</p>[% END %] >- [% IF ( message.issue ) %]<p>Checked out <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >- [% IF ( message.renew ) %]<p>Renewed <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >- [% IF ( message.return ) %]<p>Checked in <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >- [% IF ( message.payment ) %]<p>Accepted payment ([% message.amount %]) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >+ [% IF ( message.ERROR_no_borrower_from_item ) %]<p>[% t('Warning: Unable to determine patron from item barcode (') %][% message.badbarcode %][% t('). Cannot check in.') %]</p>[% END %] >+ [% IF ( message.issue ) %]<p>[% t('Checked out') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') to') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >+ [% IF ( message.renew ) %]<p>[% t('Renewed') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') for') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >+ [% IF ( message.return ) %]<p>[% t('Checked in') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') from') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] >+ [% IF ( message.payment ) %]<p>[% t('Accepted payment (') %][% message.amount %][% t(') from') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] > [% END %] > [% ELSE %] >- <h2>Upload offline circulation data</h2> >+ <h2>[% t('Upload offline circulation data') %]</h2> > > <div id="fileuploadform"> > <form method="post" action="/cgi-bin/koha/offline_circ/process_koc.pl" enctype="multipart/form-data" class="validated"> > <fieldset class="brief"> >- <ol><li><label for="fileToUpload">Choose .koc file: </label> >+ <ol><li><label for="fileToUpload">[% t('Choose .koc file:') %] </label> > <input class="required" required="required" type="file" id="fileToUpload" size="50" name="fileToUpload" /> >- <span class="required">Required</span> >+ <span class="required">[% t('Required') %]</span> > </li></ol> > <fieldset class="action"><input type="button" class="submit" value="Upload file" id="upload_file" /></fieldset> > </fieldset> > </form> >- <div id="fileuploadstatus" class="progress_panel" style="display:none">Upload progress: <progress id="fileuploadprogress" max="100" value="0"></progress> <span class="fileuploadpercent">0</span>%</div> >+ <div id="fileuploadstatus" class="progress_panel" style="display:none">[% t('Upload progress:') %] <progress id="fileuploadprogress" max="100" value="0"></progress> <span class="fileuploadpercent">[% t('0') %]</span>%</div> > <div id="fileuploadfailed" style="display:none"></div> > </div> > >@@ -58,7 +59,7 @@ > <input type="hidden" name="completedJobID" id="completedJobID" value="" /> > <!-- <input type="submit" value="Apply directly" id="mainformsubmit" /> --> > <!-- FIXME: Job freezes when submitted, disabling button as a temporary mitigation --> >- <div id="jobstatus" style="display:none">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> >+ <div id="jobstatus" style="display:none">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div> > <div id="jobfailed" style="display:none"></div> > </form> > [% END %] >-- >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