Skip to content
Snippets Groups Projects
Commit 3ad5937b authored by Karsten's avatar Karsten Committed by kb-light
Browse files

gluon-web-network: make 'PoE Power Port[0-9]' translatable (#1173)

(cherry picked from commit 35237c2c)
parent 7e9627c5
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,9 @@ msgstr "Deaktiviert" ...@@ -22,6 +22,9 @@ msgstr "Deaktiviert"
msgid "Enable PoE Passthrough" msgid "Enable PoE Passthrough"
msgstr "PoE-Passthrough aktivieren" msgstr "PoE-Passthrough aktivieren"
msgid "Enable PoE Power Port %s"
msgstr "PoE-Ausgabe auf Port %s aktivieren"
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "Mesh auf dem LAN-Port aktivieren" msgstr "Mesh auf dem LAN-Port aktivieren"
......
...@@ -22,6 +22,9 @@ msgstr "Désactivé" ...@@ -22,6 +22,9 @@ msgstr "Désactivé"
msgid "Enable PoE Passthrough" msgid "Enable PoE Passthrough"
msgstr "" msgstr ""
msgid "Enable PoE Power Port %s"
msgstr ""
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "Activer le réseau MESH sur le port LAN" msgstr "Activer le réseau MESH sur le port LAN"
......
...@@ -13,6 +13,9 @@ msgstr "" ...@@ -13,6 +13,9 @@ msgstr ""
msgid "Enable PoE Passthrough" msgid "Enable PoE Passthrough"
msgstr "" msgstr ""
msgid "Enable PoE Power Port %s"
msgstr ""
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "" msgstr ""
......
...@@ -110,7 +110,15 @@ uci:foreach("system", "gpio_switch", function(s) ...@@ -110,7 +110,15 @@ uci:foreach("system", "gpio_switch", function(s)
if not section then if not section then
section = f:section(Section) section = f:section(Section)
end end
local poe = section:option(Flag, s[".name"], translate("Enable " .. s.name))
local port = s.name:match("^PoE Power Port(%d*)$")
local name
if port then
name = translatef("Enable PoE Power Port %s", port)
else
name = translate("Enable " .. s.name)
end
local poe = section:option(Flag, s[".name"], name)
poe.default = uci:get_bool("system", s[".name"], "value") poe.default = uci:get_bool("system", s[".name"], "value")
function poe:write(data) function poe:write(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment