all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH proxmox-datacenter-manager] i18n: Use plural form for warnings
@ 2025-09-08  7:35 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2025-09-08  7:35 UTC (permalink / raw)
  To: pdm-devel

Each msgid in the .po file has to be unique hence there cannot be a
singular and plural string with the same singular form.

Fixes following the error when regenerating translations:

proxmox-datacenter-manager-ui.pot:523: duplicate message definition...
proxmox-widget-toolkit.pot:2458: ...this is the location of the first definition
xgettext: found 1 fatal error

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 ui/src/dashboard/filtered_tasks.rs | 2 +-
 ui/src/dashboard/tasks.rs          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/dashboard/filtered_tasks.rs b/ui/src/dashboard/filtered_tasks.rs
index 6f211c2..b939ccd 100644
--- a/ui/src/dashboard/filtered_tasks.rs
+++ b/ui/src/dashboard/filtered_tasks.rs
@@ -190,7 +190,7 @@ impl Component for PdmFilteredTasks {
                 props.grouping.to_title(),
                 match props.task_status {
                     TaskStatusClass::Ok => tr!("OK"),
-                    TaskStatusClass::Warning => tr!("Warning"),
+                    TaskStatusClass::Warning => tr!("Warning" | "Warnings" % 1),
                     TaskStatusClass::Error => tr!("Error"),
                 },
             );
diff --git a/ui/src/dashboard/tasks.rs b/ui/src/dashboard/tasks.rs
index fc38aea..29d4e64 100644
--- a/ui/src/dashboard/tasks.rs
+++ b/ui/src/dashboard/tasks.rs
@@ -149,7 +149,7 @@ fn render_counter(
         TaskStatusClass::Warning => (
             "fa-exclamation-triangle",
             css::ColorScheme::Warning,
-            tr!("Warning"),
+            tr!("Warning" | "Warnings" % count),
         ),
         TaskStatusClass::Error => ("fa-times-circle", css::ColorScheme::Error, tr!("Error")),
     };
-- 
2.47.3



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


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

only message in thread, other threads:[~2025-09-08  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-08  7:35 [pdm-devel] [PATCH proxmox-datacenter-manager] i18n: Use plural form for warnings 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