summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-freifunk-generic
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-10-18 13:58:10 +0200
committerJo-Philipp Wich <jo@mein.io>2018-11-05 11:01:45 +0100
commit21a151ac1ae0efaebe1dbe1ff51f3eceb09ab85b (patch)
treecd47c3a3abb4c8524faefdd46a2b051dd6dcd840 /themes/luci-theme-freifunk-generic
parentab405edfb63c589204fed7d54748f2d1e8108d18 (diff)
themes: load client side translations
Extend the theme headers to include the translation string scripts, allowing client side code to translate strings without server side support. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-freifunk-generic')
-rw-r--r--themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
index 5b6491a952..fa749325f6 100644
--- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
+++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
@@ -81,6 +81,7 @@
</style>
<% end -%>
<meta name="viewport" content="initial-scale=1.0" />
+<script type="text/javascript" src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script>
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>