Skip to content
Snippets Groups Projects
Unverified Commit f458d788 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode-core: make welcome and reboot message optional

Make use of our new _translate() function.
parent 1d7b4482
No related branches found
No related tags found
No related merge requests found
<%- <%-
local sysconfig = require 'gluon.sysconfig' local sysconfig = require 'gluon.sysconfig'
local msg = _translate('gluon-config-mode:welcome')
if not msg then return end
-%> -%>
<p> <p>
<%= <%
renderer.render_string(translate('gluon-config-mode:welcome'), { renderer.render_string(msg, {
hostname = hostname, hostname = hostname,
sysconfig = sysconfig, sysconfig = sysconfig,
}) })
......
...@@ -7,7 +7,8 @@ local uci = require("simple-uci").cursor() ...@@ -7,7 +7,8 @@ local uci = require("simple-uci").cursor()
local hostname = pretty_hostname.get(uci) local hostname = pretty_hostname.get(uci)
local contact = uci:get_first('gluon-node-info', 'owner', 'contact') 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, { renderer.render_string(msg, {
hostname = hostname, hostname = hostname,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment