diff --git a/docs/site-example/i18n/de.po b/docs/site-example/i18n/de.po index 872d2d1cd44b5b700fd4991c4bd77e9a10d75826..6eb0e469f51bde23b537a0f4fe43a2a530bc0136 100644 --- a/docs/site-example/i18n/de.po +++ b/docs/site-example/i18n/de.po @@ -33,8 +33,8 @@ msgstr "" msgid "gluon-config-mode:reboot" msgstr "" -"<p>Dein Knoten startet gerade neu und wird anschließend versuchen, " -"sich mit anderen Freifunkknoten in seiner Nähe zu " +"<p>Dein Knoten <em><%= escape(hostname) %></em> startet gerade neu und wird " +"anschließend versuchen, sich mit anderen Freifunkknoten in seiner Nähe zu " "verbinden. Weitere Informationen zur " "Alpha Centauri Freifunk-Community findest du auf " "<a href=\"https://alpha-centauri.freifunk.net/\">unserer Webseite</a>.</p>" diff --git a/docs/site-example/i18n/en.po b/docs/site-example/i18n/en.po index e119818b04f180a6633b6e3db6623be646ab9ad9..7df1636581370b6ee1caf3319149cd5173e41f18 100644 --- a/docs/site-example/i18n/en.po +++ b/docs/site-example/i18n/en.po @@ -30,9 +30,9 @@ msgstr "" msgid "gluon-config-mode:reboot" msgstr "" -"<p>The node is currently rebooting and will try to connect to other " -"nearby Freifunk nodes after that. " -"For more information on the Freifunk Alpha Centauri community, have a look at " +"<p>Your node <em><%= escape(hostname) %></em> is currently rebooting and will " +"try to connect to other nearby Freifunk nodes after that. For more " +"information about the Freifunk community on Alpha Centauri, have a look at " "<a href=\"https://alpha-centauri.freifunk.net/\">our homepage</a>.</p>" "<p>To get back to this configuration interface, press the reset button for " "3 seconds during normal operation. The device will then reboot into config " diff --git a/docs/site-example/i18n/fr.po b/docs/site-example/i18n/fr.po index e83ce0dec9d232ac33b558402168f2fb52e63a26..2e05db2208378c84d42db79a7835d18a718aec20 100644 --- a/docs/site-example/i18n/fr.po +++ b/docs/site-example/i18n/fr.po @@ -14,7 +14,7 @@ msgid "gluon-config-mode:welcome" msgstr "" "Bienvenue dans l'assistant de configuration pour votre nouveau nœud " "Freifunk. Remplissez le formulaire suivant en fonction de vos besoins " -"et enregistrez le" +"et enregistrez le" msgid "gluon-config-mode:pubkey" msgstr "" @@ -33,8 +33,8 @@ msgstr "" msgid "gluon-config-mode:reboot" msgstr "" -"<p>Votre nœud es en train de redémarrer et va ensuite éssayer de se connecter " -"avec les autres nœuds du réseau Freifunk " +"<p>Votre nœud <em><%= escape(hostname) %></em> es en train de redémarrer et " +"va ensuite éssayer de se connecter avec les autres nœuds du réseau Freifunk " "Vous pourrez trouver plus d'informations sur votre groupe Freifunk sur la page " "<a href=\"https://alpha-centauri.freifunk.net/\"> de ton groupe </a>.</p> " "<p> Pour retrouver cette page de configuration veuillier appuyez pendant le " diff --git a/package/gluon-config-mode-core/luasrc/lib/gluon/config-mode/reboot/0900-msg-reboot.lua b/package/gluon-config-mode-core/luasrc/lib/gluon/config-mode/reboot/0900-msg-reboot.lua index bf27c07f7a8248326fee832ddafb325675f3522f..96557f41f405a9bd83d8cbe366d7b941f4d607c7 100644 --- a/package/gluon-config-mode-core/luasrc/lib/gluon/config-mode/reboot/0900-msg-reboot.lua +++ b/package/gluon-config-mode-core/luasrc/lib/gluon/config-mode/reboot/0900-msg-reboot.lua @@ -1,3 +1,23 @@ local i18n = require 'luci.i18n' +local site = require 'gluon.site_config' +local gluon_luci = require 'gluon.luci' +local sysconfig = require 'gluon.sysconfig' +local pretty_hostname = require 'pretty_hostname' -return function () luci.template.render_string(i18n.translate('gluon-config-mode:reboot')) end +local uci = luci.model.uci.cursor() + +local hostname = pretty_hostname.get(uci) +local contact = uci:get_first('gluon-node-info', 'owner', 'contact') + +local msg = i18n.translate('gluon-config-mode:reboot') + +return function () + luci.template.render_string(msg, { + hostname = hostname, + site = site, + sysconfig = sysconfig, + contact = contact, + escape = gluon_luci.escape, + urlescape = gluon_luci.urlescape, + }) +end