From 14a0e72d2cd25cce9d3a0b3d1d5c7b9732d58295 Mon Sep 17 00:00:00 2001 From: =?utf8?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 (cherry picked from commit 5a30dea05b158fd6a77b0495ee047310865072eb) Signed-off-by: Fridolin Somers (cherry picked from commit 649cdbb91bffb37b0ea4958e80b55975ddce65bb) Signed-off-by: Katrin Fischer --- .../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 5bbd07bd16..283b4a45aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -164,8 +164,8 @@ $(document).ready(function() { - - + + [% IF ( step ) %][% END %] [% IF ( opadd ) %] @@ -248,7 +248,7 @@ $(document).ready(function() { - + [% IF ( mandatoryfirstname ) %]Required[% END %] [% END %] @@ -261,7 +261,7 @@ $(document).ready(function() { [% END %] Date of birth: - + [% IF ( mandatorydateofbirth ) %]Required[% END %] [% IF ( ERROR_dateofbirth ) %](Error)[% END %] @@ -276,7 +276,7 @@ $(document).ready(function() { - + [% IF ( mandatoryinitials ) %]Required[% END %] [% END %] @@ -289,7 +289,7 @@ $(document).ready(function() { - + [% IF ( mandatoryothernames ) %]Required[% END %] [% IF ( I ) %][% END %] @@ -682,13 +682,13 @@ $(document).ready(function() { Expiry date (leave blank for auto calc): [% IF ( dateformat == "metric" ) %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] [% ELSE %] [% UNLESS ( opadd ) %] - + [% ELSE %] [% END %] @@ -705,7 +705,7 @@ $(document).ready(function() { - +
This message appears on this patron's user page in the OPAC
[% IF ( mandatoryopacnote ) %]Required[% END %] @@ -718,7 +718,7 @@ $(document).ready(function() { - +
This message displays when checking out to this patron
[% IF ( mandatoryborrowernotes ) %]Required[% END %] -- 2.39.5