Bugzilla – Attachment 99454 Details for
Bug 17702
Create configuration for account credit types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17702: (RM follow-up) Remove use of I18N tt
Bug-17702-RM-follow-up-Remove-use-of-I18N-tt.patch (text/plain), 13.60 KB, created by
Lisette Scheer
on 2020-02-21 21:34:51 UTC
(
hide
)
Description:
Bug 17702: (RM follow-up) Remove use of I18N tt
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2020-02-21 21:34:51 UTC
Size:
13.60 KB
patch
obsolete
>From adc59c434d68e9de1629efaf40320ee9b38850f5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 20 Feb 2020 16:39:52 +0000 >Subject: [PATCH] Bug 17702: (RM follow-up) Remove use of I18N tt > >This patch removes the use of the I18N TT plugin in introduced for all >strings in the new template. We're not yet ready to use this plugin for >all strings as we need to further investigate performance for such a >move and perhaps add template compilation. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/en/modules/admin/credit_types.tt | 81 +++++++++++----------- > 1 file changed, 40 insertions(+), 41 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >index e8d11a9a13..11bcfab409 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >@@ -1,19 +1,18 @@ > [% USE raw %] > [% USE Asset %] > [% USE Branches %] >-[% PROCESS i18n.inc %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › > [% IF op =='add_form' %] >- [% t('Credit types') %] › >+ Credit types › > [% IF credit_type.code %] >- [% t('Modify credit type') %] >+ Modify credit type > [% ELSE %] >- [% t('New credit type') %] >+ New credit type > [% END %] > [% ELSE %] >- [% t('Credit types') %] >+ Credit types > [% END %] > </title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -24,11 +23,11 @@ > [% INCLUDE 'prefs-admin-search.inc' %] > > <div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> >-› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> >-› <a href="/cgi-bin/koha/admin/credit_types.pl">[% t('Credit types') %]</a> >+ <a href="/cgi-bin/koha/mainpage.pl">Home</a> >+› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> >+› <a href="/cgi-bin/koha/admin/credit_types.pl">Credit types</a> > [% IF op == 'add_form' %] >-› [% IF credit_type.code %][% t('Modify credit type') %][% ELSE %][% t('New credit type') %][% END %] >+› [% IF credit_type.code %]Modify credit type[% ELSE %]New credit type[% END %] > [% END %] > </div> > >@@ -41,13 +40,13 @@ > <div class="dialog [% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'success_on_saving' %] >- [% t('Credit type saved successfully.') %] >+ Credit type saved successfully. > [% CASE 'error_on_saving' %] >- [% t('An error occurred when saving this credit type.') %] >+ An error occurred when saving this credit type. > [% CASE 'success_on_archive' %] >- [% t('Credit type archived successfully.') %] >+ Credit type archived successfully. > [% CASE 'success_on_restore' %] >- [% t('Credit type restored successfully.') %] >+ Credit type restored successfully. > [% CASE %] > [% m.code | html %] > [% END %] >@@ -56,9 +55,9 @@ > > [% IF op == 'add_form' %] > [% IF credit_type %] >- <h3>[% t('Modify a credit type') %]</h3> >+ <h3>Modify a credit type</h3> > [% ELSE %] >- <h3>[% t('New credit type') %]</h3> >+ <h3>New credit type</h3> > [% END %] > > <form action="/cgi-bin/koha/admin/credit_types.pl" name="Aform" method="post" class="validated"> >@@ -66,20 +65,20 @@ > <fieldset class="rows"> > <ol> > <li> >- <label for="code" class="required">[% t('Credit type code:') %] </label> >+ <label for="code" class="required">Credit type code: </label> > [% IF credit_type %] > <strong>[% credit_type.code | html %]</strong> > <input type="hidden" name="code" value="[% code | html %]" /> > [% ELSE %] >- <input type="text" name="code" id="code" size="80" maxlength="64" class="required" required="required"><span class="required">[% t('Required. Maximum length is 64 letters') %]</span> >+ <input type="text" name="code" id="code" size="80" maxlength="64" class="required" required="required"><span class="required">Required. Maximum length is 64 letters</span> > [% END %] > </li> > <li> >- <label for="description" class="required">[% t('Description:') %] </label> >- <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% credit_type.description | html %]" /> <span class="required">[% t('Required') %]</span> >+ <label for="description" class="required">Description: </label> >+ <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% credit_type.description | html %]" /> <span class="required">Required</span> > </li> > <li> >- <label for="can_be_added_manually">[% t('Can be manually added ?') %] </label> >+ <label for="can_be_added_manually">Can be manually added ? </label> > [% IF credit_type.can_be_added_manually %] > <input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" checked="checked" value="1" /> > [% ELSE %] >@@ -87,9 +86,9 @@ > [% END %] > </li> > <li> >- <label for="branches">[% t('Libraries limitation:') %] </label> >+ <label for="branches">Libraries limitation: </label> > <select id="branches" name="branches" multiple size="10"> >- <option value="">[% t('All libraries') %]</option> >+ <option value="">All libraries</option> > [% FOREACH branch IN branches_loop %] > [% IF ( branch.selected ) %] > <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option> >@@ -98,34 +97,34 @@ > [% END %] > [% END %] > </select> >- <span>[% t("Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.") %]</span> >+ <span>Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.</span> > </li> > </ol> > </fieldset> > > <fieldset class="action"> >- <button id="save_credit_type" class="btn btn-default"><i class="fa fa-save"></i> [% t('Save') %]</button> >- <a class="cancel btn-link" href="/cgi-bin/koha/admin/credit_types.pl"><i class="fa fa-times"></i> [% t('Cancel') %]</a> >+ <button id="save_credit_type" class="btn btn-default"><i class="fa fa-save"></i> Save</button> >+ <a class="cancel btn-link" href="/cgi-bin/koha/admin/credit_types.pl"><i class="fa fa-times"></i> Cancel</a> > </fieldset> > </form> > [% END %] > > [% IF op == 'list' %] > <div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-default" id="newcredittype" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New credit type') %]</a> >+ <a class="btn btn-default" id="newcredittype" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form"><i class="fa fa-plus"></i> New credit type</a> > </div> > >- <h3>[% t('Account credit types') %]</h3> >+ <h3>Account credit types</h3> > [% IF credit_types.count %] > <table id="table_credit_types"> > <thead> >- <th>[% t('Archived') %]</th> >- <th>[% t('System') %]</th> >- <th>[% t('Code') %]</th> >- <th>[% t('Description') %]</th> >- <th>[% t('Available for') %]</th> >- <th>[% t('Library limitations') %]</th> >- <th>[% t('Actions') %]</th> >+ <th>Archived</th> >+ <th>System</th> >+ <th>Code</th> >+ <th>Description</th> >+ <th>Available for</th> >+ <th>Library limitations</th> >+ <th>Actions</th> > </thead> > <tbody> > [% FOREACH credit_type IN credit_types %] >@@ -134,7 +133,7 @@ > <td>[% credit_type.is_system | html %]</td> > <td>[% credit_type.code | html %]</td> > <td>[% credit_type.description | html %]</td> >- <td>[% IF credit_type.can_be_added_manually %][% t('Manual credit') %][% END %]</td> >+ <td>[% IF credit_type.can_be_added_manually %]Manual credit[% END %]</td> > <td> > [% IF credit_type.library_limits.count > 0 %] > [% library_limits_str = "" %] >@@ -149,15 +148,15 @@ > [% limits_count = credit_type.library_limits.count %] > [% tnx('{count} library limitation', '{count} library limitations', limits_count, { count => limits_count }) %] > [% ELSE %] >- [% t('No limitation') %] >+ No limitation > [% END %] > </td> > <td class="actions"> > [% IF !credit_type.is_system && !credit_type.archived %] >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form&code=[% credit_type.code | uri %]&type=credit"><i class="fa fa-pencil"></i> [% t('Edit') %]</a> >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=archive&code=[% credit_type.code | uri %]"><i class="fa fa-archive"></i> [% t('Archive') %]</a> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form&code=[% credit_type.code | uri %]&type=credit"><i class="fa fa-pencil"></i> Edit</a> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=archive&code=[% credit_type.code | uri %]"><i class="fa fa-archive"></i> Archive</a> > [% ELSIF credit_type.archived %] >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=unarchive&code=[% credit_type.code | uri %]"><i class="fa fa-undo"></i> [% t('Restore') %]</a> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=unarchive&code=[% credit_type.code | uri %]"><i class="fa fa-undo"></i> Restore</a> > [% END %] > </td> > </tr> >@@ -166,8 +165,8 @@ > </table> > [% ELSE %] > <div class="dialog message"> >- [% t('There are no account credit types defined.') %] >- <a href="/cgi-bin/koha/admin/credit_types.pl?op=add_form">[% t('Create new credit type') %]</a> >+ There are no account credit types defined. >+ <a href="/cgi-bin/koha/admin/credit_types.pl?op=add_form">Create new credit type</a> > </div> > [% END %] > [% END %] >-- >2.11.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 17702
:
57856
|
57857
|
57858
|
58066
|
85874
|
85875
|
85876
|
85877
|
98564
|
98659
|
98660
|
99306
|
99307
|
99322
|
99454