]> git.koha-community.org Git - koha.git/commit
Bug 18693: Translatability: Get rid of exposing a [%% FOREACH loop in translation...
authorMarc Véron <veron@veron.ch>
Tue, 30 May 2017 05:13:31 +0000 (07:13 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 12 Jun 2017 08:48:47 +0000 (10:48 +0200)
commitb6f5f0331d6ea8b472a1e06b54d787482f4ae88d
tree73765fe7ff3f33bfc8447822f25ce5015f1a5627
parent649cdbb91bffb37b0ea4958e80b55975ddce65bb
Bug 18693: Translatability: Get rid of exposing a [%% FOREACH loop in translation for branch-selector.inc

The file branch-selector.inc exposes the following line to translation
(due to newlines insied a tt directive):
%s %s [%% FOREACH branch IN branches; IF branch.selected; selectall = 0; END; END %%]

Additionally, export.tt exposes the following line to translation:
[%% INCLUDE 'branch-selector.inc' branches = libraries %%]

To test:
- Apply patch
- In Staff client, go to Home > Tools > Export data
- Verify that library selection behaves as before
- Bonus test: Create a "language" aa-AA (perl translate create aa-AA
  from folder misc/translator, verify that lines mentioned above do
  no longer appear in aa-AA-staff-prog.po
- Run QA tools (newest version with test for newlines in tt directives)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0ee3249438b85cb47aa9ff623bac4f405df7161f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt