all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-yew-comp] node_info: mark user-facing string as translatable
@ 2026-02-04 12:40 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2026-02-04 12:40 UTC (permalink / raw)
  To: yew-devel

This reuses the msgid from pdm's lxc overview.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/node_info.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/node_info.rs b/src/node_info.rs
index ca656d0..3737fab 100644
--- a/src/node_info.rs
+++ b/src/node_info.rs
@@ -164,7 +164,11 @@ pub fn node_info(data: Option<NodeStatus>) -> Container {
                 .animated(true)
                 .icon_class("fa fa-fw fa-cpu")
                 .value(cpu as f32)
-                .status(format!("{:.2}% of {} CPU(s)", cpu * 100.0, cpus_total)),
+                .status(tr!(
+                    "{0}% of {1} CPU(s)",
+                    format!("{:.2}", cpu * 100.0),
+                    cpus_total
+                )),
         )
         .with_child(
             MeterLabel::with_zero_optimum(tr!("IO delay"))
-- 
2.47.3





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-04 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-04 12:40 [PATCH proxmox-yew-comp] node_info: mark user-facing string as translatable Maximiliano Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal