[Koha-bugs] [Bug 24661] Inclusion of locale-related javascript files is broken
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 25 12:49:57 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24661
--- Comment #13 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Jenkins has a lot of those lines, coming from
xt/author/translatable-templates.t, I do not get the warnings when run locally
however, which is a bit weird.
https://jenkins.koha-community.org/job/Koha_Master_D9/1172/consoleFull
What about the following changes?
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
index 1ad6197288..94f86ad2f6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
@@ -26,6 +26,7 @@
var Koha = {};
</script>
+[% SET lang = 'en' UNLESS lang.defined %]
[% IF lang != 'en' %]
[% Asset.js(lang _ '/js/locale_data.js') | $raw %]
[% END %]
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list