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 142EA1FF183 for ; Wed, 30 Jul 2025 12:37:48 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B57A4A57E; Wed, 30 Jul 2025 12:38:58 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Wed, 30 Jul 2025 12:38:20 +0200 Message-ID: <20250730103825.233570-14-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250730103825.233570-1-m.sandoval@proxmox.com> References: <20250730103825.233570-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1753871894557 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.096 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 SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH proxmox-datacenter-manager v2 2/2] improve translatable strings X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" The string "Mixed Subscriptions" is already in our pot files. We also remove a newline that leaked into the pot file. Signed-off-by: Maximiliano Sandoval --- ui/src/dashboard/remote_panel.rs | 2 +- ui/src/dashboard/subscription_info.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/dashboard/remote_panel.rs b/ui/src/dashboard/remote_panel.rs index 7471fb6..ff21fea 100644 --- a/ui/src/dashboard/remote_panel.rs +++ b/ui/src/dashboard/remote_panel.rs @@ -71,7 +71,7 @@ impl Component for PdmRemotePanel { ), (failed, _) => ( Fa::from(Status::Error), - tr!("{0} remotes failed to reach.", failed), + tr!("Failed to reach one remote." | "Failed to reach {n} remotes." % failed), true, ), }; diff --git a/ui/src/dashboard/subscription_info.rs b/ui/src/dashboard/subscription_info.rs index 9677c15..f867547 100644 --- a/ui/src/dashboard/subscription_info.rs +++ b/ui/src/dashboard/subscription_info.rs @@ -55,14 +55,13 @@ fn render_subscription_status(subs: &[RemoteSubscriptions]) -> Row { let (status, title, msg) = if none > 0 { let msg = tr!( - "At least one remote does not have a valid subscription. Please visit www.proxmox.com to get -a list of available options. ", + "At least one remote does not have a valid subscription. Please visit www.proxmox.com to get a list of available options. ", ); let msg = Html::from_html_unchecked(msg.into()); (Status::Error, tr!("No valid subscription"), msg) } else if mixed > 0 { - (Status::Warning, tr!("Mixed subscriptions"), tr!("At least one remote has mixed levels of subscription. These remotes fall back to the lowest one.").into()) + (Status::Warning, tr!("Mixed Subscriptions"), tr!("At least one remote has mixed levels of subscription. These remotes fall back to the lowest one.").into()) } else if unknown > 0 { ( Status::Unknown, -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel