git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
21c3e37
)
modules/admin-full: adjust usage of luci.sys.wifi.channels(), fix some i18n
author
Jo-Philipp Wich
<redacted>
Sun, 15 Nov 2009 17:09:40 +0000
(17:09 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 15 Nov 2009 17:09:40 +0000
(17:09 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index 00bd560fc2961abaa0a7c45422220922f8568652..1d46c7551decd1c4a592c0651de2970d3a0aa256 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@
-44,10
+44,7
@@
nw.init(m.uci)
ww.init(m.uci)
local wnet = ww:get_network(arg[2])
-
-if wnet then
- m.title = wnet and ww:get_i18n(wnet)
-end
+m.title = wnet and ww:get_i18n(wnet) or translate("Wireless Network")
local iw = nil
@@
-92,7
+89,7
@@
local nsantenna = m:get(arg[1], "antenna")
ch = s:taboption("general", Value, "channel", translate("Channel"))
ch:value("auto", translate("auto"))
for _, f in ipairs(luci.sys.wifi.channels()) do
- ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz })
+ ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz
/ 1000
})
end
git clone https://git.99rst.org/PROJECT