]> git.koha-community.org Git - koha.git/commit
Bug 18776: Translatability: Get rid of exposed tt directives in opac-advsearch.tt
authorMarc Véron <veron@veron.ch>
Sun, 11 Jun 2017 14:54:28 +0000 (16:54 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 1 Oct 2017 22:28:29 +0000 (00:28 +0200)
commitc583929799f87e7092cad06a4e1cc1855630411a
treeba3c288eb1dd9251fd67a8d726ef3bffddd408db
parentdf8a9f82a6cf8fba92cbee9c171410fe01d500de
Bug 18776: Translatability: Get rid of exposed tt directives in opac-advsearch.tt

The file opac-advsearch.tt exposes template directives to translation where translators should not be confronted with.
Example in po file:
"[%% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype')."
"size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and "
"OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) "
"%%] "

To test:
- Apply patch
- Verify that advanced search in OPAC behaves as before
- Create a new translation for a 'language' aa-AA (perl translate create aa-AA)
- Verify that template directives ar no longer exposed in aa-AA-opac-bootstrap.po

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ae684fc9491102ba0b560ca6f414a325e763b31a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit b1bce06e515e22482ca555b85da19f965b475f5f)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt