From 04ed52754c383fe0e8067e036f5a2c646ceeec17 Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Tue, 25 Mar 2025 10:56:36 +0100 Subject: [PATCH] refs #1726 Add translation support for RAM and CPU usage labels in Global Status component --- .../status-tab/status-tab.component.css | 3 +- .../status-tab/status-tab.component.html | 56 ++++++++++++------- ogWebconsole/src/locale/en.json | 5 +- ogWebconsole/src/locale/es.json | 5 +- 4 files changed, 46 insertions(+), 23 deletions(-) diff --git a/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.css b/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.css index 0fccf20..f6b674f 100644 --- a/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.css +++ b/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.css @@ -3,7 +3,8 @@ flex-direction: column; } -.disk-usage-container { +.disk-usage-container, +.ram-usage-container { display: flex; flex-direction: column; } diff --git a/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.html b/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.html index fcd894f..e776e1f 100644 --- a/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.html +++ b/ogWebconsole/src/app/components/global-status/status-tab/status-tab.component.html @@ -21,7 +21,7 @@
-

Uso de RAM

+

{{ 'RamUsage' | translate }}

@@ -37,7 +37,7 @@
-

Uso de CPU

+

{{ 'CpuUsage' | translate }}

Usado: {{ cpuUsage.used_percentage }}

@@ -57,7 +57,7 @@
-

Procesos

+

{{ 'processes' | translate }}

  • -
    -

    {{ isDhcp ? ('subnets' | translate) : ('InstalledOglivesTitle' | translate)}}

    +
    +

    {{ 'InstalledOglivesTitle' | translate }}

    - - - - - - - + + + - + - - - - - - - + + + + + +
    {{ 'idLabel' | translate }}{{ 'kernelLabel' | translate }}{{ 'architectureLabel' | translate }}{{ 'revisionLabel' | translate }}{{ 'bootFileNameLabel' | translate }}{{ 'nextServerLabel' | translate }}{{ 'ipLabel' | translate }}{{ 'clientsLabel' | translate }}{{ 'kernelLabel' | translate }}{{ 'architectureLabel' | translate }}{{ 'revisionLabel' | translate }}
    {{ item.id }}{{ item.kernel }}{{ item.architecture }}{{ item.revision }}{{ item['boot-file-name'] }}{{ item['next-server'] }}{{ item.subnet }}{{ item.reservations.length }}{{ item.kernel }}{{ item.architecture }}{{ item.revision }}
    +
    + +
    +

    {{ 'subnets' | translate }}

    + + + + + + + + + + + + + + + + +
    {{ 'idLabel' | translate }}{{ 'bootFileNameLabel' | translate }}{{ 'nextServerLabel' | translate }}{{ 'ipLabel' | translate }}{{ 'clientsLabel' | translate }}
    {{ item.id }}{{ item['boot-file-name'] }}{{ item['next-server'] }}{{ item.subnet }}{{ item.reservations.length }}
    diff --git a/ogWebconsole/src/locale/en.json b/ogWebconsole/src/locale/en.json index 79fe35e..7283f36 100644 --- a/ogWebconsole/src/locale/en.json +++ b/ogWebconsole/src/locale/en.json @@ -469,5 +469,8 @@ "organizationalUnitsStepText": "List of Organizational Units. Click on one to view details.", "defaultMenuLabel": "Main menu", "noClients": "No clients", - "GlobalStatus": "Global Status" + "GlobalStatus": "Global Status", + "RamUsage": "RAM Usage", + "CpuUsage": "CPU Usage", + "processes": "Processes" } diff --git a/ogWebconsole/src/locale/es.json b/ogWebconsole/src/locale/es.json index 115cc89..8bd214f 100644 --- a/ogWebconsole/src/locale/es.json +++ b/ogWebconsole/src/locale/es.json @@ -470,5 +470,8 @@ "organizationalUnitsStepText": "Lista de Unidades Organizacionales. Haz clic en una para ver detalles.", "defaultMenuLabel": "MenĂº por defecto", "noClients": "No hay clientes", - "GlobalStatus": "Estado Global" + "GlobalStatus": "Estado Global", + "RamUsage": "Uso de RAM", + "CpuUsage": "Uso de CPU", + "processes": "Procesos" }