summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-11-26 12:53:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-11-26 12:53:43 +0000
commit848e43a5b47c0467b90e7d9a029e59ec53461da3 (patch)
tree175f8f2aae92abc3a587fe39f082f53ea627ccc9 /applications/luci-splash
parent264aae7910c2598fe845ebdd952e504bf8f0e48e (diff)
remove .i18n annotations from controller files
Diffstat (limited to 'applications/luci-splash')
-rw-r--r--applications/luci-splash/luasrc/controller/splash/splash.lua7
-rw-r--r--applications/luci-splash/luasrc/model/cbi/splash/splash.lua1
-rw-r--r--applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua1
-rw-r--r--applications/luci-splash/luasrc/view/admin_status/splash.htm1
4 files changed, 2 insertions, 8 deletions
diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua
index aceeb4a8c..73584580d 100644
--- a/applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/applications/luci-splash/luasrc/controller/splash/splash.lua
@@ -1,28 +1,25 @@
module("luci.controller.splash.splash", package.seeall)
-luci.i18n.loadc("splash")
local uci = luci.model.uci.cursor()
local util = require "luci.util"
function index()
- entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90).i18n = "freifunk"
+ entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splashtext"), 10)
local e
e = node("splash")
e.target = call("action_dispatch")
- e.i18n = "freifunk"
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_splash/splash")
node("splash", "blocked").target = template("splash/blocked")
- entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash")).i18n = "freifunk"
+ entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash"))
local page = node("splash", "publicstatus")
page.target = call("action_status_public")
- page.i18n = "freifunk"
page.leaf = true
end
diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua
index c03cd459a..47d7695d2 100644
--- a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua
+++ b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua
@@ -9,7 +9,6 @@ You may obtain a copy of the License at
]]--
require("luci.model.uci")
-luci.i18n.loadc("splash")
m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks."))
diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua b/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua
index 5b744e1cc..8748a9319 100644
--- a/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua
+++ b/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua
@@ -13,7 +13,6 @@ You may obtain a copy of the License at
]]--
local fs = require "nixio.fs"
-luci.i18n.loadc("splash")
local splashtextfile = "/usr/lib/luci-splash/splashtext.html"
diff --git a/applications/luci-splash/luasrc/view/admin_status/splash.htm b/applications/luci-splash/luasrc/view/admin_status/splash.htm
index d97921953..56cbe01c2 100644
--- a/applications/luci-splash/luasrc/view/admin_status/splash.htm
+++ b/applications/luci-splash/luasrc/view/admin_status/splash.htm
@@ -19,7 +19,6 @@ local ipt = require "luci.sys.iptparser".IptParser()
local uci = require "luci.model.uci".cursor_state()
local wat = require "luci.tools.webadmin"
local fs = require "nixio.fs"
-luci.i18n.loadc("splash")
local clients = { }
local leasetime = tonumber(uci:get("luci_splash", "general", "leasetime") or 1) * 60 * 60