gluon-config-mode-hostname: allow overriding hostname description text
This commit is contained in:
parent
a49cf395bd
commit
533ea986ad
@ -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"
|
||||||
|
|
||||||
|
# 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 ""
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
# 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 ""
|
||||||
|
@ -75,3 +75,8 @@ 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"
|
||||||
|
|
||||||
|
# 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 ""
|
||||||
|
@ -30,3 +30,6 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "gluon-config-mode:contact-note"
|
msgid "gluon-config-mode:contact-note"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "gluon-config-mode:hostname-help"
|
||||||
|
msgstr ""
|
||||||
|
@ -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:hostname-help
|
||||||
|
Description for the usage of the ``hostname`` field
|
||||||
|
|
||||||
gluon-config-mode:reboot
|
gluon-config-mode:reboot
|
||||||
General information shown on the reboot page.
|
General information shown on the reboot page.
|
||||||
|
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
return function(form, uci)
|
return function(form, uci)
|
||||||
local pkg_i18n = i18n 'gluon-config-mode-hostname'
|
local pkg_i18n = i18n 'gluon-config-mode-hostname'
|
||||||
|
local site_i18n = i18n 'gluon-site'
|
||||||
|
|
||||||
local pretty_hostname = require 'pretty_hostname'
|
local pretty_hostname = require 'pretty_hostname'
|
||||||
local site = require 'gluon.site'
|
local site = require 'gluon.site'
|
||||||
local util = require 'gluon.util'
|
local util = require 'gluon.util'
|
||||||
|
|
||||||
form:section(Section, nil, pkg_i18n.translate(
|
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 "
|
'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."
|
.. '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 current_hostname = pretty_hostname.get(uci)
|
||||||
local default_hostname = util.default_hostname()
|
local default_hostname = util.default_hostname()
|
||||||
|
Loading…
Reference in New Issue
Block a user