[pdm-devel] [PATCH datacenter-manager] ui: pbs datastores panel: make status label translatable
Christian Ebner
c.ebner at proxmox.com
Mon Nov 3 14:00:39 CET 2025
The shown labels must be translatable to other languages. This has
been overlooked in the initial implementation introduced by commit
2dcae341 ("ui: dashboard: add panel for PBS datastore statistics").
Reported-by: Shannon Sterz <s.sterz at proxmox.com>
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
ui/src/dashboard/pbs_datastores_panel.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ui/src/dashboard/pbs_datastores_panel.rs b/ui/src/dashboard/pbs_datastores_panel.rs
index a06acf7..3e347b9 100644
--- a/ui/src/dashboard/pbs_datastores_panel.rs
+++ b/ui/src/dashboard/pbs_datastores_panel.rs
@@ -102,28 +102,28 @@ fn create_list_tile(
StatusRow::Online(count) => (
Fa::from(Status::Success),
count,
- "Online",
+ tr!("Online"),
Some(("online", "status")),
),
StatusRow::HighUsage(count) => (
Fa::from(Status::Warning),
count,
- "High usage",
+ tr!("High usage"),
Some(("high-usage", "property")),
),
StatusRow::UnderMaintenance(count) => (
Fa::new("wrench"),
count,
- "Under Maintenance",
+ tr!("Under Maintenance"),
Some(("under-maintenance", "status")),
),
StatusRow::Unknown(count) => (
Fa::from(Status::Unknown),
count,
- "Unknown",
+ tr!("Unknown"),
Some(("unknown", "property")),
),
- StatusRow::All(count) => (Fa::new("database"), count, "All", None),
+ StatusRow::All(count) => (Fa::new("database"), count, tr!("All"), None),
};
Some(
--
2.47.3
More information about the pdm-devel
mailing list