From 5a30dea05b158fd6a77b0495ee047310865072eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Tue, 30 May 2017 11:23:20 +0200 Subject: [PATCH] Bug 18644: Translatability: Get rid of pure template directives in translation for memberentrygen.tt Translation for memberentrygen.tt exposes a lot of template directives like the following: [% UNLESS opduplicate %][% othernames | html %][% END %] Translators should not be confronted with such code internals. To test: - Review code changes - Verify that creating / editing patrons works as before - Bonus test: Create a "language" aa-AA (perl translate create aa-AA from folder misc/translator, verify that lines like mentioned above do no longer appear in aa-AA-staff-prog.po Signed-off-by: Jonathan Druart --- .../prog/en/modules/members/memberentrygen.tt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 870529555d..73cb4d60a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -230,8 +230,8 @@ $(document).ready(function() { - - + + [% IF ( step ) %][% END %] [% IF ( opadd ) %] @@ -302,7 +302,7 @@ $(document).ready(function() { - + [% IF ( mandatoryfirstname ) %]Required[% END %] [% END %] @@ -315,7 +315,7 @@ $(document).ready(function() { [% END %] Date of birth: - + [% IF ( mandatorydateofbirth ) %]Required[% END %] [% IF ( ERROR_dateofbirth ) %](Error)[% END %] @@ -330,7 +330,7 @@ $(document).ready(function() { - + [% IF ( mandatoryinitials ) %]Required[% END %] [% END %] @@ -343,7 +343,7 @@ $(document).ready(function() { - + [% IF ( mandatoryothernames ) %]Required[% END %] [% IF ( I ) %][% END %] @@ -779,13 +779,13 @@ $(document).ready(function() { Expiry date (leave blank for auto calc): [% IF ( dateformat == "metric" ) %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] [% ELSE %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] @@ -802,7 +802,7 @@ $(document).ready(function() { - +
This message appears on this patron's user page in the OPAC
[% IF ( mandatoryopacnote ) %]Required[% END %] @@ -815,7 +815,7 @@ $(document).ready(function() { - +
This message displays when checking out to this patron
[% IF ( mandatoryborrowernotes ) %]Required[% END %] -- 2.11.0