]> git.koha-community.org Git - koha.git/commit
Bug 18780: Translatability: Get rid of exposed tt directive in masthead-langmenu.inc
authorMarc Véron <veron@veron.ch>
Mon, 12 Jun 2017 06:41:41 +0000 (08:41 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 29 Sep 2017 13:50:07 +0000 (15:50 +0200)
commite0adbc10c09c25310f79fec55518fb5df50ad040
tree491022ae90ae4f86afa2b774fea5d0e7298fc16e
parent4dc640244651c584347b01f35f2cb25b6369a638
Bug 18780: Translatability: Get rid of exposed tt directive in masthead-langmenu.inc

The file opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc exposes following tt directive to translators:

"[%% IF ( ( opaclanguagesdisplay ) && ( ! one_language_enabled ) && "
"( languages_loop ) && ( OpacLangSelectorMode == 'both' || "
"OpacLangSelectorMode == 'top') ) %%] "

This patch fixes it.

To test:
- Apply patch
- Verify that language selector in OPAC (top of the page) works as expected
- Bonus test: create a new language 'aa-AA', verify that line above does not
show up in aa-AA-opac-bootstrap.po

NOTE: Followed a test plan similar to bug 18776 comment 3

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 255cadeb772d63b06f77146c95b8d6e4b31d5836)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc