luci-proto-ppp: add translation to ipv6 handling
If there is no translation set, then on material theme the dropdown
selection displaced. To fix this add an translation to this dropdown.
The commit also changes source code whitespace shifting.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 54455719e5
)
This commit is contained in:
parent
e86fedb7dd
commit
e1e3e238b0
4 changed files with 28 additions and 28 deletions
|
@ -18,13 +18,13 @@ password = section:taboption("general", Value, "password", translate("PAP/CHAP p
|
|||
password.password = true
|
||||
|
||||
if luci.model.network:has_ipv6() then
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6")
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6",
|
||||
translate("Obtain IPv6-Address"),
|
||||
translate("Enable IPv6 negotiation on the PPP link"))
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
end
|
||||
|
||||
defaultroute = section:taboption("advanced", Flag, "defaultroute",
|
||||
|
|
|
@ -30,13 +30,13 @@ password.password = true
|
|||
|
||||
|
||||
if luci.model.network:has_ipv6() then
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6")
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6",
|
||||
translate("Obtain IPv6-Address"),
|
||||
translate("Enable IPv6 negotiation on the PPP link"))
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -36,13 +36,13 @@ password.password = true
|
|||
|
||||
|
||||
if luci.model.network:has_ipv6() then
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6")
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6",
|
||||
translate("Obtain IPv6-Address"),
|
||||
translate("Enable IPv6 negotiation on the PPP link"))
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -30,13 +30,13 @@ service.placeholder = translate("auto")
|
|||
|
||||
|
||||
if luci.model.network:has_ipv6() then
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6")
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
|
||||
ipv6 = section:taboption("advanced", ListValue, "ipv6",
|
||||
translate("Obtain IPv6-Address"),
|
||||
translate("Enable IPv6 negotiation on the PPP link"))
|
||||
ipv6:value("auto", translate("Automatic"))
|
||||
ipv6:value("0", translate("Disabled"))
|
||||
ipv6:value("1", translate("Manual"))
|
||||
ipv6.default = "auto"
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue