This is following changes in proxmox-widget-toolkit.
Signed-off-by: Maximiliano Sandoval <[email protected]>
---
ui/src/pve/lxc/overview.rs | 4 ++--
ui/src/pve/qemu/overview.rs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ui/src/pve/lxc/overview.rs b/ui/src/pve/lxc/overview.rs
index 8c0196b3..2764ffa2 100644
--- a/ui/src/pve/lxc/overview.rs
+++ b/ui/src/pve/lxc/overview.rs
@@ -292,10 +292,10 @@ impl yew::Component for LxcanelComp {
status_row(
tr!("CPU usage"),
"fa-cpu",
+ // TRANSLATORS: For example "5% of 24 CPUs"
tr!(
- "{0}% of {1} CPU(s)",
+ "{0}% of {n} CPU" | "{0}% of {n} CPUs" %
status.cpus.unwrap_or_default(),
format!("{:.2}", cpu * 100.0),
- status.cpus.unwrap_or_default()
),
)
.value(cpu as f32),
diff --git a/ui/src/pve/qemu/overview.rs b/ui/src/pve/qemu/overview.rs
index 6e601d00..7766580a 100644
--- a/ui/src/pve/qemu/overview.rs
+++ b/ui/src/pve/qemu/overview.rs
@@ -301,10 +301,10 @@ impl yew::Component for QemuOverviewPanelComp {
status_row(
tr!("CPU usage"),
"fa-cpu",
+ // TRANSLATORS: For example "5% of 24 CPUs"
tr!(
- "{0}% of {1} CPU(s)",
+ "{0}% of {n} CPU" | "{0}% of {n} CPUs" %
status.cpus.unwrap_or_default(),
format!("{:.2}", cpu * 100.0),
- status.cpus.unwrap_or_default()
),
)
.value(cpu as f32),
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel