[pdm-devel] applied: [PATCH datacenter-manager] ui: pbs datastores panel: make status label translatable

Lukas Wagner l.wagner at proxmox.com
Mon Nov 3 14:16:52 CET 2025


On Mon Nov 3, 2025 at 2:00 PM CET, Christian Ebner wrote:
> 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(

Applied, thanks a lot!




More information about the pdm-devel mailing list