From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH proxmox-yew-comp] node_info: mark user-facing string as translatable
Date: Wed, 4 Feb 2026 13:40:49 +0100 [thread overview]
Message-ID: <20260204124050.327077-1-m.sandoval@proxmox.com> (raw)
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
reply other threads:[~2026-02-04 12:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260204124050.327077-1-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox