A few smaller usability improvements
This commit is contained in:
parent
5c419acf92
commit
b0f7ffe237
4 changed files with 44 additions and 13 deletions
|
@ -144,6 +144,10 @@ a_w_radiusport = "Radius-Port"
|
|||
a_w_apisolation = "AP-Isolation"
|
||||
a_w_apisolation1 = "Prevents Client to Client communication"
|
||||
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_dnsmasq_domainneeded = "Domain required"
|
||||
|
@ -233,4 +237,12 @@ a_n_r_target1 = "host-IP or network"
|
|||
a_n_r_netmask1 = "if target is a 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"
|
|
@ -141,6 +141,10 @@ Die Unterstützung von virtuellen Adaptern ermöglicht auch den Einsatz als Wire
|
|||
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
|
||||
Kommunikation.]]
|
||||
a_w_ap = "Access Point"
|
||||
a_w_adhoc = "Ad-Hoc"
|
||||
a_w_client = "Client"
|
||||
a_w_wds = "WDS"
|
||||
accept = [[Annehmen]]
|
||||
aliases = [[Aliasse]]
|
||||
bitrate = [[Bitrate]]
|
||||
|
@ -246,4 +250,12 @@ uci_applied = [[Die folgenden Änderungen wurden übernommen]]
|
|||
uci_reverted = [[Die folgenden Änderungen wurden verworfen]]
|
||||
|
||||
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"
|
|
@ -35,10 +35,10 @@ luci.model.uci.foreach("network", "interface",
|
|||
end)
|
||||
|
||||
mode = s:option(ListValue, "mode", translate("mode"))
|
||||
mode:value("ap", "Access Point")
|
||||
mode:value("adhoc", "Ad-Hoc")
|
||||
mode:value("sta", "Client")
|
||||
mode:value("wds", "WDS")
|
||||
mode:value("ap", translate("a_w_ap"))
|
||||
mode:value("adhoc", translate("a_w_adhoc"))
|
||||
mode:value("sta", translate("a_w_client"))
|
||||
mode:value("wds", translate("a_w_wds"))
|
||||
|
||||
s:option(Value, "bssid", "BSSID").optional = true
|
||||
|
||||
|
|
|
@ -50,19 +50,26 @@ else
|
|||
end
|
||||
|
||||
mode = s:option(ListValue, "mode", translate("mode"))
|
||||
mode:value("ap", "Access Point")
|
||||
mode:value("adhoc", "Ad-Hoc")
|
||||
mode:value("sta", "Client")
|
||||
mode:value("ap", translate("m_w_ap"))
|
||||
mode:value("adhoc", translate("m_w_adhoc"))
|
||||
mode:value("sta", translate("m_w_client"))
|
||||
|
||||
function mode.write(self, section, value)
|
||||
if value == "sta" then
|
||||
-- ToDo: Move this away
|
||||
if not luci.model.uci.get("network", "wan") then
|
||||
luci.model.uci.set("network", "wan", "interface")
|
||||
luci.model.uci.set("network", "wan", "proto", "none")
|
||||
end
|
||||
|
||||
luci.model.uci.set("network", "wan", "type", "bridge")
|
||||
luci.model.uci.set("wireless", section, "network", "wan")
|
||||
luci.model.uci.save("network")
|
||||
|
||||
self.map:set(section, "network", "wan")
|
||||
else
|
||||
luci.model.uci.delete("network", "wan", "type")
|
||||
luci.model.uci.set("wireless", section, "network", "lan")
|
||||
self.map:set(section, "network", "lan")
|
||||
end
|
||||
luci.model.uci.save("network")
|
||||
|
||||
return ListValue.write(self, section, value)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue