From adc59c434d68e9de1629efaf40320ee9b38850f5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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 --- .../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' %] 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 %] [% INCLUDE 'doc-head-close.inc' %] @@ -24,11 +23,11 @@ [% INCLUDE 'prefs-admin-search.inc' %] @@ -41,13 +40,13 @@
[% 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 %] -

[% t('Modify a credit type') %]

+

Modify a credit type

[% ELSE %] -

[% t('New credit type') %]

+

New credit type

[% END %]
@@ -66,20 +65,20 @@
  1. - + [% IF credit_type %] [% credit_type.code | html %] [% ELSE %] - [% t('Required. Maximum length is 64 letters') %] + Required. Maximum length is 64 letters [% END %]
  2. - - [% t('Required') %] + + Required
  3. - + [% IF credit_type.can_be_added_manually %] [% ELSE %] @@ -87,9 +86,9 @@ [% END %]
  4. - + - [% t("Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.") %] + Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.
- - [% t('Cancel') %] + + Cancel
[% END %] [% IF op == 'list' %] -

[% t('Account credit types') %]

+

Account credit types

[% IF credit_types.count %] - - - - - - - + + + + + + + [% FOREACH credit_type IN credit_types %] @@ -134,7 +133,7 @@ - + @@ -166,8 +165,8 @@
[% t('Archived') %][% t('System') %][% t('Code') %][% t('Description') %][% t('Available for') %][% t('Library limitations') %][% t('Actions') %]ArchivedSystemCodeDescriptionAvailable forLibrary limitationsActions
[% credit_type.is_system | html %] [% credit_type.code | html %] [% credit_type.description | html %][% IF credit_type.can_be_added_manually %][% t('Manual credit') %][% END %][% IF credit_type.can_be_added_manually %]Manual credit[% END %] [% 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 %] [% IF !credit_type.is_system && !credit_type.archived %] - [% t('Edit') %] - [% t('Archive') %] + Edit + Archive [% ELSIF credit_type.archived %] - [% t('Restore') %] + Restore [% END %]
[% ELSE %]
- [% t('There are no account credit types defined.') %] - [% t('Create new credit type') %] + There are no account credit types defined. + Create new credit type
[% END %] [% END %] -- 2.39.5