summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.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/iptables.lua
parent9ed5a0d6fa01962d97333e5ba8c57c3e008410f2 (diff)
applications/luci-statistics: fix translations of cbi models and controller
Diffstat (limited to 'applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua')
-rw-r--r--applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua40
1 files changed, 27 insertions, 13 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
index 686d0088cb..f353d8b533 100644
--- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
+++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
@@ -25,27 +25,38 @@ for i, rule in ipairs( ip:find() ) do
end
-m = Map("luci_statistics")
+m = Map("luci_statistics",
+ translate("Iptables Plugin Configuration"),
+ translate(
+ "The iptables plugin will monitor selected firewall rules and " ..
+ "collect informations about processed bytes and packets per rule."
+ ))
-- collectd_iptables config section
s = m:section( NamedSection, "collectd_iptables", "luci_statistics" )
-- collectd_iptables.enable
-enable = s:option( Flag, "enable" )
+enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
-- collectd_iptables_match config section (Chain directives)
-rule = m:section( TypedSection, "collectd_iptables_match" )
+rule = m:section( TypedSection, "collectd_iptables_match",
+ translate("Add matching rule"),
+ translate(
+ "Here you can define various criteria by which the monitored " ..
+ "iptables rules are selected."
+ ))
rule.addremove = true
rule.anonymous = true
-- collectd_iptables_match.name
-rule_table = rule:option( Value, "name" )
+rule_table = rule:option( Value, "name",
+ translate("Name of the rule"), translate("max. 16 chars") )
-- collectd_iptables_match.table
-rule_table = rule:option( ListValue, "table" )
+rule_table = rule:option( ListValue, "table", translate("Table") )
rule_table.default = "filter"
rule_table.rmempty = true
rule_table.optional = true
@@ -56,7 +67,7 @@ rule_table:value("mangle")
-- collectd_iptables_match.chain
-rule_chain = rule:option( ListValue, "chain" )
+rule_chain = rule:option( ListValue, "chain", translate("Chain") )
rule_chain.rmempty = true
rule_chain.optional = true
rule_chain:value("")
@@ -67,7 +78,7 @@ end
-- collectd_iptables_match.target
-rule_target = rule:option( ListValue, "target" )
+rule_target = rule:option( ListValue, "target", translate("Action (target)") )
rule_target.rmempty = true
rule_target.optional = true
rule_target:value("")
@@ -78,7 +89,7 @@ end
-- collectd_iptables_match.protocol
-rule_protocol = rule:option( ListValue, "protocol" )
+rule_protocol = rule:option( ListValue, "protocol", translate("Network protocol") )
rule_protocol.rmempty = true
rule_protocol.optional = true
rule_protocol:value("")
@@ -87,29 +98,32 @@ rule_protocol:value("udp")
rule_protocol:value("icmp")
-- collectd_iptables_match.source
-rule_source = rule:option( Value, "source" )
+rule_source = rule:option( Value, "source", translate("Source ip range") )
rule_source.default = "0.0.0.0/0"
rule_source.rmempty = true
rule_source.optional = true
-- collectd_iptables_match.destination
-rule_destination = rule:option( Value, "destination" )
+rule_destination = rule:option( Value, "destination", translate("Destination ip range") )
rule_destination.default = "0.0.0.0/0"
rule_destination.rmempty = true
rule_destination.optional = true
-- collectd_iptables_match.inputif
-rule_inputif = rule:option( Value, "inputif" )
+rule_inputif = rule:option( Value, "inputif",
+ translate("Incoming interface"), translate("e.g. br-lan") )
rule_inputif.rmempty = true
rule_inputif.optional = true
-- collectd_iptables_match.outputif
-rule_outputif = rule:option( Value, "outputif" )
+rule_outputif = rule:option( Value, "outputif",
+ translate("Outgoing interface"), translate("e.g. br-ff") )
rule_outputif.rmempty = true
rule_outputif.optional = true
-- collectd_iptables_match.options
-rule_options = rule:option( Value, "options" )
+rule_options = rule:option( Value, "options",
+ translate("Options"), translate("e.g. reject-with tcp-reset") )
rule_options.rmempty = true
rule_options.optional = true