summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-05 01:16:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-05 01:16:25 +0000
commit03c4a61b2ad1267bb0b37cc74badb7e6c44c6867 (patch)
treede93635d23196d4be07362fb7e046de3f5907f2a /applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
parent08ceafc2e965cef633ea918d6561e30cadf8ca95 (diff)
[PATCH 1/2] firewall: add description strings
The luci-fw application was lacking some important description strings. This adds them and updates the associated translation template.
Diffstat (limited to 'applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua')
-rw-r--r--applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
index be2e685eb9..57e1427e3b 100644
--- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
+++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
@@ -12,7 +12,11 @@ You may obtain a copy of the License at
$Id$
]]--
arg[1] = arg[1] or ""
-m = Map("firewall", translate("Advanced Rules"), translate("Advanced rules let you customize the firewall to your needs. Only new connections will be matched. Packets belonging to already open connections are automatically allowed to pass the firewall."))
+m = Map("firewall", translate("Advanced Rules"),
+ translate("Advanced rules let you customize the firewall to your " ..
+ "needs. Only new connections will be matched. Packets " ..
+ "belonging to already open connections are automatically " ..
+ "allowed to pass the firewall."))
s = m:section(NamedSection, arg[1], "rule", "")
s.anonymous = true
@@ -23,14 +27,14 @@ back.value = ""
back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "rule")
-name = s:option(Value, "_name", translate("Name")..translate(" (optional)"))
+name = s:option(Value, "_name", translate("Name").." "..translate("(optional)"))
name.rmempty = true
-iface = s:option(ListValue, "src", translate("Source"))
+iface = s:option(ListValue, "src", translate("Source zone"))
iface.rmempty = true
-oface = s:option(ListValue, "dest", translate("Destination"))
-oface:value("", translate("Device"))
+oface = s:option(ListValue, "dest", translate("Destination zone"))
+oface:value("", translate("any"))
oface.rmempty = true
luci.model.uci.cursor():foreach("firewall", "zone",
@@ -49,7 +53,7 @@ proto:value("icmp", "ICMP")
s:option(Value, "src_ip", translate("Source address")).optional = true
s:option(Value, "dest_ip", translate("Destination address")).optional = true
-s:option(Value, "src_mac", translate("Source MAC-Address")).optional = true
+s:option(Value, "src_mac", translate("Source MAC-address")).optional = true
sport = s:option(Value, "src_port", translate("Source port"))
sport:depends("proto", "tcp")