Merge pull request #2200 from AiyionPrime/status_page_role

gluon-status-page: add role to status-page
This commit is contained in:
David Bauer 2021-04-28 00:11:26 +02:00 committed by GitHub
commit 490c522351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,7 @@
local util = require 'gluon.util'
local translations = {}
local site_i18n = i18n 'gluon-site'
local function _(v)
translations[v] = translate(v)
@ -126,6 +127,9 @@
<%- end %>
</dd>
<%- end %>
<% if nodeinfo.system.role then -%>
<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) %><%|
nodeinfo.software.autoupdater.enabled and

View File

@ -103,6 +103,9 @@ msgstr "RAM"
msgid "Received"
msgstr "Empfangen"
msgid "Role"
msgstr "Rolle"
msgid "Site"
msgstr "Site"

View File

@ -94,6 +94,9 @@ msgstr ""
msgid "Received"
msgstr ""
msgid "Role"
msgstr ""
msgid "Site"
msgstr ""

View File

@ -19,6 +19,7 @@ if we ever add Russion to gluon-web, the following strings can be reused:
"Clients": "Клиенты",
"Transmitted": "Передано",
"Received": "Получено",
"Role": "Роль",
"Forwarded": "Переправленно",
"Day": "День",
"Days": "Дней",