summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-13 20:42:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-13 20:42:26 +0000
commitf271588cd760680fab9b8864a080c749e21679ad (patch)
tree00b8039e3037652547a9e44d338c588b6ffa0059 /applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
parent9ed5a0d6fa01962d97333e5ba8c57c3e008410f2 (diff)
applications/luci-statistics: fix translations of cbi models and controller
Diffstat (limited to 'applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua')
-rw-r--r--applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua14
1 files changed, 11 insertions, 3 deletions
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 b2caa579a..37d2cdf46 100644
--- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
+++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
@@ -13,13 +13,21 @@ $Id$
]]--
-m = Map("luci_statistics")
+m = Map("luci_statistics",
+ translate("E-Mail Plugin Configuration"),
+ translate(
+ "The email plugin creates a unix socket which can be used " ..
+ "to transmit email-statistics to a running collectd daemon. " ..
+ "This plugin is primarily intended to be used in conjunction " ..
+ "with Mail::SpamAssasin::Plugin::Collectd but can be used in " ..
+ "other ways as well."
+ ))
-- collectd_email config section
s = m:section( NamedSection, "collectd_email", "luci_statistics" )
-- collectd_email.enable
-enable = s:option( Flag, "enable" )
+enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
-- collectd_email.socketfile (SocketFile)
@@ -42,7 +50,7 @@ socketperms.optional = true
socketperms:depends( "enable", 1 )
-- collectd_email.maxconns (MaxConns)
-maxconns = s:option( Value, "MaxConns" )
+maxconns = s:option( Value, "MaxConns", translate("Maximum allowed connections") )
maxconns.default = 5
maxconns.isinteger = true
maxconns.rmempty = true