From e6bdbe811a1b44a356ba0b15272bd943a8bf8e57 Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Fri, 23 Apr 2021 15:57:37 +0200 Subject: [PATCH] gluon-status-page: use sitetranslation for role --- .../files/lib/gluon/status-page/view/status-page.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html index a50af93e..dbafece5 100644 --- a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html +++ b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html @@ -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 @@ <%- end %> <% if nodeinfo.system.role then -%> -
<%:Role%>
<%| nodeinfo.system.role %>
+
<%:Role%>
<%| site_i18n._translate('gluon-web-node-role:role:' .. nodeinfo.system.role) %>
<%- end %> <% if nodeinfo.software.autoupdater then -%>
<%:Automatic updates%>
<%| enabled(nodeinfo.software.autoupdater.enabled) %><%|