diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
commit | 1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch) | |
tree | 4c4044d2ca009fa88c154379e439bb2dc784b3a4 /modules/niu | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'modules/niu')
-rw-r--r-- | modules/niu/luasrc/controller/niu/dashboard.lua | 1 | ||||
-rw-r--r-- | modules/niu/luasrc/controller/niu/network.lua | 1 | ||||
-rw-r--r-- | modules/niu/luasrc/controller/niu/traffic.lua | 2 | ||||
-rw-r--r-- | modules/niu/luasrc/controller/niu/wireless.lua | 10 |
4 files changed, 5 insertions, 9 deletions
diff --git a/modules/niu/luasrc/controller/niu/dashboard.lua b/modules/niu/luasrc/controller/niu/dashboard.lua index bd4875cb9..757024df0 100644 --- a/modules/niu/luasrc/controller/niu/dashboard.lua +++ b/modules/niu/luasrc/controller/niu/dashboard.lua @@ -16,7 +16,6 @@ local req = require module "luci.controller.niu.dashboard" function index() - local translate = require "luci.i18n".translate local uci = require "luci.model.uci" local root = node() diff --git a/modules/niu/luasrc/controller/niu/network.lua b/modules/niu/luasrc/controller/niu/network.lua index de3d7d49e..78a45a605 100644 --- a/modules/niu/luasrc/controller/niu/network.lua +++ b/modules/niu/luasrc/controller/niu/network.lua @@ -12,7 +12,6 @@ You may obtain a copy of the License at $Id$ ]]-- -local require = require module "luci.controller.niu.network" function index() diff --git a/modules/niu/luasrc/controller/niu/traffic.lua b/modules/niu/luasrc/controller/niu/traffic.lua index 76584eabf..ffc8d9ade 100644 --- a/modules/niu/luasrc/controller/niu/traffic.lua +++ b/modules/niu/luasrc/controller/niu/traffic.lua @@ -42,4 +42,4 @@ end function cnntrck() require "luci.template".render("niu/traffic/conntrack") -end
\ No newline at end of file +end diff --git a/modules/niu/luasrc/controller/niu/wireless.lua b/modules/niu/luasrc/controller/niu/wireless.lua index ee402bc49..92ebffdfc 100644 --- a/modules/niu/luasrc/controller/niu/wireless.lua +++ b/modules/niu/luasrc/controller/niu/wireless.lua @@ -12,7 +12,6 @@ You may obtain a copy of the License at $Id$ ]]-- -local require = require module "luci.controller.niu.wireless" function index() @@ -20,23 +19,22 @@ function index() return end - local toniu = {on_success_to={"niu"}} - local e = entry({"niu", "wireless"}, alias("niu"), i18n.translate("Wireless"), 20) + local e = entry({"niu", "wireless"}, alias("niu"), _("Wireless"), 20) --e.niu_dbtemplate = "niu/wireless" e.niu_dbtasks = true e.niu_dbicon = "icons32/network-wireless.png" entry({"niu", "wireless", "ap"}, - cbi("niu/wireless/ap", toniu), i18n.translate("Configure Private Access Point"), 1) + cbi("niu/wireless/ap", toniu), _("Configure Private Access Point"), 1) local bridge = false uci.inst:foreach("wireless", "wifi-device", function(s) if not bridge and (s.type == "mac80211" or s.type == "atheros") then entry({"niu", "wireless", "bridge"}, - cbi("niu/wireless/bridge", toniu), i18n.translate("Join a local WDS network"), 2) + cbi("niu/wireless/bridge", toniu), _("Join a local WDS network"), 2) bridge = true end end) -end
\ No newline at end of file +end |