From b503271aba4ff7499be08c6a48be1bec91ee5ec0 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Wed, 19 Oct 2022 15:57:57 +0200 Subject: [PATCH 1/3] Use Translateable strings in Debug Page --- data/web/lang/lang.de.json | 3 ++- data/web/lang/lang.en.json | 1 + data/web/templates/debug.twig | 6 +++--- data/web/templates/mailbox.twig | 15 +++++++++++---- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/data/web/lang/lang.de.json b/data/web/lang/lang.de.json index fc1b9f265..0ae8c59e1 100644 --- a/data/web/lang/lang.de.json +++ b/data/web/lang/lang.de.json @@ -487,6 +487,7 @@ "containers_info": "Container-Information", "container_running": "Läuft", "container_stopped": "Angehalten", + "cores": "Kerne", "current_time": "Systemzeit", "disk_usage": "Festplattennutzung", "docs": "Dokumente", @@ -511,7 +512,7 @@ "success": "Erfolg", "system_containers": "System & Container", "timezone": "Zeitzone", - "uptime": "Uptime", + "uptime": "Betriebszeit", "update_available": "Es ist ein Update verfügbar", "no_update_available": "Das System ist auf aktuellem Stand", "update_failed": "Es konnte nicht nach einem Update gesucht werden", diff --git a/data/web/lang/lang.en.json b/data/web/lang/lang.en.json index 1a2c418b3..02a699a92 100644 --- a/data/web/lang/lang.en.json +++ b/data/web/lang/lang.en.json @@ -487,6 +487,7 @@ "containers_info": "Container information", "container_running": "Running", "container_stopped": "Stopped", + "cores": "Cores", "current_time": "System Time", "disk_usage": "Disk usage", "docs": "Docs", diff --git a/data/web/templates/debug.twig b/data/web/templates/debug.twig index 81a386aa3..4b21cc47f 100644 --- a/data/web/templates/debug.twig +++ b/data/web/templates/debug.twig @@ -84,7 +84,7 @@ - - Disk Info + {{ lang.debug.disk_usage }}
{{ vmail_df[0] }} @@ -104,11 +104,11 @@

CPU

-
- Cores @
+
- {{ lang.debug.cores }} @
-

MEMORY

+

{{ lang.debug.memory|upper}}

- @
diff --git a/data/web/templates/mailbox.twig b/data/web/templates/mailbox.twig index ccf46846a..382a206cd 100644 --- a/data/web/templates/mailbox.twig +++ b/data/web/templates/mailbox.twig @@ -3,15 +3,22 @@ {% block content %}