diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-28 04:19:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-28 04:19:38 +0000 |
commit | 466298351d8da9650c678df903f96422bf3779a9 (patch) | |
tree | 58c70700e2aa68f8d986bad1c67130a8968b02e8 | |
parent | ee0ef6df98a0d3ca732639dfc4722a6ef39504a3 (diff) |
applications/luci_statistics: add missing translations to cbi models
8 files changed, 16 insertions, 16 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua index be7ab0c5e..1a3245fc0 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua @@ -46,7 +46,7 @@ fstypes.optional = true fstypes:depends( "enable", 1 ) -- collectd_df.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected" ) +ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") ) ignoreselected.default = 0 ignoreselected:depends( "enable", 1 ) diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua index 0dfa1ba97..7592b4440 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua @@ -34,7 +34,7 @@ devices.rmempty = true devices:depends( "enable", 1 ) -- collectd_disk.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected" ) +ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") ) ignoreselected.default = 0 ignoreselected:depends( "enable", 1 ) diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua index bfaeb423c..28d9e5de3 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua @@ -31,7 +31,7 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_dns.interfaces (Interface) -interfaces = s:option( MultiValue, "Interfaces" ) +interfaces = s:option( MultiValue, "Interfaces", translate("Monitor interfaces") ) interfaces.widget = "select" interfaces.size = 5 interfaces:depends( "enable", 1 ) diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua index 37d2cdf46..c5733d8cf 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua @@ -31,19 +31,19 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_email.socketfile (SocketFile) -socketfile = s:option( Value, "SocketFile" ) +socketfile = s:option( Value, "SocketFile", translate("Socket file") ) socketfile.default = "/var/run/collect-email.sock" socketfile:depends( "enable", 1 ) -- collectd_email.socketgroup (SocketGroup) -socketgroup = s:option( Value, "SocketGroup" ) +socketgroup = s:option( Value, "SocketGroup", translate("Socket group") ) socketgroup.default = "nobody" socketgroup.rmempty = true socketgroup.optional = true socketgroup:depends( "enable", 1 ) -- collectd_email.socketperms (SocketPerms) -socketperms = s:option( Value, "SocketPerms" ) +socketperms = s:option( Value, "SocketPerms", translate("Socket permissions") ) socketperms.default = "0770" socketperms.rmempty = true socketperms.optional = true diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua index 7609f2458..2811c3d0b 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua @@ -41,17 +41,17 @@ exec.addremove = true exec.anonymous = true -- collectd_exec_input.cmdline -exec_cmdline = exec:option( Value, "cmdline" ) +exec_cmdline = exec:option( Value, "cmdline", translate("Command line") ) exec_cmdline.default = "/usr/bin/stat-dhcpusers" -- collectd_exec_input.cmdline -exec_cmduser = exec:option( Value, "cmduser" ) +exec_cmduser = exec:option( Value, "cmduser", translate("Run as user") ) exec_cmduser.default = "nobody" exec_cmduser.rmempty = true exec_cmduser.optional = true -- collectd_exec_input.cmdline -exec_cmdgroup = exec:option( Value, "cmdgroup" ) +exec_cmdgroup = exec:option( Value, "cmdgroup", translate("Run as group") ) exec_cmdgroup.default = "nogroup" exec_cmdgroup.rmempty = true exec_cmdgroup.optional = true @@ -70,17 +70,17 @@ notify.addremove = true notify.anonymous = true -- collectd_notify_input.cmdline -notify_cmdline = notify:option( Value, "cmdline" ) +notify_cmdline = notify:option( Value, "cmdline", translate("Command line") ) notify_cmdline.default = "/usr/bin/stat-dhcpusers" -- collectd_notify_input.cmdline -notify_cmduser = notify:option( Value, "cmduser" ) +notify_cmduser = notify:option( Value, "cmduser", translate("Run as user") ) notify_cmduser.default = "nobody" notify_cmduser.rmempty = true notify_cmduser.optional = true -- collectd_notify_input.cmdline -notify_cmdgroup = notify:option( Value, "cmdgroup" ) +notify_cmdgroup = notify:option( Value, "cmdgroup", translate("Run as group") ) notify_cmdgroup.default = "nogroup" notify_cmdgroup.rmempty = true notify_cmdgroup.optional = true diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua index 8e34e72be..dbb3e9dc0 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua @@ -31,7 +31,7 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 -- collectd_interface.interfaces (Interface) -interfaces = s:option( MultiValue, "Interfaces" ) +interfaces = s:option( MultiValue, "Interfaces", translate("Monitor interfaces") ) interfaces.widget = "select" interfaces.size = 5 interfaces:depends( "enable", 1 ) @@ -40,7 +40,7 @@ for k, v in pairs(luci.sys.net.devices()) do end -- collectd_interface.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected" ) +ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") ) ignoreselected.default = 0 ignoreselected:depends( "enable", 1 ) diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua index ea5f716e0..d6aa2e96c 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua @@ -34,7 +34,7 @@ irqs.optional = true irqs:depends( "enable", 1 ) -- collectd_irq.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected" ) +ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") ) ignoreselected.default = 0 ignoreselected.optional = "true" ignoreselected:depends( "enable", 1 ) diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua index 7447668b2..3417d0902 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua @@ -88,7 +88,7 @@ for i, v in ipairs(devices) do end -- collectd_netlink.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected" ) +ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") ) ignoreselected.default = 0 ignoreselected:depends( "enable", 1 ) |