diff --git a/docs/site-example/i18n/de.po b/docs/site-example/i18n/de.po index e4f59ecf5d8f6221ddec831b7e02b86c9efe9a2f..445e48c985ad3b92b77ab9c32fc802392f2c6590 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" + +# Leave empty to use the default text, which can be found in: +# package/gluon-config-mode-hostname/i18n/ +msgid "gluon-config-mode:hostname-help" +msgstr "" diff --git a/docs/site-example/i18n/en.po b/docs/site-example/i18n/en.po index 02d7f822ae8de94d635947fd7dcbf0692897240a..5cb053e65cc0492f91d537d772436b4c7a022a4a 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" + +# Leave empty to use the default text, which can be found in: +# package/gluon-config-mode-hostname/i18n/ +msgid "gluon-config-mode:hostname-help" +msgstr "" diff --git a/docs/site-example/i18n/fr.po b/docs/site-example/i18n/fr.po index aed423e178db75f1c1b82f0b2718d59d2b34fa00..36c35a469516377ece8952bd38f35500aafd3eb9 100644 --- a/docs/site-example/i18n/fr.po +++ b/docs/site-example/i18n/fr.po @@ -75,3 +75,8 @@ msgstr "" msgid "gluon-config-mode:contact-note" msgstr "Ex : E-mail ou numéro de téléphone" + +# Leave empty to use the default text, which can be found in: +# package/gluon-config-mode-hostname/i18n/ +msgid "gluon-config-mode:hostname-help" +msgstr "" diff --git a/docs/site-example/i18n/gluon-site.pot b/docs/site-example/i18n/gluon-site.pot index 3fb5c98bdef8eea9d1ff39c1d16cb865eb554ed6..a0312fe9b56f68a31ab3416609946358ce9cd9c8 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:hostname-help" +msgstr "" diff --git a/docs/user/site.rst b/docs/user/site.rst index fd205d1344571dea46681bb0f5c65f24a7951b98..157541c81493b007e4826fbc281294ebad6ab531 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:hostname-help + Description for the usage of the ``hostname`` field + gluon-config-mode:reboot General information shown on the reboot page. diff --git a/package/gluon-config-mode-hostname/luasrc/lib/gluon/config-mode/wizard/0100-hostname.lua b/package/gluon-config-mode-hostname/luasrc/lib/gluon/config-mode/wizard/0100-hostname.lua index 4155e8f48e1f33e0a01cd9910499b204067f8464..d078b4de8d79a19aa35b6a76f94fbbb7d8d43faf 100644 --- a/package/gluon-config-mode-hostname/luasrc/lib/gluon/config-mode/wizard/0100-hostname.lua +++ b/package/gluon-config-mode-hostname/luasrc/lib/gluon/config-mode/wizard/0100-hostname.lua @@ -1,14 +1,16 @@ return function(form, uci) local pkg_i18n = i18n 'gluon-config-mode-hostname' + local site_i18n = i18n 'gluon-site' local pretty_hostname = require 'pretty_hostname' local site = require 'gluon.site' local util = require 'gluon.util' - form:section(Section, nil, pkg_i18n.translate( - "The node name is used solely for identification of your node, e.g. on a " - .. "node map. It does not affect the name (SSID) of the broadcasted WLAN." - )) + local help = site_i18n._translate("gluon-config-mode:hostname-help") or pkg_i18n.translate( + 'The node name is used solely for identification of your node, e.g. on a ' + .. 'node map. It does not affect the name (SSID) of the broadcasted WLAN.' + ) + form:section(Section, nil, help) local current_hostname = pretty_hostname.get(uci) local default_hostname = util.default_hostname()