summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-31 22:22:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-31 22:22:36 +0000
commitfc268c46b21871a08b426a350308285180c743f2 (patch)
tree7efb3a306a105a1bd78eb5378db6a4625ccef954 /applications/luci-upnp/luasrc/model
parente60a81aa8cab93d695e8b5cf71d9db87d9aad07d (diff)
applications/luci-upnp: fix miniupnpd page
Diffstat (limited to 'applications/luci-upnp/luasrc/model')
-rw-r--r--applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua10
-rw-r--r--applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua6
2 files changed, 10 insertions, 6 deletions
diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
index fa0e96553a..02fbfd6018 100644
--- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
+++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
@@ -15,6 +15,8 @@ $Id$
m = Map("upnpd", translate("Universal Plug & Play"), translate("UPNP allows clients in the local network to automatically configure the router."))
s = m:section(NamedSection, "config", "upnpd", "")
+s.addremove = false
+
e = s:option(Flag, "enabled", translate("enable"))
e.rmempty = false
@@ -30,9 +32,9 @@ function e.cfgvalue(self, section)
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
end
-s:option(Flag, "secure_mode").rmempty = true
-s:option(Flag, "log_output").rmempty = true
-s:option(Value, "download", nil, "kByte/s").rmempty = true
-s:option(Value, "upload", nil, "kByte/s").rmempty = true
+s:option(Flag, "secure_mode", translate("Enable secure mode")).rmempty = true
+s:option(Flag, "log_output", translate("Log output")).rmempty = true
+s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
+s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
return m
diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
index 64769aae11..4ca72ef0d0 100644
--- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
+++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
@@ -15,6 +15,8 @@ $Id$
m = Map("upnpd", translate("Universal Plug & Play"), translate("UPNP allows clients in the local network to automatically configure the router."))
s = m:section(NamedSection, "config", "upnpd", "")
+s.addremove = false
+
e = s:option(Flag, "enabled", translate("enable"))
e.rmempty = false
@@ -30,7 +32,7 @@ function e.cfgvalue(self, section)
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
end
-s:option(Value, "download", nil, "kByte/s").rmempty = true
-s:option(Value, "upload", nil, "kByte/s").rmempty = true
+s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
+s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
return m