Commit e6bdbe81 authored by aiyion.prime's avatar aiyion.prime
Browse files

gluon-status-page: use sitetranslation for role

parent b6ec181c
......@@ -4,6 +4,7 @@
local util = require 'gluon.util'
local translations = {}
local site_i18n = i18n 'gluon-site'
local function _(v)
translations[v] = translate(v)
......@@ -127,7 +128,7 @@
</dd>
<%- end %>
<% 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 %>
<% if nodeinfo.software.autoupdater then -%>
<dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment