Skip to content
Snippets Groups Projects
Commit e6bdbe81 authored by aiyion.prime's avatar aiyion.prime
Browse files

gluon-status-page: use sitetranslation for role

parent b6ec181c
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -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 @@ ...@@ -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) %><%|
......
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