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 proxmox-yew-comp 2/2] mark strings as translatable
Date: Thu, 11 Dec 2025 14:15:03 +0100	[thread overview]
Message-ID: <20251211131518.358927-2-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20251211131518.358927-1-m.sandoval@proxmox.com>

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/auth_view.rs   | 2 +-
 src/object_grid.rs | 4 ++--
 src/tasks.rs       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/auth_view.rs b/src/auth_view.rs
index 8a86bc2..75deefb 100644
--- a/src/auth_view.rs
+++ b/src/auth_view.rs
@@ -326,7 +326,7 @@ impl LoadableComponent for ProxmoxAuthView {
             .class("pwt-w-100")
             .class("pwt-overflow-hidden")
             .class("pwt-border-bottom")
-            .with_child(MenuButton::new("Add").show_arrow(true).menu(add_menu))
+            .with_child(MenuButton::new(tr!("Add")).show_arrow(true).menu(add_menu))
             .with_child(
                 Button::new(tr!("Edit"))
                     .disabled(edit_disabled)
diff --git a/src/object_grid.rs b/src/object_grid.rs
index 40214a3..6381c8e 100644
--- a/src/object_grid.rs
+++ b/src/object_grid.rs
@@ -325,7 +325,7 @@ impl PwtObjectGrid {
         let editor = self.editors.get(&name)?.clone();
 
         Some(
-            EditWindow::new(format!("Edit: {}", title))
+            EditWindow::new(format!("{edit}: {title}", edit = tr!("Edit")))
                 .loader(props.loader.clone())
                 .on_done(ctx.link().change_view_callback(|_| None))
                 .renderer(move |form_state| (editor.0)(form_state, &name, &value, &data))
@@ -429,7 +429,7 @@ impl LoadableComponent for PwtObjectGrid {
 
         let mut toolbar = Toolbar::new()
             .border_bottom(true)
-            .with_child(Button::new("Edit").disabled(disable_edit).onclick({
+            .with_child(Button::new(tr!("Edit")).disabled(disable_edit).onclick({
                 let link = ctx.link().clone();
                 move |_| {
                     link.change_view(Some(ViewState::EditObject));
diff --git a/src/tasks.rs b/src/tasks.rs
index 8dec24f..ece8f2e 100644
--- a/src/tasks.rs
+++ b/src/tasks.rs
@@ -387,7 +387,7 @@ impl LoadableComponent for ProxmoxTasks {
                     .onclick(move |_| form_context.write().reset_form())
             })
             .with_child(
-                Button::new("Filter")
+                Button::new(tr!("Filter"))
                     .icon_class(filter_icon_class)
                     .onclick(ctx.link().callback(|_| Msg::ToggleFilter)),
             )
-- 
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-12-11 13:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11 13:15 [yew-devel] [PATCH proxmox-yew-comp 1/2] add translation comments to translatable strings Maximiliano Sandoval
2025-12-11 13:15 ` Maximiliano Sandoval [this message]
2025-12-11 14:06   ` [yew-devel] applied: [PATCH proxmox-yew-comp 2/2] mark strings as translatable Dietmar Maurer
2025-12-11 14:01 ` [yew-devel] applied: [PATCH proxmox-yew-comp 1/2] add translation comments to translatable strings Dietmar Maurer

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=20251211131518.358927-2-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