A few smaller usability improvements

This commit is contained in:
Steven Barth 2008-07-18 08:24:42 +00:00
parent 5c419acf92
commit b0f7ffe237
4 changed files with 44 additions and 13 deletions

View file

@ -144,6 +144,10 @@ a_w_radiusport = "Radius-Port"
a_w_apisolation = "AP-Isolation" a_w_apisolation = "AP-Isolation"
a_w_apisolation1 = "Prevents Client to Client communication" a_w_apisolation1 = "Prevents Client to Client communication"
a_w_hideessid = "Hide ESSID" a_w_hideessid = "Hide ESSID"
a_w_ap = "Access Point"
a_w_adhoc = "Ad-Hoc"
a_w_client = "Client"
a_w_wds = "WDS"
dhcp_desc = "Dnsmasq is a combined DHCP-Server and DNS-Forwarder for NAT firewalls" dhcp_desc = "Dnsmasq is a combined DHCP-Server and DNS-Forwarder for NAT firewalls"
dhcp_dnsmasq_domainneeded = "Domain required" dhcp_dnsmasq_domainneeded = "Domain required"
@ -234,3 +238,11 @@ a_n_r_netmask1 = "if target is a network"
m_n_local = "Local Network" m_n_local = "Local Network"
m_n_inet = "Internet Connection" m_n_inet = "Internet Connection"
m_n_route = "Route"
m_n_brdige = "Bridge"
m_w_ap = "Provide (Access Point)"
m_w_adhoc = "Independent (Ad-Hoc)"
m_w_client = "Join (Client)"
m_w_wds = "Distributed (WDS)"
m_w_clientmode = "Clientmode"

View file

@ -141,6 +141,10 @@ Die Unterstützung von virtuellen Adaptern ermöglicht auch den Einsatz als Wire
mehreren Netzwerken gleichzeitig auf einem Gerät.]] mehreren Netzwerken gleichzeitig auf einem Gerät.]]
a_w_wifi3 = [[Es werden Managed, Client, Ad-Hoc und WDS-Modus unterstützt sowie WPA und WPA2-Verschlüsselung zur gesicherten a_w_wifi3 = [[Es werden Managed, Client, Ad-Hoc und WDS-Modus unterstützt sowie WPA und WPA2-Verschlüsselung zur gesicherten
Kommunikation.]] Kommunikation.]]
a_w_ap = "Access Point"
a_w_adhoc = "Ad-Hoc"
a_w_client = "Client"
a_w_wds = "WDS"
accept = [[Annehmen]] accept = [[Annehmen]]
aliases = [[Aliasse]] aliases = [[Aliasse]]
bitrate = [[Bitrate]] bitrate = [[Bitrate]]
@ -247,3 +251,11 @@ uci_reverted = [[Die folgenden Änderungen wurden verworfen]]
m_n_local = "Lokales Netz" m_n_local = "Lokales Netz"
m_n_inet = "Internetverbindung" m_n_inet = "Internetverbindung"
m_n_route = "Weiterleiten"
m_n_bridge = "Überbrücken"
m_w_ap = "Anbieten (Access Point)"
m_w_adhoc = "Unabhängig (Ad-Hoc)"
m_w_client = "Einklinken (Client)"
m_w_wds = "Verteilen (WDS)"
m_w_clientmode = "Verbindungsmodus"

View file

@ -35,10 +35,10 @@ luci.model.uci.foreach("network", "interface",
end) end)
mode = s:option(ListValue, "mode", translate("mode")) mode = s:option(ListValue, "mode", translate("mode"))
mode:value("ap", "Access Point") mode:value("ap", translate("a_w_ap"))
mode:value("adhoc", "Ad-Hoc") mode:value("adhoc", translate("a_w_adhoc"))
mode:value("sta", "Client") mode:value("sta", translate("a_w_client"))
mode:value("wds", "WDS") mode:value("wds", translate("a_w_wds"))
s:option(Value, "bssid", "BSSID").optional = true s:option(Value, "bssid", "BSSID").optional = true

View file

@ -50,19 +50,26 @@ else
end end
mode = s:option(ListValue, "mode", translate("mode")) mode = s:option(ListValue, "mode", translate("mode"))
mode:value("ap", "Access Point") mode:value("ap", translate("m_w_ap"))
mode:value("adhoc", "Ad-Hoc") mode:value("adhoc", translate("m_w_adhoc"))
mode:value("sta", "Client") mode:value("sta", translate("m_w_client"))
function mode.write(self, section, value) function mode.write(self, section, value)
if value == "sta" then if value == "sta" then
luci.model.uci.set("network", "wan", "type", "bridge") -- ToDo: Move this away
luci.model.uci.set("wireless", section, "network", "wan") if not luci.model.uci.get("network", "wan") then
else luci.model.uci.set("network", "wan", "interface")
luci.model.uci.delete("network", "wan", "type") luci.model.uci.set("network", "wan", "proto", "none")
luci.model.uci.set("wireless", section, "network", "lan")
end end
luci.model.uci.set("network", "wan", "type", "bridge")
luci.model.uci.save("network") luci.model.uci.save("network")
self.map:set(section, "network", "wan")
else
self.map:set(section, "network", "lan")
end
return ListValue.write(self, section, value) return ListValue.write(self, section, value)
end end