[PATCH 1/2] firewall: add description strings
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / trule.lua
index be2e685..57e1427 100644 (file)
@@ -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")