]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 Aug 2017 19:43:36 +0000 (16:43 -0300)
commitae684fc9491102ba0b560ca6f414a325e763b31a
tree470211007afd98dc3fced1fa1781a4a2781ff6c8
parentff591f2c77a2a3c1de4a0e7167ccfeba08c2f128
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt