From 5da3e251c074b0c88e08bb0000518f6febee4744 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Wed, 17 Nov 2010 22:59:08 +0000 Subject: Freifunk: Make the splash page editable --- applications/luci-splash/luasrc/controller/splash/splash.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'applications/luci-splash/luasrc/controller/splash') 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") -- cgit v1.2.3