gluon-config-mode-geo-location: allow overriding geo location description text

This commit is contained in:
Andreas Ziegler 2018-06-27 00:11:00 +02:00
parent 3d18ae02d8
commit 4361f5b762
6 changed files with 21 additions and 1 deletions

View File

@ -80,3 +80,8 @@ msgstr ""
msgid "gluon-config-mode:contact-note" msgid "gluon-config-mode:contact-note"
msgstr "z.B. E-Mail oder Telefonnummer" 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."

View File

@ -74,3 +74,8 @@ msgstr ""
msgid "gluon-config-mode:contact-note" msgid "gluon-config-mode:contact-note"
msgstr "e.g. E-mail or phone number" 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."

View File

@ -75,3 +75,7 @@ msgstr ""
msgid "gluon-config-mode:contact-note" msgid "gluon-config-mode:contact-note"
msgstr "Ex : E-mail ou numéro de téléphone" 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. "

View File

@ -30,3 +30,6 @@ msgstr ""
msgid "gluon-config-mode:contact-note" msgid "gluon-config-mode:contact-note"
msgstr "" msgstr ""
msgid "gluon-config-mode:geo-location-help"
msgstr ""

View File

@ -520,6 +520,9 @@ gluon-config-mode:contact-help
gluon-config-mode:contact-note gluon-config-mode:contact-note
Note shown (in small font) below the ``contact`` field 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 gluon-config-mode:reboot
General information shown on the reboot page. General information shown on the reboot page.

View File

@ -14,7 +14,7 @@ return function(form, uci)
return uci:get_bool("gluon-node-info", location, "altitude") return uci:get_bool("gluon-node-info", location, "altitude")
end 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 ' .. 'If you want the location of your node to ' ..
'be displayed on the map, you can enter its coordinates here.' 'be displayed on the map, you can enter its coordinates here.'
) )