diff options
Diffstat (limited to 'modules')
15 files changed, 104 insertions, 126 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/index.lua b/modules/admin-full/luasrc/controller/admin/index.lua index b7bf36996..14d7b7a61 100644 --- a/modules/admin-full/luasrc/controller/admin/index.lua +++ b/modules/admin-full/luasrc/controller/admin/index.lua @@ -11,12 +11,10 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.admin.index", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - local root = node() if not root.target then root.target = alias("admin") @@ -25,14 +23,14 @@ function index() local page = node("admin") page.target = alias("admin", "status") - page.title = i18n("Administration") + page.title = _("Administration") page.order = 10 page.sysauth = "root" page.sysauth_authenticator = "htmlauth" page.ucidata = true page.index = true - entry({"admin", "logout"}, call("action_logout"), i18n("Logout"), 90) + entry({"admin", "logout"}, call("action_logout"), _("Logout"), 90) end function action_logout() diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 76d432094..85456483a 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -16,10 +16,8 @@ $Id$ module("luci.controller.admin.network", package.seeall) function index() - require("luci.i18n") local uci = require("luci.model.uci").cursor() local net = require "luci.model.network".init(uci) - local i18n = luci.i18n.translate local has_wifi = nixio.fs.stat("/etc/config/wireless") local has_switch = false @@ -34,19 +32,19 @@ function index() page = node("admin", "network") page.target = alias("admin", "network", "network") - page.title = i18n("Network") + page.title = _("Network") page.order = 50 page.index = true if has_switch then page = node("admin", "network", "vlan") page.target = cbi("admin_network/vlan") - page.title = i18n("Switch") + page.title = _("Switch") page.order = 20 end if has_wifi and has_wifi.size > 0 then - page = entry({"admin", "network", "wireless"}, arcombine(template("admin_network/wifi_overview"), cbi("admin_network/wifi")), i18n("Wifi"), 15) + page = entry({"admin", "network", "wireless"}, arcombine(template("admin_network/wifi_overview"), cbi("admin_network/wifi")), _("Wifi"), 15) page.leaf = true page.subindex = true @@ -75,7 +73,7 @@ function index() end end - page = entry({"admin", "network", "network"}, arcombine(cbi("admin_network/network"), cbi("admin_network/ifaces")), i18n("Interfaces"), 10) + page = entry({"admin", "network", "network"}, arcombine(cbi("admin_network/network"), cbi("admin_network/ifaces")), _("Interfaces"), 10) page.leaf = true page.subindex = true @@ -108,7 +106,7 @@ function index() if nixio.fs.access("/etc/config/dhcp") then page = node("admin", "network", "dhcp") page.target = cbi("admin_network/dhcp") - page.title = i18n("DHCP and DNS") + page.title = _("DHCP and DNS") page.order = 30 page = entry({"admin", "network", "dhcplease_status"}, call("lease_status"), nil) @@ -116,18 +114,18 @@ function index() page = node("admin", "network", "hosts") page.target = cbi("admin_network/hosts") - page.title = i18n("Hostnames") + page.title = _("Hostnames") page.order = 40 end page = node("admin", "network", "routes") page.target = cbi("admin_network/routes") - page.title = i18n("Static Routes") + page.title = _("Static Routes") page.order = 50 page = node("admin", "network", "diagnostics") page.target = template("admin_network/diagnostics") - page.title = i18n("Diagnostics") + page.title = _("Diagnostics") page.order = 60 page = entry({"admin", "network", "diag_ping"}, call("diag_ping"), nil) diff --git a/modules/admin-full/luasrc/controller/admin/services.lua b/modules/admin-full/luasrc/controller/admin/services.lua index 14ced9f69..1e161d764 100644 --- a/modules/admin-full/luasrc/controller/admin/services.lua +++ b/modules/admin-full/luasrc/controller/admin/services.lua @@ -11,20 +11,20 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.admin.services", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate + local page - local page = node("admin", "services", "crontab") + page = node("admin", "services", "crontab") page.target = form("admin_services/crontab") - page.title = i18n("Scheduled Tasks") + page.title = _("Scheduled Tasks") page.order = 50 - local page = node("admin", "services") + page = node("admin", "services") page.target = template("admin_services/index") - page.title = i18n("Services") + page.title = _("Services") page.order = 40 page.index = true end diff --git a/modules/admin-full/luasrc/controller/admin/status.lua b/modules/admin-full/luasrc/controller/admin/status.lua index ef6089f62..f9bfd908d 100644 --- a/modules/admin-full/luasrc/controller/admin/status.lua +++ b/modules/admin-full/luasrc/controller/admin/status.lua @@ -12,29 +12,27 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.admin.status", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - - entry({"admin", "status"}, alias("admin", "status", "overview"), i18n("Status"), 20).index = true - entry({"admin", "status", "overview"}, template("admin_status/index"), i18n("Overview"), 1) - entry({"admin", "status", "iptables"}, call("action_iptables"), i18n("Firewall"), 2).leaf = true - entry({"admin", "status", "routes"}, template("admin_status/routes"), i18n("Routes"), 3) - entry({"admin", "status", "syslog"}, call("action_syslog"), i18n("System Log"), 4) - entry({"admin", "status", "dmesg"}, call("action_dmesg"), i18n("Kernel Log"), 5) - - entry({"admin", "status", "load"}, template("admin_status/load"), i18n("Realtime Load"), 6).leaf = true + entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).index = true + entry({"admin", "status", "overview"}, template("admin_status/index"), _("Overview"), 1) + entry({"admin", "status", "iptables"}, call("action_iptables"), _("Firewall"), 2).leaf = true + entry({"admin", "status", "routes"}, template("admin_status/routes"), _("Routes"), 3) + entry({"admin", "status", "syslog"}, call("action_syslog"), _("System Log"), 4) + entry({"admin", "status", "dmesg"}, call("action_dmesg"), _("Kernel Log"), 5) + + entry({"admin", "status", "load"}, template("admin_status/load"), _("Realtime Load"), 6).leaf = true entry({"admin", "status", "load_status"}, call("action_load")).leaf = true - entry({"admin", "status", "bandwidth"}, template("admin_status/bandwidth"), i18n("Realtime Traffic"), 7).leaf = true + entry({"admin", "status", "bandwidth"}, template("admin_status/bandwidth"), _("Realtime Traffic"), 7).leaf = true entry({"admin", "status", "bandwidth_status"}, call("action_bandwidth")).leaf = true - entry({"admin", "status", "connections"}, template("admin_status/connections"), i18n("Realtime Connections"), 8).leaf = true + entry({"admin", "status", "connections"}, template("admin_status/connections"), _("Realtime Connections"), 8).leaf = true entry({"admin", "status", "connections_status"}, call("action_connections")).leaf = true - entry({"admin", "status", "processes"}, cbi("admin_status/processes"), i18n("Processes"), 20) + entry({"admin", "status", "processes"}, cbi("admin_status/processes"), _("Processes"), 20) end function action_syslog() diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index dd78f1e8c..abfe1f5f1 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -16,29 +16,26 @@ $Id$ module("luci.controller.admin.system", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - - entry({"admin", "system"}, alias("admin", "system", "system"), i18n("System"), 30).index = true - entry({"admin", "system", "system"}, cbi("admin_system/system"), i18n("System"), 1) - entry({"admin", "system", "admin"}, cbi("admin_system/admin"), i18n("Administration"), 2) - entry({"admin", "system", "packages"}, call("action_packages"), i18n("Software"), 10) + entry({"admin", "system"}, alias("admin", "system", "system"), _("System"), 30).index = true + entry({"admin", "system", "system"}, cbi("admin_system/system"), _("System"), 1) + entry({"admin", "system", "admin"}, cbi("admin_system/admin"), _("Administration"), 2) + entry({"admin", "system", "packages"}, call("action_packages"), _("Software"), 10) entry({"admin", "system", "packages", "ipkg"}, form("admin_system/ipkg")) - entry({"admin", "system", "startup"}, form("admin_system/startup"), i18n("Startup"), 45) + entry({"admin", "system", "startup"}, form("admin_system/startup"), _("Startup"), 45) if nixio.fs.access("/etc/config/fstab") then - entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), i18n("Mount Points"), 50) + entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), _("Mount Points"), 50) entry({"admin", "system", "fstab", "mount"}, cbi("admin_system/fstab/mount"), nil).leaf = true entry({"admin", "system", "fstab", "swap"}, cbi("admin_system/fstab/swap"), nil).leaf = true end if nixio.fs.access("/sys/class/leds") then - entry({"admin", "system", "leds"}, cbi("admin_system/leds"), i18n("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60) + entry({"admin", "system", "leds"}, cbi("admin_system/leds"), _("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60) end - entry({"admin", "system", "backup"}, call("action_backup"), i18n("Backup / Restore"), 70) - entry({"admin", "system", "upgrade"}, call("action_upgrade"), i18n("Flash Firmware"), 80) - entry({"admin", "system", "reboot"}, call("action_reboot"), i18n("Reboot"), 90) + entry({"admin", "system", "backup"}, call("action_backup"), _("Backup / Restore"), 70) + entry({"admin", "system", "upgrade"}, call("action_upgrade"), _("Flash Firmware"), 80) + entry({"admin", "system", "reboot"}, call("action_reboot"), _("Reboot"), 90) end function action_packages() diff --git a/modules/admin-full/luasrc/controller/admin/uci.lua b/modules/admin-full/luasrc/controller/admin/uci.lua index 5edcc973e..34e40ee62 100644 --- a/modules/admin-full/luasrc/controller/admin/uci.lua +++ b/modules/admin-full/luasrc/controller/admin/uci.lua @@ -16,15 +16,14 @@ $Id$ module("luci.controller.admin.uci", package.seeall) function index() - local i18n = luci.i18n.translate local redir = luci.http.formvalue("redir", true) or luci.dispatcher.build_url(unpack(luci.dispatcher.context.request)) - entry({"admin", "uci"}, nil, i18n("Configuration")) - entry({"admin", "uci", "changes"}, call("action_changes"), i18n("Changes"), 40).query = {redir=redir} - entry({"admin", "uci", "revert"}, call("action_revert"), i18n("Revert"), 30).query = {redir=redir} - entry({"admin", "uci", "apply"}, call("action_apply"), i18n("Apply"), 20).query = {redir=redir} - entry({"admin", "uci", "saveapply"}, call("action_apply"), i18n("Save & Apply"), 10).query = {redir=redir} + entry({"admin", "uci"}, nil, _("Configuration")) + entry({"admin", "uci", "changes"}, call("action_changes"), _("Changes"), 40).query = {redir=redir} + entry({"admin", "uci", "revert"}, call("action_revert"), _("Revert"), 30).query = {redir=redir} + entry({"admin", "uci", "apply"}, call("action_apply"), _("Apply"), 20).query = {redir=redir} + entry({"admin", "uci", "saveapply"}, call("action_apply"), _("Save & Apply"), 10).query = {redir=redir} end function action_changes() diff --git a/modules/admin-mini/luasrc/controller/mini/index.lua b/modules/admin-mini/luasrc/controller/mini/index.lua index 81c0846bf..9d6a38ed4 100644 --- a/modules/admin-mini/luasrc/controller/mini/index.lua +++ b/modules/admin-mini/luasrc/controller/mini/index.lua @@ -16,9 +16,6 @@ $Id$ module("luci.controller.mini.index", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - local root = node() if not root.lock then root.target = alias("mini") @@ -27,15 +24,15 @@ function index() entry({"about"}, template("about")) - local page = entry({"mini"}, alias("mini", "index"), i18n("Essentials"), 10) + local page = entry({"mini"}, alias("mini", "index"), _("Essentials"), 10) page.sysauth = "root" page.sysauth_authenticator = "htmlauth" page.index = true - entry({"mini", "index"}, alias("mini", "index", "index"), i18n("Overview"), 10).index = true - entry({"mini", "index", "index"}, form("mini/index"), i18n("General"), 1).ignoreindex = true - entry({"mini", "index", "luci"}, cbi("mini/luci", {autoapply=true}), i18n("Settings"), 10) - entry({"mini", "index", "logout"}, call("action_logout"), i18n("Logout")) + entry({"mini", "index"}, alias("mini", "index", "index"), _("Overview"), 10).index = true + entry({"mini", "index", "index"}, form("mini/index"), _("General"), 1).ignoreindex = true + entry({"mini", "index", "luci"}, cbi("mini/luci", {autoapply=true}), _("Settings"), 10) + entry({"mini", "index", "logout"}, call("action_logout"), _("Logout")) end function action_logout() diff --git a/modules/admin-mini/luasrc/controller/mini/network.lua b/modules/admin-mini/luasrc/controller/mini/network.lua index 22162adc5..8b9356dd6 100644 --- a/modules/admin-mini/luasrc/controller/mini/network.lua +++ b/modules/admin-mini/luasrc/controller/mini/network.lua @@ -16,11 +16,8 @@ $Id$ module("luci.controller.mini.network", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - - entry({"mini", "network"}, alias("mini", "network", "index"), i18n("Network"), 20).index = true - entry({"mini", "network", "index"}, cbi("mini/network", {autoapply=true}), i18n("General"), 1) - entry({"mini", "network", "wifi"}, cbi("mini/wifi", {autoapply=true}), i18n("Wifi"), 10) - entry({"mini", "network", "dhcp"}, cbi("mini/dhcp", {autoapply=true}), "DHCP", 20) + entry({"mini", "network"}, alias("mini", "network", "index"), _("Network"), 20).index = true + entry({"mini", "network", "index"}, cbi("mini/network", {autoapply=true}), _("General"), 1) + entry({"mini", "network", "wifi"}, cbi("mini/wifi", {autoapply=true}), _("Wifi"), 10) + entry({"mini", "network", "dhcp"}, cbi("mini/dhcp", {autoapply=true}), _("DHCP"), 20) end diff --git a/modules/admin-mini/luasrc/controller/mini/system.lua b/modules/admin-mini/luasrc/controller/mini/system.lua index 2559ac16c..519c15bc6 100644 --- a/modules/admin-mini/luasrc/controller/mini/system.lua +++ b/modules/admin-mini/luasrc/controller/mini/system.lua @@ -16,15 +16,12 @@ $Id$ module("luci.controller.mini.system", package.seeall) function index() - luci.i18n.loadc("base") - local i18n = luci.i18n.translate - - entry({"mini", "system"}, alias("mini", "system", "index"), i18n("System"), 40).index = true - entry({"mini", "system", "index"}, cbi("mini/system", {autoapply=true}), i18n("General"), 1) - entry({"mini", "system", "passwd"}, form("mini/passwd"), i18n("Admin Password"), 10) - entry({"mini", "system", "backup"}, call("action_backup"), i18n("Backup / Restore"), 80) - entry({"mini", "system", "upgrade"}, call("action_upgrade"), i18n("Flash Firmware"), 90) - entry({"mini", "system", "reboot"}, call("action_reboot"), i18n("Reboot"), 100) + entry({"mini", "system"}, alias("mini", "system", "index"), _("System"), 40).index = true + entry({"mini", "system", "index"}, cbi("mini/system", {autoapply=true}), _("General"), 1) + entry({"mini", "system", "passwd"}, form("mini/passwd"), _("Admin Password"), 10) + entry({"mini", "system", "backup"}, call("action_backup"), _("Backup / Restore"), 80) + entry({"mini", "system", "upgrade"}, call("action_upgrade"), _("Flash Firmware"), 90) + entry({"mini", "system", "reboot"}, call("action_reboot"), _("Reboot"), 100) end function action_backup() diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index a536fea0a..445f8b410 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -11,21 +11,22 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.freifunk.freifunk", package.seeall) function index() - local i18n = luci.i18n.translate local uci = require "luci.model.uci".cursor() + local page -- Frontend - local page = node() - page.lock = true - page.target = alias("freifunk") + page = node() + page.lock = true + page.target = alias("freifunk") page.subindex = true - page.index = false + page.index = false - local page = node("freifunk") - page.title = i18n("Freifunk") + page = node("freifunk") + page.title = _("Freifunk") page.target = alias("freifunk", "index") page.order = 5 page.setuser = "nobody" @@ -33,70 +34,70 @@ function index() page.i18n = "freifunk" page.index = true - local page = node("freifunk", "index") - page.target = template("freifunk/index") - page.title = i18n("Overview") - page.order = 10 + page = node("freifunk", "index") + page.target = template("freifunk/index") + page.title = _("Overview") + page.order = 10 page.indexignore = true - local page = node("freifunk", "index", "contact") - page.target = template("freifunk/contact") - page.title = i18n("Contact") + page = node("freifunk", "index", "contact") + page.target = template("freifunk/contact") + page.title = _("Contact") page.order = 10 - local page = node("freifunk", "status") - page.target = template("freifunk/public_status") - page.title = i18n("Status") - page.order = 20 - page.i18n = "base" + page = node("freifunk", "status") + page.target = template("freifunk/public_status") + page.title = _("Status") + page.order = 20 + page.i18n = "base" page.setuser = false - page.setgroup = false + page.setgroup = false entry({"freifunk", "status.json"}, call("jsonstatus")) entry({"freifunk", "status", "zeroes"}, call("zeroes"), "Testdownload") entry({"freifunk", "status", "public_status_json"}, call("public_status_json")).leaf = true - assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, i18n("OLSR"), 30) + assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, _("OLSR"), 30) if nixio.fs.access("/etc/config/luci_statistics") then - assign({"freifunk", "graph"}, {"admin", "statistics", "graph"}, i18n("Statistics"), 40) + assign({"freifunk", "graph"}, {"admin", "statistics", "graph"}, _("Statistics"), 40) end -- backend - assign({"mini", "freifunk"}, {"admin", "freifunk"}, i18n("Freifunk"), 5) - entry({"admin", "freifunk"}, alias("admin", "freifunk", "index"), i18n("Freifunk"), 5) + assign({"mini", "freifunk"}, {"admin", "freifunk"}, _("Freifunk"), 5) + entry({"admin", "freifunk"}, alias("admin", "freifunk", "index"), _("Freifunk"), 5) - local page = node("admin", "freifunk") + page = node("admin", "freifunk") page.target = template("freifunk/adminindex") - page.title = i18n("Freifunk") + page.title = _("Freifunk") page.order = 5 - local page = node("admin", "freifunk", "basics") + page = node("admin", "freifunk", "basics") page.target = cbi("freifunk/basics") - page.title = i18n("Basic Settings") + page.title = _("Basic Settings") page.order = 5 - local page = node("admin", "freifunk", "basics", "profile") + page = node("admin", "freifunk", "basics", "profile") page.target = cbi("freifunk/profile") - page.title = i18n("Profile") + page.title = _("Profile") page.order = 10 - local page = node("admin", "freifunk", "basics", "profile_expert") + page = node("admin", "freifunk", "basics", "profile_expert") page.target = cbi("freifunk/profile_expert") - page.title = i18n("Profile (Expert)") + page.title = _("Profile (Expert)") page.order = 20 - local page = node("admin", "freifunk", "Index-Page") + page = node("admin", "freifunk", "Index-Page") page.target = cbi("freifunk/user_index") - page.title = i18n("Index Page") + page.title = _("Index Page") page.order = 50 - local page = node("admin", "freifunk", "contact") + page = node("admin", "freifunk", "contact") page.target = cbi("freifunk/contact") - page.title = i18n("Contact") + page.title = _("Contact") page.order = 15 - entry({"freifunk", "map"}, template("freifunk-map/frame"), i18n("Map"), 50) + entry({"freifunk", "map"}, template("freifunk-map/frame"), _("Map"), 50) entry({"freifunk", "map", "content"}, template("freifunk-map/map"), nil, 51) entry({"admin", "freifunk", "profile_error"}, template("freifunk/profile_error")) end diff --git a/modules/freifunk/luasrc/controller/freifunk/remote_update.lua b/modules/freifunk/luasrc/controller/freifunk/remote_update.lua index 165c2a82c..cc8dd142d 100644 --- a/modules/freifunk/luasrc/controller/freifunk/remote_update.lua +++ b/modules/freifunk/luasrc/controller/freifunk/remote_update.lua @@ -14,12 +14,12 @@ You may obtain a copy of the License at module("luci.controller.freifunk.remote_update", package.seeall) function index() - local i18n = luci.i18n.translate if not nixio.fs.access("/usr/sbin/remote-update") then return end + entry({"admin", "system", "remote_update"}, call("act_remote_update"), - i18n("Freifunk Remote Update"), 90) + _("Freifunk Remote Update"), 90) end function act_remote_update() 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 |