From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH proxmox-datacenter-manager] i18n: Use plural form for warnings
Date: Mon, 8 Sep 2025 09:35:52 +0200 [thread overview]
Message-ID: <20250908073553.123783-1-m.sandoval@proxmox.com> (raw)
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
reply other threads:[~2025-09-08 7:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250908073553.123783-1-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.