Unverified Commit fabac0be authored by Flip's avatar Flip Committed by GitHub
Browse files

Merge pull request #3 from nrbffs/nrbffs/zip-fix-translations

gluon-config-mode-zip: i18n: fix translations
parents cb5fd4bb 8fe70a00
return function(form, uci)
local location = uci:get_first("gluon-node-info", "location")
local text = translate("gluon-config-mode:zip-help")
local site_i18n = i18n 'gluon-site'
local text = site_i18n.translate("gluon-config-mode:zip-help")
local s = form:section(Section, nil, text)
local o = s:option(Value, "zip", translate("ZIP-Code"), translatef("e.g. %s", "70499"))
local o = s:option(Value, "zip", site_i18n.translate("ZIP-Code"), site_i18n.translatef("e.g. %s", "70499"))
o.default = uci:get("gluon-node-info", location, "zip")
o.datatype = "uinteger"
o.optional = true
......@@ -14,4 +15,4 @@ return function(form, uci)
return {'gluon-node-info'}
\ No newline at end of file
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