|
@@ -18,35 +18,33 @@ local wan = uci:get_all("network", "wan")
|
|
|
local wan6 = uci:get_all("network", "wan6")
|
|
|
local dns = uci:get_first("gluon-wan-dnsmasq", "static")
|
|
|
|
|
|
-local f = SimpleForm("portconfig", "WAN-Verbindung")
|
|
|
+local f = SimpleForm("portconfig", translate("WAN connection"))
|
|
|
f.template = "admin/expertmode"
|
|
|
-f.submit = "Speichern"
|
|
|
-f.reset = "Zurücksetzen"
|
|
|
|
|
|
local s
|
|
|
local o
|
|
|
|
|
|
s = f:section(SimpleSection, nil, nil)
|
|
|
|
|
|
-o = s:option(ListValue, "ipv4", "IPv4")
|
|
|
-o:value("dhcp", "Automatisch (DHCP)")
|
|
|
-o:value("static", "Statisch")
|
|
|
-o:value("none", "Deaktiviert")
|
|
|
+o = s:option(ListValue, "ipv4", translate("IPv4"))
|
|
|
+o:value("dhcp", translate("Automatic (DHCP)"))
|
|
|
+o:value("static", translate("Static"))
|
|
|
+o:value("none", translate("Disabled"))
|
|
|
o.default = wan.proto
|
|
|
|
|
|
-o = s:option(Value, "ipv4_addr", "IP-Adresse")
|
|
|
+o = s:option(Value, "ipv4_addr", translate("IP address"))
|
|
|
o:depends("ipv4", "static")
|
|
|
o.value = wan.ipaddr
|
|
|
o.datatype = "ip4addr"
|
|
|
o.rmempty = false
|
|
|
|
|
|
-o = s:option(Value, "ipv4_netmask", "Netzmaske")
|
|
|
+o = s:option(Value, "ipv4_netmask", translate("Netmask"))
|
|
|
o:depends("ipv4", "static")
|
|
|
o.value = wan.netmask or "255.255.255.0"
|
|
|
o.datatype = "ip4addr"
|
|
|
o.rmempty = false
|
|
|
|
|
|
-o = s:option(Value, "ipv4_gateway", "Gateway")
|
|
|
+o = s:option(Value, "ipv4_gateway", translate("Gateway"))
|
|
|
o:depends("ipv4", "static")
|
|
|
o.value = wan.gateway
|
|
|
o.datatype = "ip4addr"
|
|
@@ -55,19 +53,19 @@ o.rmempty = false
|
|
|
|
|
|
s = f:section(SimpleSection, nil, nil)
|
|
|
|
|
|
-o = s:option(ListValue, "ipv6", "IPv6")
|
|
|
-o:value("dhcpv6", "Automatisch (RA/DHCPv6)")
|
|
|
-o:value("static", "Statisch")
|
|
|
-o:value("none", "Deaktiviert")
|
|
|
+o = s:option(ListValue, "ipv6", translate("IPv6"))
|
|
|
+o:value("dhcpv6", translate("Automatic (RA/DHCPv6)"))
|
|
|
+o:value("static", translate("Static"))
|
|
|
+o:value("none", translate("Disabled"))
|
|
|
o.default = wan6.proto
|
|
|
|
|
|
-o = s:option(Value, "ipv6_addr", "IP-Adresse")
|
|
|
+o = s:option(Value, "ipv6_addr", translate("IP address"))
|
|
|
o:depends("ipv6", "static")
|
|
|
o.value = wan6.ip6addr
|
|
|
o.datatype = "ip6addr"
|
|
|
o.rmempty = false
|
|
|
|
|
|
-o = s:option(Value, "ipv6_gateway", "Gateway")
|
|
|
+o = s:option(Value, "ipv6_gateway", translate("Gateway"))
|
|
|
o:depends("ipv6", "static")
|
|
|
o.value = wan6.ip6gw
|
|
|
o.datatype = "ip6addr"
|
|
@@ -77,14 +75,14 @@ o.rmempty = false
|
|
|
if dns then
|
|
|
s = f:section(SimpleSection, nil, nil)
|
|
|
|
|
|
- o = s:option(DynamicList, "dns", "Statische DNS-Server")
|
|
|
+ o = s:option(DynamicList, "dns", translate("Static DNS servers"))
|
|
|
o:write(nil, uci:get("gluon-wan-dnsmasq", dns, "server"))
|
|
|
o.datatype = "ipaddr"
|
|
|
end
|
|
|
|
|
|
s = f:section(SimpleSection, nil, nil)
|
|
|
|
|
|
-o = s:option(Flag, "mesh_wan", "Mesh auf dem WAN-Port aktivieren")
|
|
|
+o = s:option(Flag, "mesh_wan", translate("Enable meshing on the WAN interface"))
|
|
|
o.default = uci:get_bool("network", "mesh_wan", "auto") and o.enabled or o.disabled
|
|
|
o.rmempty = false
|
|
|
|