Bug 24661: Fix inclusion of locale-related javascript files
commitd2e60c553ba42e61c8ad321c3625e6d291e9c13d
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 14 Feb 2020 08:46:01 +0000 (14 09:46 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 14 Feb 2020 11:55:16 +0000 (14 11:55 +0000)
tree0ca855ac7b91b1191e08b2d70107866db9ff7441
parent97b84b631f13b6b4a024b39cf928c11ae3dc6b88
Bug 24661: Fix inclusion of locale-related javascript files

2 js files (Gettext.js, i18n.js) + 1 generated js file (locale_data.js)
were added by bug 21156. Their URL are broken and the files are not loaded.

Use Template::Toolkit plugin Asset to include these files, and exclude
locale_data.js when language is english, because obviously translations
are not needed in this case.

Test plan:
1. Just make sure the files mentioned above are loaded correctly when in
   English and in other languages as well

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc