applications/luci-upnp: fix miniupnpd page
[project/luci.git] / applications / luci-upnp / luasrc / model / cbi / upnp / upnp.lua
index fa0e965..02fbfd6 100644 (file)
@@ -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