From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 77D0E1FF187 for ; Mon, 8 Sep 2025 09:35:59 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 57EA1C096; Mon, 8 Sep 2025 09:36:01 +0200 (CEST) From: Maximiliano Sandoval To: pdm-devel@lists.proxmox.com Date: Mon, 8 Sep 2025 09:35:52 +0200 Message-ID: <20250908073553.123783-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1757316931776 X-SPAM-LEVEL: Spam detection results: 0 AWL -2.401 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_DBL_SPAM 5 Contains a spam URL listed in the Spamhaus DBL blocklist [tasks.rs] Subject: [pdm-devel] [PATCH proxmox-datacenter-manager] i18n: Use plural form for warnings X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "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 --- 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