* [pdm-devel] [PATCH proxmox-datacenter-manager] i18n: Use plural form for warnings
@ 2025-09-08 7:35 Maximiliano Sandoval
2025-09-10 10:27 ` [pdm-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread
end of thread, other threads:[~2025-09-10 10:28 UTC | newest]
Thread overview: 2+ messages (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
2025-09-10 10:27 ` [pdm-devel] applied: " Thomas Lamprecht
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.