diff --git a/package/gluon-config-mode-core/files/lib/gluon/web/view/gluon/config-mode/welcome.html b/package/gluon-config-mode-core/files/lib/gluon/web/view/gluon/config-mode/welcome.html index b2b8e577..22305131 100644 --- a/package/gluon-config-mode-core/files/lib/gluon/web/view/gluon/config-mode/welcome.html +++ b/package/gluon-config-mode-core/files/lib/gluon/web/view/gluon/config-mode/welcome.html @@ -1,9 +1,12 @@ <%- local sysconfig = require 'gluon.sysconfig' + + local msg = _translate('gluon-config-mode:welcome') + if not msg then return end -%>

- <%= - renderer.render_string(translate('gluon-config-mode:welcome'), { + <% + renderer.render_string(msg, { hostname = hostname, sysconfig = sysconfig, }) 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 94ca3c0d..36f8ff3b 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 @@ -7,7 +7,8 @@ local uci = require("simple-uci").cursor() local hostname = pretty_hostname.get(uci) local contact = uci:get_first('gluon-node-info', 'owner', 'contact') -local msg = translate('gluon-config-mode:reboot') +local msg = _translate('gluon-config-mode:reboot') +if not msg then return end renderer.render_string(msg, { hostname = hostname,