From 466298351d8da9650c678df903f96422bf3779a9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 28 Nov 2011 04:19:38 +0000 Subject: [PATCH] applications/luci_statistics: add missing translations to cbi models --- .../luasrc/model/cbi/luci_statistics/df.lua | 2 +- .../luasrc/model/cbi/luci_statistics/disk.lua | 2 +- .../luasrc/model/cbi/luci_statistics/dns.lua | 2 +- .../luasrc/model/cbi/luci_statistics/email.lua | 6 +++--- .../luasrc/model/cbi/luci_statistics/exec.lua | 12 ++++++------ .../luasrc/model/cbi/luci_statistics/interface.lua | 4 ++-- .../luasrc/model/cbi/luci_statistics/irq.lua | 2 +- .../luasrc/model/cbi/luci_statistics/netlink.lua | 2 +- 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 be7ab0c5ec..1a3245fc04 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 0dfa1ba975..7592b44403 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 bfaeb423c2..28d9e5de33 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 37d2cdf467..c5733d8cf8 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 7609f24583..2811c3d0bb 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 8e34e72bed..dbb3e9dc06 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 ea5f716e09..d6aa2e96c3 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 7447668b21..3417d0902d 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 ) -- 2.30.2