From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 906EA1FF17E for ; Thu, 11 Dec 2025 14:15:10 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 367B715DBE; Thu, 11 Dec 2025 14:15:52 +0100 (CET) From: Maximiliano Sandoval To: yew-devel@lists.proxmox.com Date: Thu, 11 Dec 2025 14:15:03 +0100 Message-ID: <20251211131518.358927-2-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251211131518.358927-1-m.sandoval@proxmox.com> References: <20251211131518.358927-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1765458916869 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.094 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 proxmox-yew-comp 2/2] mark strings as translatable X-BeenThere: yew-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Yew framework devel list at Proxmox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yew framework devel list at Proxmox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: yew-devel-bounces@lists.proxmox.com Sender: "yew-devel" Signed-off-by: Maximiliano Sandoval --- 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