diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 22:22:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 22:22:36 +0000 |
commit | fc268c46b21871a08b426a350308285180c743f2 (patch) | |
tree | 7efb3a306a105a1bd78eb5378db6a4625ccef954 /applications | |
parent | e60a81aa8cab93d695e8b5cf71d9db87d9aad07d (diff) |
applications/luci-upnp: fix miniupnpd page
Diffstat (limited to 'applications')
3 files changed, 14 insertions, 10 deletions
diff --git a/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua b/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua index 8edf1433b..886053b1b 100644 --- a/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua +++ b/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua @@ -36,14 +36,14 @@ pw.password = true s.defaults.ip_source = "network" s.defaults.ip_network = "wan" -s:option(Value, "check_interval").default = 10 -unit = s:option(ListValue, "check_unit") +s:option(Value, "check_interval", translate("Check for changed IP every")).default = 10 +unit = s:option(ListValue, "check_unit", translate("Check-Time unit")) unit.default = "minutes" unit:value("minutes", "min") unit:value("hours", "h") -s:option(Value, "force_interval").default = 72 -unit = s:option(ListValue, "force_unit") +s:option(Value, "force_interval", translate("Force update every")).default = 72 +unit = s:option(ListValue, "force_unit", translate("Force-Time unit")) unit.default = "hours" unit:value("minutes", "min") unit:value("hours", "h") diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua index fa0e96553..02fbfd601 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 64769aae1..4ca72ef0d 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 |