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 committed by Matthias Schiffer
parent 533ea986ad
commit 5cf7c53e69
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
6 changed files with 22 additions and 1 deletions

View File

@ -85,3 +85,8 @@ msgstr "z.B. E-Mail oder Telefonnummer"
# package/gluon-config-mode-hostname/i18n/ # package/gluon-config-mode-hostname/i18n/
msgid "gluon-config-mode:hostname-help" msgid "gluon-config-mode:hostname-help"
msgstr "" msgstr ""
# Leave empty to use the default text, which can be found in:
# package/gluon-config-mode-geo-location/i18n/
msgid "gluon-config-mode:geo-location-help"
msgstr ""

View File

@ -79,3 +79,8 @@ msgstr "e.g. E-mail or phone number"
# package/gluon-config-mode-hostname/i18n/ # package/gluon-config-mode-hostname/i18n/
msgid "gluon-config-mode:hostname-help" msgid "gluon-config-mode:hostname-help"
msgstr "" msgstr ""
# Leave empty to use the default text, which can be found in:
# package/gluon-config-mode-geo-location/i18n/
msgid "gluon-config-mode:geo-location-help"
msgstr ""

View File

@ -80,3 +80,8 @@ msgstr "Ex : E-mail ou numéro de téléphone"
# package/gluon-config-mode-hostname/i18n/ # package/gluon-config-mode-hostname/i18n/
msgid "gluon-config-mode:hostname-help" msgid "gluon-config-mode:hostname-help"
msgstr "" msgstr ""
# Leave empty to use the default text, which can be found in:
# package/gluon-config-mode-geo-location/i18n/
msgid "gluon-config-mode:geo-location-help"
msgstr ""

View File

@ -33,3 +33,6 @@ msgstr ""
msgid "gluon-config-mode:hostname-help" msgid "gluon-config-mode:hostname-help"
msgstr "" msgstr ""
msgid "gluon-config-mode:geo-location-help"
msgstr ""

View File

@ -523,6 +523,9 @@ gluon-config-mode:contact-note
gluon-config-mode:hostname-help gluon-config-mode:hostname-help
Description for the usage of the ``hostname`` field Description for the usage of the ``hostname`` field
gluon-config-mode:geo-location-help
Description for the usage of the longitude/latitude 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.'
) )