Bug 18699: Get rid of %%] in translation for edi_accounts.tt
authorMarc Véron <veron@veron.ch>
Tue, 30 May 2017 14:08:32 +0000 (16:08 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Jun 2017 20:04:08 +0000 (17:04 -0300)
Translation for edi_accounts.tt exposes:
[%% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %%]

Translators should not be confronted with such code internals.

To test:
- Review code change (it removes line breaks)
- Bonus test: Create a new translatin for "language" aa-AA and
  verify that the line no longer appears in aa-AA-staff-prog.po

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt

index 30791ad..1b9882f 100644 (file)
      <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
   </li>
   <li>
-     [% transport_types = [
-                 'FTP', 'SFTP', 'FILE'
-            ]
-     %]
+     [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
      <label for="transport">Transport: </label>
      <select name="transport" title="valid types of transport are FTP and SFTP"
       id="transport">