applications/luci-upnp: fix miniupnpd page
This commit is contained in:
parent
e60a81aa8c
commit
fc268c46b2
5 changed files with 16 additions and 12 deletions
|
@ -36,14 +36,14 @@ pw.password = true
|
||||||
s.defaults.ip_source = "network"
|
s.defaults.ip_source = "network"
|
||||||
s.defaults.ip_network = "wan"
|
s.defaults.ip_network = "wan"
|
||||||
|
|
||||||
s:option(Value, "check_interval").default = 10
|
s:option(Value, "check_interval", translate("Check for changed IP every")).default = 10
|
||||||
unit = s:option(ListValue, "check_unit")
|
unit = s:option(ListValue, "check_unit", translate("Check-Time unit"))
|
||||||
unit.default = "minutes"
|
unit.default = "minutes"
|
||||||
unit:value("minutes", "min")
|
unit:value("minutes", "min")
|
||||||
unit:value("hours", "h")
|
unit:value("hours", "h")
|
||||||
|
|
||||||
s:option(Value, "force_interval").default = 72
|
s:option(Value, "force_interval", translate("Force update every")).default = 72
|
||||||
unit = s:option(ListValue, "force_unit")
|
unit = s:option(ListValue, "force_unit", translate("Force-Time unit"))
|
||||||
unit.default = "hours"
|
unit.default = "hours"
|
||||||
unit:value("minutes", "min")
|
unit:value("minutes", "min")
|
||||||
unit:value("hours", "h")
|
unit:value("hours", "h")
|
||||||
|
|
|
@ -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."))
|
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 = m:section(NamedSection, "config", "upnpd", "")
|
||||||
|
s.addremove = false
|
||||||
|
|
||||||
e = s:option(Flag, "enabled", translate("enable"))
|
e = s:option(Flag, "enabled", translate("enable"))
|
||||||
e.rmempty = false
|
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"
|
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
|
||||||
end
|
end
|
||||||
|
|
||||||
s:option(Flag, "secure_mode").rmempty = true
|
s:option(Flag, "secure_mode", translate("Enable secure mode")).rmempty = true
|
||||||
s:option(Flag, "log_output").rmempty = true
|
s:option(Flag, "log_output", translate("Log output")).rmempty = true
|
||||||
s:option(Value, "download", nil, "kByte/s").rmempty = true
|
s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
|
||||||
s:option(Value, "upload", nil, "kByte/s").rmempty = true
|
s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
|
@ -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."))
|
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 = m:section(NamedSection, "config", "upnpd", "")
|
||||||
|
s.addremove = false
|
||||||
|
|
||||||
e = s:option(Flag, "enabled", translate("enable"))
|
e = s:option(Flag, "enabled", translate("enable"))
|
||||||
e.rmempty = false
|
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"
|
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
|
||||||
end
|
end
|
||||||
|
|
||||||
s:option(Value, "download", nil, "kByte/s").rmempty = true
|
s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true
|
||||||
s:option(Value, "upload", nil, "kByte/s").rmempty = true
|
s:option(Value, "upload", translate("Uplink"), "kByte/s").rmempty = true
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
|
@ -53,5 +53,5 @@ msgstr "Force-Time unit"
|
||||||
|
|
||||||
#. Custom Update-URL
|
#. Custom Update-URL
|
||||||
#: applications/luci-ddns/luasrc/i18n/ddns.en.lua:8
|
#: applications/luci-ddns/luasrc/i18n/ddns.en.lua:8
|
||||||
msgid "ddns_service_updateurl"
|
msgid "Custom Update-URL"
|
||||||
msgstr "Custom Update-URL"
|
msgstr "Custom Update-URL"
|
||||||
|
|
|
@ -52,5 +52,5 @@ msgstr "Downlink"
|
||||||
|
|
||||||
#. Uplink
|
#. Uplink
|
||||||
#: applications/luci-upnp/luasrc/i18n/upnp.en.lua:7
|
#: applications/luci-upnp/luasrc/i18n/upnp.en.lua:7
|
||||||
msgid "upnpd_config_upload"
|
msgid "Uplink"
|
||||||
msgstr "Uplink"
|
msgstr "Uplink"
|
||||||
|
|
Loading…
Reference in a new issue