From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yew-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9])
	by lore.proxmox.com (Postfix) with ESMTPS id C6ABC1FF15C
	for <inbox@lore.proxmox.com>; Wed, 22 Jan 2025 14:41:33 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id DBD721FA33;
	Wed, 22 Jan 2025 14:41:30 +0100 (CET)
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: yew-devel@lists.proxmox.com
Date: Wed, 22 Jan 2025 14:41:26 +0100
Message-Id: <20250122134126.333211-1-m.sandoval@proxmox.com>
X-Mailer: git-send-email 2.39.5
MIME-Version: 1.0
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.104 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: [yew-devel] [PATCH yew-widget-toolkit] mark missing translatable
 strings as such
X-BeenThere: yew-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Yew framework devel list at Proxmox <yew-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/yew-devel>, 
 <mailto:yew-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/yew-devel/>
List-Post: <mailto:yew-devel@lists.proxmox.com>
List-Help: <mailto:yew-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel>, 
 <mailto:yew-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Yew framework devel list at Proxmox <yew-devel@lists.proxmox.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: yew-devel-bounces@lists.proxmox.com
Sender: "yew-devel" <yew-devel-bounces@lists.proxmox.com>

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