[pve-devel] [PATCH proxmox-datacenter-manager 1/1] use ngettext for the number of CPUs
Maximiliano Sandoval
m.sandoval at proxmox.com
Wed Jan 28 09:56:12 CET 2026
This is following changes in proxmox-widget-toolkit.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
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
More information about the pve-devel
mailing list