Bugzilla – Attachment 76346 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/clubs
Bug-20988-koha-tmplintranet-tmplprogenmodulesclubs.patch (text/plain), 42.87 KB, created by
Julian Maurice
on 2018-06-25 07:22:32 UTC
(
hide
)
Description:
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/clubs
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-06-25 07:22:32 UTC
Size:
42.87 KB
patch
obsolete
>From 32c9951f36dadade8f324b9c52860eef69f2292b Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 25 Jun 2018 08:47:15 +0200 >Subject: [PATCH] Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/clubs > >--- > .../prog/en/modules/clubs/club-enrollments.tt | 11 ++- > .../prog/en/modules/clubs/clubs-add-modify.tt | 35 +++---- > .../prog/en/modules/clubs/clubs.tt | 99 ++++++++++--------- > .../prog/en/modules/clubs/patron-clubs-tab.tt | 23 ++--- > .../prog/en/modules/clubs/patron-enroll.tt | 7 +- > .../en/modules/clubs/templates-add-modify.tt | 93 ++++++++--------- > 6 files changed, 137 insertions(+), 131 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >index d0d7268e7e..d712b992e4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >@@ -1,10 +1,11 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% USE KohaDates %] > [% USE Branches %] > [% USE Koha %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron clubs › Club enrollments</title> >+<title>[% t('Koha ⺠Tools ⺠Patron clubs ⺠Club enrollments') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.css("css/datatables.css") %] > </head> >@@ -12,19 +13,19 @@ > <body id="club_enrollments" class="clubs"> > [% 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="clubs.pl">Patron clubs</a> › Club enrollments</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="clubs.pl">[% t('Patron clubs') %]</a> [% t('⺠Club enrollments') %]</div> > > <div id="doc3" class="yui-t2"> > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >- <h1>Club enrollments for <i>[% club.name %]</i></h1> >+ <h1>[% t('Club enrollments for') %] <i>[% club.name %]</i></h1> > > <table id="enrollments-table"> > <thead> > <tr> >- <th>Name</th> >- <th>Card number</th> >+ <th>[% t('Name') %]</th> >+ <th>[% t('Card number') %]</th> > </tr> > </thead> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt >index 170a56bd30..fce81a2043 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt >@@ -1,14 +1,15 @@ >+[% PROCESS 'i18n.inc' %] > [% USE KohaDates %] > [% USE Branches %] > [% USE AuthorisedValues %] > [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron clubs › >+<title>[% t('Koha ⺠Tools ⺠Patron clubs âº') %] > [% IF club %] >- Modify club [% club.name %] >+ [% t('Modify club') %] [% club.name %] > [% ELSE %] >- Create a new [% club_template.name %] club >+ [% t('Create a new') %] [% club_template.name %] [% t('club') %] > [% END %] > </title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -17,11 +18,11 @@ > <body id="clubs_add_modify" class="clubs"> > [% 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="clubs.pl">Patron clubs</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="clubs.pl">[% t('Patron clubs') %]</a> ⺠> [% IF club %] >- Modify club <i>[% club.name %]</i> >+ [% t('Modify club') %] <i>[% club.name %]</i> > [% ELSE %] >- Create a new <i>[% club_template.name %]</i> club >+ [% t('Create a new') %] <i>[% club_template.name %]</i> [% t('club') %] > [% END %] > </div> > >@@ -37,36 +38,36 @@ > > <legend> > [% IF club %] >- Modify club <i>[% club.name %]</i> >+ [% t('Modify club') %] <i>[% club.name %]</i> > [% ELSE %] >- Create a new <i>[% club_template.name %]</i> club >+ [% t('Create a new') %] <i>[% club_template.name %]</i> [% t('club') %] > [% END %] > </legend> > > <ol> > <li> >- <label class="required" for="club-name">Name:</label> >- <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/> >- <span class="required">Required</span> >+ <label class="required" for="club-name">[% t('Name:') %]</label> >+ <input id="club-name" name="name" type="text" value="[% club.name %]" required="required" /> >+ <span class="required">[% t('Required') %]</span> > </li> > > <li> >- <label for="club-template-name">Description:</label> >+ <label for="club-template-name">[% t('Description:') %]</label> > <input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" /> > </li> > > <li> >- <label for="from">Start date:</label> >+ <label for="from">[% t('Start date:') %]</label> > <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]"> > </li> > > <li> >- <label for="to">End date:</label> >- <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" > >+ <label for="to">[% t('End date:') %]</label> >+ <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]"> > </li> > > <li> >- <label for="club-template-branchcode">Library:</label> >+ <label for="club-template-branchcode">[% t('Library:') %]</label> > <select name="branchcode" id="club-template-branchcode"> > <option value=""></option> > [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %] >@@ -120,7 +121,7 @@ > > <fieldset class="action"> > <input type="submit" value="Save" /> >- <a href="clubs.pl" class="cancel">Cancel</a> >+ <a href="clubs.pl" class="cancel">[% t('Cancel') %]</a> > </fieldset> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >index 895ac37746..8b96133b02 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >@@ -1,10 +1,11 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% USE KohaDates %] > [% USE Branches %] > [% USE Koha %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron clubs</title> >+<title>[% t('Koha ⺠Tools ⺠Patron clubs') %]</title> > [% INCLUDE 'doc-head-close.inc' %] > > [% Asset.css("css/datatables.css") %] >@@ -13,38 +14,38 @@ > <body id="clubs_clubs" class="clubs"> > [% 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 clubs</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 clubs') %]</div> > > <div id="doc3" class="yui-t2"> > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >- <h1>Patron clubs</h1> >+ <h1>[% t('Patron clubs') %]</h1> > > [% IF club_template %] > <div class="dialog message"> > [% IF stored == 'updated' %] >- <p>Club template <i>[% club_template.name %]</i> was updated.</p> >+ <p>[% t('Club template') %] <i>[% club_template.name %]</i> [% t('was updated.') %]</p> > [% ELSE %] >- <p>Club template <i>[% club_template.name %]</i> was saved.</p> >+ <p>[% t('Club template') %] <i>[% club_template.name %]</i> [% t('was saved.') %]</p> > [% END %] > </div> > [% ELSIF club %] > <div class="dialog message"> > [% IF stored == 'updated' %] >- <p>Club <i>[% club.name %]</i> was updated.</p> >+ <p>[% t('Club') %] <i>[% club.name %]</i> [% t('was updated.') %]</p> > [% ELSE %] >- <p>Club <i>[% club.name %]</i> was saved.</p> >+ <p>[% t('Club') %] <i>[% club.name %]</i> [% t('was saved.') %]</p> > [% END %] > </div> > [% END %] > >- <h3>Club templates</h3> >+ <h3>[% t('Club templates') %]</h3> > > [% IF CAN_user_clubs_edit_templates %] > <div class="btn-toolbar"> > <div class="btn-group"> >- <a class="btn btn-sm btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a> >+ <a class="btn btn-sm btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> [% t('New club template') %]</a> > </div> > </div> > [% END %] >@@ -53,12 +54,12 @@ > <table id="club-templates-table"> > <thead> > <tr> >- <th>Name</th> >- <th>Description</th> >- <th>Public enrollment</th> >- <th>Email required</th> >- <th>Library</th> >- <th>Actions</th> >+ <th>[% t('Name') %]</th> >+ <th>[% t('Description') %]</th> >+ <th>[% t('Public enrollment') %]</th> >+ <th>[% t('Email required') %]</th> >+ <th>[% t('Library') %]</th> >+ <th>[% t('Actions') %]</th> > </tr> > </thead> > <tbody> >@@ -68,26 +69,26 @@ > <td>[% t.description %]</td> > <td> > [% IF t.is_enrollable_from_opac %] >- Yes >+ [% t('Yes') %] > [% ELSE %] >- No >+ [% t('No') %] > [% END %] > </td> > <td> > [% IF t.is_email_required %] >- Yes >+ [% t('Yes') %] > [% ELSE %] >- No >+ [% t('No') %] > [% END %] > </td> > <td>[% Branches.GetName( t.branchcode ) %]</td> > <td class="actions"> > [% IF CAN_user_clubs_edit_templates %] >- <a class="btn btn-xs btn-default" style="white-space:nowrap" href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id %]"> >- <i class="fa fa-pencil"></i> Edit >+ <a class="btn btn-xs btn-default" style="white-space:nowrap" href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id %]"> >+ <i class="fa fa-pencil"></i> [% t('Edit') %] > </a> >- <a class="btn btn-xs btn-default" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'> >- <i class="fa fa-trash"></i> Delete >+ <a class="btn btn-xs btn-default" href="#" onclick="ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;"> >+ <i class="fa fa-trash"></i> [% t('Delete') %] > </a> > [% END %] > </td> >@@ -96,18 +97,18 @@ > </tbody> > </table> > [% ELSE %] >- <div class="dialog message">No club templates defined.</div> >+ <div class="dialog message">[% t('No club templates defined.') %]</div> > [% END %] > >- <h3>Clubs</h3> >+ <h3>[% t('Clubs') %]</h3> > > [% IF CAN_user_clubs_edit_clubs %] > <div class="btn-toolbar"> > <div class="btn-group"> > [% IF club_templates %] >- <button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button> >+ <button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> [% t('New club') %] <span class="caret"></span></button> > [% ELSE %] >- <button disabled="disabled" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button> >+ <button disabled="disabled" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> [% t('New club') %] <span class="caret"></span></button> > [% END %] > <ul class="dropdown-menu"> > [% FOREACH t IN club_templates %] >@@ -122,16 +123,16 @@ > <table id="clubs-table"> > <thead> > <tr> >- <th>Name</th> >- <th>Template</th> >- <th>Description</th> >- <th>Public enrollment</th> >- <th>Email required</th> >- <th>Library</th> >- <th>Start date</th> >- <th>End date</th> >- <th>Enrolled patrons</th> >- <th> </th> >+ <th>[% t('Name') %]</th> >+ <th>[% t('Template') %]</th> >+ <th>[% t('Description') %]</th> >+ <th>[% t('Public enrollment') %]</th> >+ <th>[% t('Email required') %]</th> >+ <th>[% t('Library') %]</th> >+ <th>[% t('Start date') %]</th> >+ <th>[% t('End date') %]</th> >+ <th>[% t('Enrolled patrons') %]</th> >+ <th> </th> > </tr> > </thead> > <tbody> >@@ -142,16 +143,16 @@ > <td>[% c.description %]</td> > <td> > [% IF c.club_template.is_enrollable_from_opac %] >- Yes >+ [% t('Yes') %] > [% ELSE %] >- No >+ [% t('No') %] > [% END %] > </td> > <td> > [% IF c.club_template.is_email_required %] >- Yes >+ [% t('Yes') %] > [% ELSE %] >- No >+ [% t('No') %] > [% END %] > </td> > <td>[% Branches.GetName( c.branchcode ) %]</td> >@@ -171,31 +172,31 @@ > <td class="actions"> > <div class="dropdown"> > <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.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="clubactions[% c.id %]"> > [% IF ( c.club_enrollments.count ) %] > <li> > <a href="club-enrollments.pl?id=[% c.id %]"> >- <i class="fa fa-list-ul"></i> Enrollments >+ <i class="fa fa-list-ul"></i> [% t('Enrollments') %] > </a> > </li> > [% ELSE %] > <li class="disabled"> > <a href="club-enrollments.pl?id=[% c.id %]"> >- <i class="fa fa-list-ul"></i> Enrollments >+ <i class="fa fa-list-ul"></i> [% t('Enrollments') %] > </a> > </li> > [% END %] > [% IF CAN_user_clubs_edit_clubs %] > <li> > <a href="clubs-add-modify.pl?id=[% c.id %]"> >- <i class="fa fa-pencil"></i> Edit >+ <i class="fa fa-pencil"></i> [% t('Edit') %] > </a> > </li> > <li> >- <a href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'> >- <i class="fa fa-trash"></i> Delete >+ <a href="#" onclick="ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;"> >+ <i class="fa fa-trash"></i> [% t('Delete') %] > </a> > </li> > [% END %] >@@ -208,9 +209,9 @@ > </table> <!-- /.clubs-table --> > [% ELSE %] > [% IF club_templates %] >- <div class="dialog message">No clubs defined.</div> >+ <div class="dialog message">[% t('No clubs defined.') %]</div> > [% ELSE %] >- <div class="dialog message">No clubs defined. A club template must be defined before a club can be defined.</div> >+ <div class="dialog message">[% t('No clubs defined. A club template must be defined before a club can be defined.') %]</div> > [% END %] > [% END %] > </div> <!-- /.yui-b --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >index 586242299c..2d585394a0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >@@ -1,15 +1,16 @@ >+[% PROCESS 'i18n.inc' %] > [% USE KohaDates %] > > [% IF enrollments %] >- <h4>Clubs currently enrolled in</h4> >+ <h4>[% t('Clubs currently enrolled in') %]</h4> > > <table> > <thead> > <tr> >- <th>Name</th> >- <th>Description</th> >- <th>Date enrolled</th> >- [% IF CAN_user_clubs_enroll %]<th> </th>[% END %] >+ <th>[% t('Name') %]</th> >+ <th>[% t('Description') %]</th> >+ <th>[% t('Date enrolled') %]</th> >+ [% IF CAN_user_clubs_enroll %]<th> </th>[% END %] > </tr> > </thead> > >@@ -22,7 +23,7 @@ > [% IF CAN_user_clubs_enroll %] > <td> > <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )"> >- <i class="fa fa-remove"></i> Cancel enrollment >+ <i class="fa fa-remove"></i> [% t('Cancel enrollment') %] > </button> > </td> > [% END %] >@@ -34,14 +35,14 @@ > > [% IF clubs %] > >- <h4>Clubs not enrolled in</h4> >+ <h4>[% t('Clubs not enrolled in') %]</h4> > > <table> > <thead> > <tr> >- <th>Name</th> >- <th>Description</th> >- [% IF CAN_user_clubs_enroll %]<th> </th>[% END %] >+ <th>[% t('Name') %]</th> >+ <th>[% t('Description') %]</th> >+ [% IF CAN_user_clubs_enroll %]<th> </th>[% END %] > </tr> > </thead> > >@@ -53,7 +54,7 @@ > [% IF CAN_user_clubs_enroll %] > <td class="action"> > <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id %])"> >- <i class="fa fa-plus"></i> Enroll >+ <i class="fa fa-plus"></i> [% t('Enroll') %] > </button> > </td> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt >index db3d5442e0..d2ed1635aa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt >@@ -1,8 +1,9 @@ >+[% PROCESS 'i18n.inc' %] > [% USE AuthorisedValues %] > [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %] > > <h3> >- Enroll in <i>[% club.name %]</i> >+ [% t('Enroll in') %] <i>[% club.name %]</i> > </h3> > > <div class="container"> >@@ -28,8 +29,8 @@ > [% END %] > > <li> >- <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">Finish enrollment</a> >- <a class="cancel" href="#" onclick="showClubs(); return false;">Cancel</a> >+ <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">[% t('Finish enrollment') %]</a> >+ <a class="cancel" href="#" onclick="showClubs(); return false;">[% t('Cancel') %]</a> > </li> > </ol> > </fieldset> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt >index efb8ccecd6..5a3a41e6dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt >@@ -1,11 +1,12 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Branches %] > [% USE AuthorisedValues %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Patron clubs › >+<title>[% t('Koha ⺠Tools ⺠Patron clubs âº') %] > [% IF club_template %] >- Modify club template [% club_template.name %] >+ [% t('Modify club template') %] [% club_template.name %] > [% ELSE %] >- Create a new club template >+ [% t('Create a new club template') %] > [% END %] > </title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -20,11 +21,11 @@ > <body id="clubs_templates_add_modify" class="clubs"> > [% 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="clubs.pl">Patron clubs</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="clubs.pl">[% t('Patron clubs') %]</a> ⺠> [% IF club_template %] >- Modify club template <i>[% club_template.name %]</i> >+ [% t('Modify club template') %] <i>[% club_template.name %]</i> > [% ELSE %] >- Create a new club template >+ [% t('Create a new club template') %] > [% END %] > </div> > >@@ -37,9 +38,9 @@ > > <h2> > [% IF club_template %] >- Modify club template <i>[% club_template.name %]</i> >+ [% t('Modify club template') %] <i>[% club_template.name %]</i> > [% ELSE %] >- Create a new club template >+ [% t('Create a new club template') %] > [% END %] > </h2> > >@@ -47,68 +48,68 @@ > <fieldset class="rows"> > <ol> > <li> >- <label class="required" for="name">Name:</label> >- <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required"/> >- <span class="required">Required</span> >+ <label class="required" for="name">[% t('Name:') %]</label> >+ <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required" /> >+ <span class="required">[% t('Required') %]</span> > </li> > > <li> >- <label for="club-template-description">Description:</label> >+ <label for="club-template-description">[% t('Description:') %]</label> > <input id="club-template-description" name="description" type="text" value="[% club_template.description %]" /> > </li> > > <li> >- <label for="club-template-is-enrollable-from-opac">Allow public enrollment:</label> >+ <label for="club-template-is-enrollable-from-opac">[% t('Allow public enrollment:') %]</label> > [% IF club_template.is_enrollable_from_opac %] > <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" checked="checked" /> > [% ELSE %] > <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" /> > [% END %] >- <span class="hint">If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.</span> >+ <span class="hint">[% t('If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.') %]</span> > </li> > > <li> >- <label for="club-template-is-email-required">Require valid email address:</label> >+ <label for="club-template-is-email-required">[% t('Require valid email address:') %]</label> > [% IF club_template.is_email_required %] > <input type="checkbox" id="club-template-is-email-required" name="is_email_required" checked="checked" /> > [% ELSE %] > <input type="checkbox" id="club-template-is-email-required" name="is_email_required" /> > [% END %] >- <span class="hint">If set, a club based on this template can only be enrolled in by patrons with a valid email address.</span> >+ <span class="hint">[% t('If set, a club based on this template can only be enrolled in by patrons with a valid email address.') %]</span> > </li> > > <li> >- <label for="club-template-branchcode">Library:</label> >+ <label for="club-template-branchcode">[% t('Library:') %]</label> > <select name="branchcode" id="club-template-branchcode"> > <option value=""></option> > [% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %] > </select> >- <div class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</div> >+ <div class="hint">[% t('If set, only librarians logged in with this branch will be able to modify this club template.') %]</div> > </li> > > </ol> > </fieldset> > > <fieldset class="rows"> >- <legend>Club fields:</legend> >- <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p> >+ <legend>[% t('Club fields:') %]</legend> >+ <p><span class="hint">[% t('These fields will be used in the creation of clubs based on this template') %]</span></p> > <div id="club-template-fields"> > [% FOREACH f IN club_template.club_template_fields %] > <div class="club-field"> > <ol class="clearfix"> > <input type="hidden" name="club_template_field_id" value="[% f.id %]" /> > <li> >- <label for="field-name-[% f.id %]">Name:</label> >+ <label for="field-name-[% f.id %]">[% t('Name:') %]</label> > <input name="club_template_field_name" id="field-name-[% f.id %]" value="[% f.name %]" /> > </li> > > <li> >- <label for="field-description-[% f.id %]">Description:</label> >+ <label for="field-description-[% f.id %]">[% t('Description:') %]</label> > <input name="club_template_field_description" id="field-description-[% f.id %]" value="[% f.description %]" /> > </li> > > <li> >- <label for="field-authorised-value-category-[% f.id %]">Authorised value category:</label> >+ <label for="field-authorised-value-category-[% f.id %]">[% t('Authorised value category:') %]</label> > <select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]"> > <option value=""></option> > [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %] >@@ -116,7 +117,7 @@ > </li> > > <li> >- <label for="field-delete-[% f.id %]">Delete field:</label> >+ <label for="field-delete-[% f.id %]">[% t('Delete field:') %]</label> > <input type="checkbox" name="club_template_field_delete" id="field-delete-[% f.id %]" value="[% f.id %]" /> > </li> > </ol> >@@ -125,35 +126,35 @@ > </div> > <fieldset class="action"> > <a href="#" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;"> >- <i class="fa fa-plus"></i> Add new field >+ <i class="fa fa-plus"></i> [% t('Add new field') %] > </a> > </fieldset> > </fieldset> > > <fieldset class="rows"> >- <legend>Enrollment fields</legend> >- <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p> >+ <legend>[% t('Enrollment fields') %]</legend> >+ <p><span class="hint">[% t('These fields will be used when enrolling a patron in a club based on this template') %]</span></p> > <div id="club-template-enrollment-fields"> > [% FOREACH f IN club_template.club_template_enrollment_fields %] > <div class="enrollment-field"> > <ol class="clearfix"> > <li> >- <span class="label"> </span> >- <strong>Enrollment field</strong> >+ <span class="label"> </span> >+ <strong>[% t('Enrollment field') %]</strong> > </li> > <li> > <input type="hidden" name="club_template_enrollment_field_id" value="[% f.id %]" /> >- <label for="enrollment-field-name-[% f.id %]">Name:</label> >+ <label for="enrollment-field-name-[% f.id %]">[% t('Name:') %]</label> > <input name="club_template_enrollment_field_name" id="enrollment-field-name-[% f.id %]" value="[% f.name %]" size="40" /> > </li> > > <li> >- <label for="enrollment-field-description-[% f.id %]">Description:</label> >+ <label for="enrollment-field-description-[% f.id %]">[% t('Description:') %]</label> > <input name="club_template_enrollment_field_description" id="enrollment-field-description-[% f.id %]" value="[% f.description %]" size="40" /> > </li> > > <li> >- <label for="enrollment-field-authorised-value-category-[% f.id %]">Authorised value category:</label> >+ <label for="enrollment-field-authorised-value-category-[% f.id %]">[% t('Authorised value category:') %]</label> > <select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]"> > <option value=""></option> > [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %] >@@ -161,7 +162,7 @@ > </li> > > <li> >- <label for="enrollment-field-delete-[% f.id %]">Delete field:</label> >+ <label for="enrollment-field-delete-[% f.id %]">[% t('Delete field:') %]</label> > <input type="checkbox" name="club_template_enrollment_field_delete" id="enrollment-field-delete-[% f.id %]" value="[% f.id %]" /> > </li> > </ol> >@@ -170,7 +171,7 @@ > </div> > <fieldset class="action"> > <a href="#" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;"> >- <i class="fa fa-plus"></i> Add new field >+ <i class="fa fa-plus"></i> [% t('Add new field') %] > </a> > </fieldset> > </fieldset> >@@ -178,7 +179,7 @@ > <fieldset class="action"> > <input type="hidden" name="id" value="[% club_template.id %]" /> > <input type="submit" value="Save" /> >- <a href="clubs.pl" class="cancel">Cancel</a> >+ <a href="clubs.pl" class="cancel">[% t('Cancel') %]</a> > </fieldset> > </form> > >@@ -187,56 +188,56 @@ > > > <div id="new-field-template" class="club-field" style="display:none"> >- <h4 style="margin-left:1em;">New club field</h4> >+ <h4 style="margin-left:1em;">[% t('New club field') %]</h4> > <input type="hidden" name="club_template_field_id" value="" /> > <ol class="clearfix"> > > <li> >- <label for="club_template_field_name">Name:</label> >+ <label for="club_template_field_name">[% t('Name:') %]</label> > <input name="club_template_field_name" /> > </li> > > <li> >- <label for="club_template_field_description">Description:</label> >+ <label for="club_template_field_description">[% t('Description:') %]</label> > <input name="club_template_field_description" /> > </li> > > <li> >- <label for="club_template_field_authorised_value_category">Authorised value category:</label> >+ <label for="club_template_field_authorised_value_category">[% t('Authorised value category:') %]</label> > <select name="club_template_field_authorised_value_category"> > <option value=""></option> > [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %] > </select> > </li> > </ol> >- <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset> >- <hr/> >+ <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> [% t('Delete field') %]</a></fieldset> >+ <hr /> > </div> > > <div id="new-enrollment-field-template" class="enrollment-field" style="display:none"> >- <h4 style="margin-left:1em;">New enrollment field</h4> >+ <h4 style="margin-left:1em;">[% t('New enrollment field') %]</h4> > <input type="hidden" name="club_template_enrollment_field_id" value="" /> > <ol class="clearfix"> > > <li> >- <label for="club_template_enrollment_field_name">Name:</label> >+ <label for="club_template_enrollment_field_name">[% t('Name:') %]</label> > <input name="club_template_enrollment_field_name" /> > </li> > > <li> >- <label for="club_template_enrollment_field_description">Description:</label> >+ <label for="club_template_enrollment_field_description">[% t('Description:') %]</label> > <input name="club_template_enrollment_field_description" /> > </li> > > <li> >- <label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label> >+ <label for="club_template_enrollment_field_authorised_value_category">[% t('Authorised value category:') %]</label> > <select name="club_template_enrollment_field_authorised_value_category"> > <option value=""></option> > [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %] > </select> > </li> > </ol> >- <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset> >+ <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> [% t('Delete field') %]</a></fieldset> > </div> > > [% INCLUDE 'intranet-bottom.inc' %] >-- >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