Bug 18648: Translatability: Get rid of tt directives in translation for macles.tt

koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/macles.tt contains
template directives inside a div tag:
<span title="[% FOREACH lib IN cell.libs %][% lib.lib |html %] - [% END %]">
This is exposed in translation tool.

To test:
- Carefully examine code changes
- Apply patch, verify that the directive is no longer exposed (picked for
  po files), e.g. by creating a new "language" aa-AA and examing aa-AA-staff-prog.po
- If you know where / how this macles is used, verify that it behaves as before

(Note: New patch, needs new sign off)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marc Véron 2017-05-30 21:10:32 +02:00 committed by Jonathan Druart
parent 16307c4034
commit 00d3a883b5
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@
</th>
[% FOREACH cell IN line.cells %]
<td headers="[% cell.rowvalue %] [% cell.colvalue %]">
<span title="[% FOREACH lib IN cell.libs %][% lib.lib |html %] - [% END %]">
[% BLOCK spantitle %][% FOREACH lib IN cell.libs %][% lib.lib |html %][% END %]
<span title="[% INCLUDE spantitle %]">
[% cell.celvalue %] <br /><input type="checkbox" name="[% cell.celvalue %]" value="[% cell.celvalue %]" />
</span>
</td>