all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-widget-toolkit] mark missing translatable strings as such
Date: Wed, 22 Jan 2025 14:41:26 +0100	[thread overview]
Message-ID: <20250122134126.333211-1-m.sandoval@proxmox.com> (raw)

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/state/loader.rs         | 2 +-
 src/widget/form/selector.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/state/loader.rs b/src/state/loader.rs
index 2de3303b..1456373b 100644
--- a/src/state/loader.rs
+++ b/src/state/loader.rs
@@ -151,7 +151,7 @@ impl<T: 'static + DeserializeOwned + Serialize> Loader<T> {
                 .class("pwt-text-center")
                 .padding(4)
                 .with_child(Fa::new("spinner").margin_end(1).pulse())
-                .with_child("Loading...")
+                .with_child(tr!("Loading..."))
                 .into(),
             Some(Ok(ref data)) => render(Rc::clone(data)).into(),
             Some(Err(err)) => error_message(&format!("Error: {}", err)).padding(2).into(),
diff --git a/src/widget/form/selector.rs b/src/widget/form/selector.rs
index 36a056ba..44a18630 100644
--- a/src/widget/form/selector.rs
+++ b/src/widget/form/selector.rs
@@ -395,7 +395,7 @@ impl<S: DataStore + 'static> ManagedField for SelectorField<S> {
                 if store.is_empty() {
                     return Container::new()
                         .padding(2)
-                        .with_child("List does not contain any items.")
+                        .with_child(tr!("List does not contain any items."))
                         .into();
                 }
 
-- 
2.39.5



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


             reply	other threads:[~2025-01-22 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-22 13:41 Maximiliano Sandoval [this message]
2025-01-22 16:26 ` [yew-devel] applied: " Thomas Lamprecht

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=20250122134126.333211-1-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=yew-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