fw: correct capitalization of some strings
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / zones.lua
index d9f5ce6..edb82a9 100644 (file)
@@ -11,13 +11,21 @@ You may obtain a copy of the License at
 
 $Id$
 ]]--
+
+local nw = require "luci.model.network"
+local fw = require "luci.model.firewall"
+
 require("luci.tools.webadmin")
 m = Map("firewall", translate("Firewall"), translate("The firewall creates zones over your network interfaces to control network traffic flow."))
 
+fw.init(m.uci)
+nw.init(m.uci)
+
 s = m:section(TypedSection, "defaults")
 s.anonymous = true
+s.addremove = false
 
-s:option(Flag, "syn_flood")
+s:option(Flag, "syn_flood", translate("Enable SYN-flood protection"))
 
 local di = s:option(Flag, "drop_invalid", translate("Drop invalid packets"))
 di.rmempty = false
@@ -26,9 +34,9 @@ function di.cfgvalue(...)
 end
 
 p = {}
-p[1] = s:option(ListValue, "input")
-p[2] = s:option(ListValue, "output")
-p[3] = s:option(ListValue, "forward")
+p[1] = s:option(ListValue, "input", translate("Input"))
+p[2] = s:option(ListValue, "output", translate("Output"))
+p[3] = s:option(ListValue, "forward", translate("Forward"))
 
 for i, v in ipairs(p) do
        v:value("REJECT", translate("reject"))
@@ -46,9 +54,9 @@ name = s:option(Value, "name", translate("Name"))
 name.size = 8
 
 p = {}
-p[1] = s:option(ListValue, "input")
-p[2] = s:option(ListValue, "output")
-p[3] = s:option(ListValue, "forward")
+p[1] = s:option(ListValue, "input", translate("Input"))
+p[2] = s:option(ListValue, "output", translate("Output"))
+p[3] = s:option(ListValue, "forward", translate("Forward"))
 
 for i, v in ipairs(p) do
        v:value("REJECT", translate("reject"))
@@ -56,10 +64,12 @@ for i, v in ipairs(p) do
        v:value("ACCEPT", translate("accept"))
 end
 
-s:option(Flag, "masq")
+s:option(Flag, "masq", translate("Masquerading"))
+s:option(Flag, "mtu_fix", translate("MSS clamping"))
 
-net = s:option(MultiValue, "network")
-net.widget = "select"
+net = s:option(MultiValue, "network", translate("Network"))
+net.template = "cbi/network_netlist"
+net.widget = "checkbox"
 net.rmempty = true
 luci.tools.webadmin.cbi_add_networks(net)