Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment