summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/luasrc/controller
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2010-11-17 22:59:08 +0000
committerManuel Munz <freifunk@somakoma.de>2010-11-17 22:59:08 +0000
commit5da3e251c074b0c88e08bb0000518f6febee4744 (patch)
tree39a23e2dcfd07645ac8726d0458e856d9e9ad53c /applications/luci-splash/luasrc/controller
parentb05459541234cf4902a57dea0865185210140ad5 (diff)
Freifunk: Make the splash page editable
Diffstat (limited to 'applications/luci-splash/luasrc/controller')
-rw-r--r--applications/luci-splash/luasrc/controller/splash/splash.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua
index 362ad9def4..27eff65796 100644
--- a/applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/applications/luci-splash/luasrc/controller/splash/splash.lua
@@ -1,7 +1,11 @@
module("luci.controller.splash.splash", package.seeall)
function index()
- entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
+ require("luci.i18n")
+ luci.i18n.loadc("freifunk")
+
+ 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)
node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")