gluon-status-page: use sitetranslation for role
This commit is contained in:
parent
b6ec181c80
commit
e6bdbe811a
@ -4,6 +4,7 @@
|
|||||||
local util = require 'gluon.util'
|
local util = require 'gluon.util'
|
||||||
|
|
||||||
local translations = {}
|
local translations = {}
|
||||||
|
local site_i18n = i18n 'gluon-site'
|
||||||
|
|
||||||
local function _(v)
|
local function _(v)
|
||||||
translations[v] = translate(v)
|
translations[v] = translate(v)
|
||||||
@ -127,7 +128,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if nodeinfo.system.role then -%>
|
<% if nodeinfo.system.role then -%>
|
||||||
<dt><%:Role%></dt><dd><%| nodeinfo.system.role %></dd>
|
<dt><%:Role%></dt><dd><%| site_i18n._translate('gluon-web-node-role:role:' .. nodeinfo.system.role) %></dd>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if nodeinfo.software.autoupdater then -%>
|
<% if nodeinfo.software.autoupdater then -%>
|
||||||
<dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%|
|
<dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%|
|
||||||
|
Loading…
Reference in New Issue
Block a user