Skip to content
Snippets Groups Projects
Commit d46c5f89 authored by lemoer's avatar lemoer
Browse files

gluon-web-network: show pretty interface names

parent f0b2e632
No related branches found
No related tags found
No related merge requests found
...@@ -28,15 +28,6 @@ msgstr "PoE-Passthrough aktivieren" ...@@ -28,15 +28,6 @@ msgstr "PoE-Passthrough aktivieren"
msgid "Enable PoE Power Port %s" msgid "Enable PoE Power Port %s"
msgstr "PoE-Ausgabe auf Port %s aktivieren" msgstr "PoE-Ausgabe auf Port %s aktivieren"
msgid "Enable meshing on the Ethernet interface"
msgstr "Mesh auf dem Ethernet-Port aktivieren"
msgid "Enable meshing on the LAN interface"
msgstr "Mesh auf dem LAN-Port aktivieren"
msgid "Enable meshing on the WAN interface"
msgstr "Mesh auf dem WAN-Port aktivieren"
msgid "Gateway" msgid "Gateway"
msgstr "Gateway" msgstr "Gateway"
...@@ -49,6 +40,12 @@ msgstr "IPv4" ...@@ -49,6 +40,12 @@ msgstr "IPv4"
msgid "IPv6" msgid "IPv6"
msgstr "IPv6" msgstr "IPv6"
msgid "Interface"
msgstr "Interface"
msgid "LAN Interfaces"
msgstr "LAN-Interfaces"
msgid "Netmask" msgid "Netmask"
msgstr "Netzmaske" msgstr "Netzmaske"
...@@ -61,5 +58,8 @@ msgstr "Statisch" ...@@ -61,5 +58,8 @@ msgstr "Statisch"
msgid "Static DNS servers" msgid "Static DNS servers"
msgstr "Statische DNS-Server" msgstr "Statische DNS-Server"
msgid "WAN Interfaces"
msgstr "WAN-Interfaces"
msgid "WAN connection" msgid "WAN connection"
msgstr "WAN-Verbindung" msgstr "WAN-Verbindung"
...@@ -28,15 +28,6 @@ msgstr "" ...@@ -28,15 +28,6 @@ msgstr ""
msgid "Enable PoE Power Port %s" msgid "Enable PoE Power Port %s"
msgstr "" msgstr ""
msgid "Enable meshing on the Ethernet interface"
msgstr ""
msgid "Enable meshing on the LAN interface"
msgstr "Activer le réseau MESH sur le port LAN"
msgid "Enable meshing on the WAN interface"
msgstr "Activer le réseau MESH sur les ports WAN"
msgid "Gateway" msgid "Gateway"
msgstr "Passerelle" msgstr "Passerelle"
......
...@@ -19,15 +19,6 @@ msgstr "" ...@@ -19,15 +19,6 @@ msgstr ""
msgid "Enable PoE Power Port %s" msgid "Enable PoE Power Port %s"
msgstr "" msgstr ""
msgid "Enable meshing on the Ethernet interface"
msgstr ""
msgid "Enable meshing on the LAN interface"
msgstr ""
msgid "Enable meshing on the WAN interface"
msgstr ""
msgid "Gateway" msgid "Gateway"
msgstr "" msgstr ""
...@@ -40,6 +31,12 @@ msgstr "" ...@@ -40,6 +31,12 @@ msgstr ""
msgid "IPv6" msgid "IPv6"
msgstr "" msgstr ""
msgid "Interface"
msgstr ""
msgid "LAN Interfaces"
msgstr ""
msgid "Netmask" msgid "Netmask"
msgstr "" msgstr ""
...@@ -52,5 +49,8 @@ msgstr "" ...@@ -52,5 +49,8 @@ msgstr ""
msgid "Static DNS servers" msgid "Static DNS servers"
msgstr "" msgstr ""
msgid "WAN Interfaces"
msgstr ""
msgid "WAN connection" msgid "WAN connection"
msgstr "" msgstr ""
...@@ -75,12 +75,18 @@ end ...@@ -75,12 +75,18 @@ end
s = f:section(Section) s = f:section(Section)
local pretty_ifnames = {
["/wan"] = translate("WAN Interfaces"),
["/single"] = translate("Interface"),
["/lan"] = translate("LAN Interfaces")
}
uci:foreach('gluon', 'interface', function(config) uci:foreach('gluon', 'interface', function(config)
local section_name = config['.name'] local section_name = config['.name']
local ifaces = s:option(MultiListValue, section_name, config.name) local ifaces = s:option(MultiListValue, section_name, pretty_ifnames[config.name] or config.name)
ifaces.orientation = 'horizontal' ifaces.orientation = 'horizontal'
ifaces:value('uplink', 'Uplink') -- TODO: Uplink and Client should be mutually exclusive. ifaces:value('uplink', 'Uplink')
ifaces:value('mesh', 'Mesh') ifaces:value('mesh', 'Mesh')
ifaces:value('client', 'Client') ifaces:value('client', 'Client')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment