[PATCH 1/2] firewall: add description strings
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / miniportfw.lua
index ed849f4..44b15f2 100644 (file)
@@ -12,7 +12,9 @@ You may obtain a copy of the License at
 $Id$
 ]]--
 require("luci.sys")
-m = Map("firewall", translate("Port forwarding"), translate("Port forwarding allows to provide network services in the internal network to an external network."))
+m = Map("firewall", translate("Port forwarding"),
+       translate("Port forwarding allows to provide network services in " ..
+               "the internal network to an external network."))
 
 
 s = m:section(TypedSection, "redirect", "")
@@ -23,7 +25,7 @@ s.template  = "cbi/tblsection"
 s.addremove = true
 s.anonymous = true
 
-name = s:option(Value, "_name", translate("Name"), translate(" (optional)"))
+name = s:option(Value, "_name", translate("Name"), translate("(optional)"))
 name.size = 10
 
 proto = s:option(ListValue, "proto", translate("Protocol"))
@@ -31,15 +33,16 @@ proto:value("tcp", "TCP")
 proto:value("udp", "UDP")
 proto:value("tcpudp", "TCP+UDP")
 
-dport = s:option(Value, "src_dport")
+dport = s:option(Value, "src_dport", translate("External port"))
 dport.size = 5
 
-to = s:option(Value, "dest_ip")
+to = s:option(Value, "dest_ip", translate("Internal IP address"))
 for i, dataset in ipairs(luci.sys.net.arptable()) do
        to:value(dataset["IP address"])
 end
 
-toport = s:option(Value, "dest_port")
+toport = s:option(Value, "dest_port", translate("Internal port"),
+       translate("(optional)"))
 toport.size = 5
 
 return m