all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-datacenter-manager v2 2/2] improve translatable strings
Date: Wed, 30 Jul 2025 12:38:20 +0200	[thread overview]
Message-ID: <20250730103825.233570-14-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20250730103825.233570-1-m.sandoval@proxmox.com>

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 <m.sandoval@proxmox.com>
---
 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 <a target=\"_blank\" href=\"https://www.proxmox.com\">www.proxmox.com</a> to get
-a list of available options. ",
+        "At least one remote does not have a valid subscription. Please visit <a target=\"_blank\" href=\"https://www.proxmox.com\">www.proxmox.com</a> 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


  parent reply	other threads:[~2025-07-30 10:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30 10:38 [pve-devel] [PATCH backup/manager/pmg-gui/pmg-yew-quarantine-gui/proxmox-datacenter-manager/widget-toolkit/yew-mobile-gui/yew-widget-toolkit v2 00/16] Improve " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 1/3] add context to " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 2/3] improve some " Maximiliano Sandoval
2025-07-30 12:49   ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 3/3] use Unicode not equal sign in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 1/3] add context to " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 2/3] " Maximiliano Sandoval
2025-07-30 12:48   ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 3/3] use WebAuthn in translatable string Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-gui v2 1/2] add context to translatable strings Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-gui v2 2/2] use WebAuthn in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 1/3] add translators comments to some translations Maximiliano Sandoval
2025-07-30 12:48   ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 2/3] improve some translatable strings Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 3/3] use WebAuthn in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH proxmox-datacenter-manager v2 1/2] add context to " Maximiliano Sandoval
2025-07-30 12:48   ` Shannon Sterz
2025-07-30 13:12   ` Michael Köppl
2025-07-30 10:38 ` Maximiliano Sandoval [this message]
2025-07-30 10:38 ` [pve-devel] [PATCH yew-widget-toolkit v2 1/1] improve " Maximiliano Sandoval
2025-07-30 12:48   ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH pve-yew-mobile-gui " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-yew-quarantine-gui v2 1/1] improve some " Maximiliano Sandoval
2025-07-30 12:51 ` [pve-devel] [PATCH backup/manager/pmg-gui/pmg-yew-quarantine-gui/proxmox-datacenter-manager/widget-toolkit/yew-mobile-gui/yew-widget-toolkit v2 00/16] Improve " Shannon Sterz
2025-07-30 12:54   ` Thomas Lamprecht
2025-07-30 13:37     ` [pve-devel] superseded: " Maximiliano Sandoval

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=20250730103825.233570-14-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pve-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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal