summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
commit1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch)
tree4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-splash/luasrc
parenta8ac3b344f5dee7a79455faa0c699e561464cf4d (diff)
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-splash/luasrc')
-rw-r--r--applications/luci-splash/luasrc/controller/splash/splash.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua
index 27eff6579..71a61bdbf 100644
--- a/applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/applications/luci-splash/luasrc/controller/splash/splash.lua
@@ -1,17 +1,19 @@
module("luci.controller.splash.splash", package.seeall)
function index()
- require("luci.i18n")
- luci.i18n.loadc("freifunk")
+ entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90).i18n = "freifunk"
+ entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splashtext"), 10)
- entry({"admin", "services", "splash"}, cbi("splash/splash"), luci.i18n.translate("Client-Splash"), 90)
- entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), luci.i18n.translate("Splashtext"), 10)
+ local e
+
+ e = node("splash")
+ e.target = call("action_dispatch")
+ e.i18n = "freifunk"
- node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_splash/splash")
- entry({"admin", "status", "splash"}, call("action_status_admin"), "Client-Splash")
+ entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash")).i18n = "freifunk"
end
function action_dispatch()