From 4361f5b762cd3a9e15506f10ca0df1b85e095b24 Mon Sep 17 00:00:00 2001 From: Andreas Ziegler Date: Wed, 27 Jun 2018 00:11:00 +0200 Subject: [PATCH] gluon-config-mode-geo-location: allow overriding geo location description text --- docs/site-example/i18n/de.po | 5 +++++ docs/site-example/i18n/en.po | 5 +++++ docs/site-example/i18n/fr.po | 4 ++++ docs/site-example/i18n/gluon-site.pot | 3 +++ docs/user/site.rst | 3 +++ .../lib/gluon/config-mode/wizard/0400-geo-location.lua | 2 +- 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/site-example/i18n/de.po b/docs/site-example/i18n/de.po index e4f59ecf..e09be7cd 100644 --- a/docs/site-example/i18n/de.po +++ b/docs/site-example/i18n/de.po @@ -80,3 +80,8 @@ msgstr "" msgid "gluon-config-mode:contact-note" msgstr "z.B. E-Mail oder Telefonnummer" + +msgid "gluon-config-mode:geo-location-help" +msgstr "" +"Um deinen Knoten auf der Karte anzeigen zu können, benötigen wir seine " +"Koordinaten. Hier hast du die Möglichkeit, diese zu hinterlegen." diff --git a/docs/site-example/i18n/en.po b/docs/site-example/i18n/en.po index 02d7f822..5839316f 100644 --- a/docs/site-example/i18n/en.po +++ b/docs/site-example/i18n/en.po @@ -74,3 +74,8 @@ msgstr "" msgid "gluon-config-mode:contact-note" msgstr "e.g. E-mail or phone number" + +msgid "gluon-config-mode:geo-location-help" +msgstr "" +"If you want the location of your node to be displayed on the map, you can " +"enter its coordinates here." diff --git a/docs/site-example/i18n/fr.po b/docs/site-example/i18n/fr.po index aed423e1..7a6f011a 100644 --- a/docs/site-example/i18n/fr.po +++ b/docs/site-example/i18n/fr.po @@ -75,3 +75,7 @@ msgstr "" msgid "gluon-config-mode:contact-note" msgstr "Ex : E-mail ou numéro de téléphone" + +msgid "gluon-config-mode:geo-location-help" +msgstr "" +"Pour Afficher votre nœud sur la Carte nous avons besoin de ses coordonnées. " diff --git a/docs/site-example/i18n/gluon-site.pot b/docs/site-example/i18n/gluon-site.pot index 3fb5c98b..c8646b4d 100644 --- a/docs/site-example/i18n/gluon-site.pot +++ b/docs/site-example/i18n/gluon-site.pot @@ -30,3 +30,6 @@ msgstr "" msgid "gluon-config-mode:contact-note" msgstr "" + +msgid "gluon-config-mode:geo-location-help" +msgstr "" diff --git a/docs/user/site.rst b/docs/user/site.rst index fd205d13..ef667a3a 100644 --- a/docs/user/site.rst +++ b/docs/user/site.rst @@ -520,6 +520,9 @@ gluon-config-mode:contact-help gluon-config-mode:contact-note Note shown (in small font) below the ``contact`` field +gluon-config-mode:geo-location-help + Description for the usage of the coordinates fields + gluon-config-mode:reboot General information shown on the reboot page. diff --git a/package/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua b/package/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua index 05d9b686..718e59ee 100644 --- a/package/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua +++ b/package/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua @@ -14,7 +14,7 @@ return function(form, uci) return uci:get_bool("gluon-node-info", location, "altitude") end - local text = pkg_i18n.translate( + local text = site_i18n._translate("gluon-config-mode:geo-location-help") or pkg_i18n.translate( 'If you want the location of your node to ' .. 'be displayed on the map, you can enter its coordinates here.' )