From 255cadeb772d63b06f77146c95b8d6e4b31d5836 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Mon, 12 Jun 2017 08:41:41 +0200 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc index 9c87eae30d..a5f8aa2359 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc @@ -1,9 +1,5 @@ - -[% IF ( ( opaclanguagesdisplay ) && - ( ! one_language_enabled ) && - ( languages_loop ) && - ( OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'top') ) -%] +[%# Following on one line for translatability %] +[% IF ( ( opaclanguagesdisplay ) && ( ! one_language_enabled ) && ( languages_loop ) && ( OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'top') ) %]