Bug 18644

Summary: Translatability: Get rid of pure template directives in translation for memberentrygen.tt
Product: Koha Reporter: Marc Véron <veron>
Component: I18N/L10NAssignee: Marc Véron <veron>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: f.demians, fridolin.somers, jonathan.druart, katrin.fischer, mtj
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 18644: Get rid of template directives when translating memberentrygen.tt
Bug 18644: Translatability: Get rid of pure template directives in translation for memberentrygen.tt
Bug 18644: Translatability: Get rid of pure template directives in translation for memberentrygen.tt

Description Marc Véron 2017-05-20 10:31:28 UTC
Example for pure tt directives in translations:
[% UNLESS opduplicate %][% othernames | html %][% END %]
Comment 1 Marc Véron 2017-05-20 10:33:27 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2017-05-30 09:32:54 UTC
Created attachment 63839 [details] [review]
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
Comment 3 Jonathan Druart 2017-06-05 20:05:16 UTC
Created attachment 63991 [details] [review]
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 <jonathan.druart@bugs.koha-community.org>
Comment 4 Jonathan Druart 2017-06-05 20:17:56 UTC
Trivial, skipping QA.
Comment 5 Jonathan Druart 2017-06-06 19:03:42 UTC
Pushed to master for 17.11, thanks to everybody involved!
Comment 6 Fridolin Somers 2017-06-12 08:47:19 UTC
Pushed to 17.05.x, will be in 17.05.01
Comment 7 Katrin Fischer 2017-06-13 05:39:49 UTC
This patch has been pushed to 16.11.x and will be in 16.11.09.
Comment 8 Mason James 2017-07-31 11:19:26 UTC
Pushed to 16.05.x, for 16.05.15 release