Merge pull request #793 from remakeelectric/rme-master-tweaks

wifi_add minor usability tweaks
This commit is contained in:
Jo-Philipp Wich 2016-10-28 16:17:05 +02:00 committed by GitHub
commit 98e12fcebb

View file

@ -16,7 +16,7 @@ if not iw then
return return
end end
m = SimpleForm("network", translate("Join Network: Settings")) m = SimpleForm("network", translate("Joining Network: %q", http.formvalue("join")))
m.cancel = translate("Back to scan results") m.cancel = translate("Back to scan results")
m.reset = false m.reset = false
@ -44,9 +44,9 @@ m.hidden = {
if iw and iw.mbssid_support then if iw and iw.mbssid_support then
replace = m:field(Flag, "replace", translate("Replace wireless configuration"), replace = m:field(Flag, "replace", translate("Replace wireless configuration"),
translate("An additional network will be created if you leave this unchecked.")) translate("An additional network will be created if you leave this checked."))
function replace.cfgvalue() return "1" end function replace.cfgvalue() return "0" end
else else
replace = m:field(DummyValue, "replace", translate("Replace wireless configuration")) replace = m:field(DummyValue, "replace", translate("Replace wireless configuration"))
replace.default = translate("The hardware is not multi-SSID capable and the existing " .. replace.default = translate("The hardware is not multi-SSID capable and the existing " ..