[pdm-devel] [PATCH datacenter-manager 13/13] ui: remote updates: use explicit indices for parameters in tr! macro
Lukas Wagner
l.wagner at proxmox.com
Thu Nov 27 11:44:47 CET 2025
Otherwise the there will be errors in the browser console, warning about
implicit ordering of parameters.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
ui/src/remotes/updates.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/src/remotes/updates.rs b/ui/src/remotes/updates.rs
index faa38fcd..f9c34fc8 100644
--- a/ui/src/remotes/updates.rs
+++ b/ui/src/remotes/updates.rs
@@ -421,7 +421,9 @@ impl UpdateTreeComponent {
.gap(2)
.class(AlignItems::Baseline)
.with_child(Fa::new("list"))
- .with_child(tr!("Update List - {} ({})", remote, node))
+ // TRANSLATORS: The first parameter is the name of the remote, the second one
+ // the name of the node.
+ .with_child(tr!("Update List - {0} ({1})", remote, node))
.into();
if summary.status == NodeUpdateStatus::Success {
--
2.47.3
More information about the pdm-devel
mailing list