From 29499e1e31086495902acdf9cda27e02947907ae Mon Sep 17 00:00:00 2001 From: Flip Date: Sat, 18 Feb 2017 02:45:41 +0100 Subject: [PATCH] fix i18n and descriptions --- gluon-config-mode-zip/i18n/de.po | 6 +----- gluon-config-mode-zip/i18n/gluon-config-mode-zip.pot | 2 -- .../lib/gluon/config-mode/wizard/0450-geo-location.lua | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gluon-config-mode-zip/i18n/de.po b/gluon-config-mode-zip/i18n/de.po index fe34932..212a218 100644 --- a/gluon-config-mode-zip/i18n/de.po +++ b/gluon-config-mode-zip/i18n/de.po @@ -11,11 +11,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "gluon-config-mode:zip-help" -"Some nice Text about the ZIP-Code " -"and how it help for subnetting." -msgstr "" -"Ein Netter Text warum die PLZ benötigt " -"wird." +msgstr "Ein Netter Text warum die PLZ benötigt wird." msgid "ZIP-Code" msgstr "PLZ" diff --git a/gluon-config-mode-zip/i18n/gluon-config-mode-zip.pot b/gluon-config-mode-zip/i18n/gluon-config-mode-zip.pot index 64d409f..94d2986 100644 --- a/gluon-config-mode-zip/i18n/gluon-config-mode-zip.pot +++ b/gluon-config-mode-zip/i18n/gluon-config-mode-zip.pot @@ -2,8 +2,6 @@ msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" msgid "gluon-config-mode:zip-help" -"Some nice Text about the ZIP-Code " -"and how it help for subnetting." msgstr "" msgid "ZIP-Code" diff --git a/gluon-config-mode-zip/luasrc/lib/gluon/config-mode/wizard/0450-geo-location.lua b/gluon-config-mode-zip/luasrc/lib/gluon/config-mode/wizard/0450-geo-location.lua index 206a677..8bf5d3a 100644 --- a/gluon-config-mode-zip/luasrc/lib/gluon/config-mode/wizard/0450-geo-location.lua +++ b/gluon-config-mode-zip/luasrc/lib/gluon/config-mode/wizard/0450-geo-location.lua @@ -6,10 +6,10 @@ local M = {} function M.section(form) local text = i18n.translate("gluon-config-mode:zip-help") - + local fieldlabel = i18n.translate("ZIP-Code") 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.rmempty = true o.datatype = "float" -- GitLab