From 21a151ac1ae0efaebe1dbe1ff51f3eceb09ab85b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 18 Oct 2018 13:58:10 +0200 Subject: [PATCH] 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 --- .../luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm | 1 + .../luasrc/view/themes/freifunk-generic/header.htm | 1 + .../luci-theme-material/luasrc/view/themes/material/header.htm | 1 + .../luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm | 1 + 4 files changed, 4 insertions(+) diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index 9ea1ff2281..d784e4ff94 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -167,6 +167,7 @@ <% if css then %> <% end -%> + 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 @@ <% end -%> + diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 737b6dbc65..07419e866f 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -207,6 +207,7 @@ <% if css then %> <% end -%> + diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm index 873d4d948e..c5186c40c5 100644 --- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -160,6 +160,7 @@ <%= css %> <% end -%> +