public inbox for yew-devel@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 strings as translatable
Date: Mon,  8 Sep 2025 13:33:52 +0200	[thread overview]
Message-ID: <20250908113352.347493-1-m.sandoval@proxmox.com> (raw)

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/widget/data_table/header_widget.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/widget/data_table/header_widget.rs b/src/widget/data_table/header_widget.rs
index e0e76ce7..c1fd8065 100644
--- a/src/widget/data_table/header_widget.rs
+++ b/src/widget/data_table/header_widget.rs
@@ -627,7 +627,7 @@ fn build_header_menu<T>(
 
     Menu::new()
         .with_item(
-            MenuItem::new("Sort Ascending")
+            MenuItem::new(tr!("Sort Ascending"))
                 .icon_class("fa fa-long-arrow-up")
                 .disabled(!sortable)
                 .on_select(
@@ -635,7 +635,7 @@ fn build_header_menu<T>(
                 ),
         )
         .with_item(
-            MenuItem::new("Sort Descending")
+            MenuItem::new(tr!("Sort Descending"))
                 .icon_class("fa fa-long-arrow-down")
                 .disabled(!sortable)
                 .on_select(
@@ -643,7 +643,7 @@ fn build_header_menu<T>(
                 ),
         )
         .with_separator()
-        .with_item(MenuItem::new("Columns").menu(columns_menu))
+        .with_item(MenuItem::new(tr!("Columns")).menu(columns_menu))
 }
 
 fn headers_to_menu<T>(
-- 
2.47.3



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


             reply	other threads:[~2025-09-08 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-08 11:33 Maximiliano Sandoval [this message]
2025-09-10 13:10 ` [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=20250908113352.347493-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal