Bug 18702: Translatability: Get rid of exposed if statement in tt for translated...
authorMarc Véron <veron@veron.ch>
Tue, 30 May 2017 16:50:16 +0000 (18:50 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 12 Jun 2017 08:33:55 +0000 (10:33 +0200)
commit49ed3b16c8b78d83f0fe5dd6f5e1d54441f43e40
tree2a594cb5a6e341c5cb4dd2c7ac7ab6aca3621ce4
parent7a181f3e912663ff642ba8dc569416ad4598ca26
Bug 18702: Translatability: Get rid of exposed if statement in tt for translated onboardingstep2.tt

The file onboardingstep2.tt exposes the following to translations:

"[%% IF (categories && categories.count > 1 ) # This if statement checks if "
"the categories variable handed to this template # by onboarding.pl has data "
"in it. If the categories variable does have data # in it this means that the "
"user has previously imported sample patron category # data and so we do not "
"need to show them the create patron category screen 1, #instead we can "
"display a screen with ubtton redirecting the user to step 3 %%] "

Translators should not be confronted with such internals. This patch removes it

To test:
- Verify that code change makes sense
- Run QA tools
- Bonus test: Create a new "language" aa-AA and verify that the lines above
  are no longer exposed.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 17fd5a4ffb6fa92e1ce522ac8f8cf5fdeb343868)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt