Commit 29499e1e authored by Philippe's avatar Philippe

fix i18n and descriptions

parent 1602c14b
...@@ -11,11 +11,7 @@ msgstr "" ...@@ -11,11 +11,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "gluon-config-mode:zip-help" msgid "gluon-config-mode:zip-help"
"Some nice Text about the ZIP-Code " msgstr "Ein Netter Text warum die PLZ benötigt wird."
"and how it help for subnetting."
msgstr ""
"Ein Netter Text warum die PLZ benötigt "
"wird."
msgid "ZIP-Code" msgid "ZIP-Code"
msgstr "PLZ" msgstr "PLZ"
......
...@@ -2,8 +2,6 @@ msgid "" ...@@ -2,8 +2,6 @@ msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8" msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "gluon-config-mode:zip-help" msgid "gluon-config-mode:zip-help"
"Some nice Text about the ZIP-Code "
"and how it help for subnetting."
msgstr "" msgstr ""
msgid "ZIP-Code" msgid "ZIP-Code"
......
...@@ -6,10 +6,10 @@ local M = {} ...@@ -6,10 +6,10 @@ local M = {}
function M.section(form) function M.section(form)
local text = i18n.translate("gluon-config-mode:zip-help") local text = i18n.translate("gluon-config-mode:zip-help")
local fieldlabel = i18n.translate("ZIP-Code")
local s = form:section(cbi.SimpleSection, nil, text) local s = form:section(cbi.SimpleSection, nil, text)
local o = s:option(cbi.Value, "_zip", "ZIP-Code") local o = s:option(cbi.Value, "_zip", fieldlabel)
o.value = uci:get_first("gluon-node-info", "location", "zip") o.value = uci:get_first("gluon-node-info", "location", "zip")
o.rmempty = true o.rmempty = true
o.datatype = "float" o.datatype = "float"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment