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 081BF1FF15C for ; Wed, 22 Jan 2025 14:51:53 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D0FED1FEC9; Wed, 22 Jan 2025 14:51:49 +0100 (CET) From: Maximiliano Sandoval To: pdm-devel@lists.proxmox.com Date: Wed, 22 Jan 2025 14:51:15 +0100 Message-Id: <20250122135116.344375-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.102 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [certificates.rs, mod.rs] Subject: [pdm-devel] [PATCH proxmox-datacenter-manager 1/2] mark missing translatable strings as such X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" Signed-off-by: Maximiliano Sandoval --- ui/src/administration/mod.rs | 8 ++++---- ui/src/certificates.rs | 11 +++++++---- ui/src/configuration/mod.rs | 2 +- ui/src/remotes/mod.rs | 4 ++-- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ui/src/administration/mod.rs b/ui/src/administration/mod.rs index 2c9a2b6..38411a9 100644 --- a/ui/src/administration/mod.rs +++ b/ui/src/administration/mod.rs @@ -70,7 +70,7 @@ impl Component for PdmServerAdministration { .with_item_builder( TabBarItem::new() .key("updates") - .label("Updates") + .label(tr!("Updates")) .icon_class("fa fa-refresh"), move |_| { Container::new() @@ -83,7 +83,7 @@ impl Component for PdmServerAdministration { .with_item_builder( TabBarItem::new() .key("repositories") - .label("Repositories") + .label(tr!("Repositories")) .icon_class("fa fa-files-o"), |_| { Container::new() @@ -96,7 +96,7 @@ impl Component for PdmServerAdministration { .with_item_builder( TabBarItem::new() .key("syslog") - .label("Syslog") + .label(tr!("Syslog")) .icon_class("fa fa-list"), |_| { Container::new() @@ -109,7 +109,7 @@ impl Component for PdmServerAdministration { .with_item_builder( TabBarItem::new() .key("tasks") - .label("Tasks") + .label(tr!("Tasks")) .icon_class("fa fa-list-alt"), |_| { Container::new() diff --git a/ui/src/certificates.rs b/ui/src/certificates.rs index bd7629f..cd1a470 100644 --- a/ui/src/certificates.rs +++ b/ui/src/certificates.rs @@ -18,7 +18,7 @@ pub fn certificates_panel() -> Html { .with_item_builder( TabBarItem::new() .key("certificate_List") - .label("Certificates"), + .label(tr!("Certificates")), |_| { Container::new() .class("pwt-content-spacer") @@ -28,7 +28,10 @@ pub fn certificates_panel() -> Html { }, ) .with_item_builder( - TabBarItem::new().key("acme_domains").label("ACME Domains"), + TabBarItem::new() + .key("acme_domains") + // TRANSLATORS: ACME Stands for Automatic Certificate Management Environment + .label(tr!("ACME Domains")), |_| { Container::new() .class("pwt-content-spacer") @@ -40,7 +43,7 @@ pub fn certificates_panel() -> Html { .with_item_builder( TabBarItem::new() .key("acme_accounts") - .label("ACME Accounts"), + .label(tr!("ACME Accounts")), |_| { Container::new() .class("pwt-content-spacer") @@ -52,7 +55,7 @@ pub fn certificates_panel() -> Html { .with_item_builder( TabBarItem::new() .key("acme_plugins") - .label("Challenge Plugins"), + .label(tr!("Challenge Plugins")), |_| { Container::new() .class("pwt-content-spacer") diff --git a/ui/src/configuration/mod.rs b/ui/src/configuration/mod.rs index 25cd306..5ec3fe0 100644 --- a/ui/src/configuration/mod.rs +++ b/ui/src/configuration/mod.rs @@ -29,7 +29,7 @@ pub fn system_configuration() -> Html { .with_item_builder( TabBarItem::new() .key("webauthn") - .label("WebAuthn TFA") + .label(tr!("WebAuthn TFA")) .icon_class("fa fa-sliders"), |_| html! { }, ); diff --git a/ui/src/remotes/mod.rs b/ui/src/remotes/mod.rs index a2f471c..fb2c5e4 100644 --- a/ui/src/remotes/mod.rs +++ b/ui/src/remotes/mod.rs @@ -41,14 +41,14 @@ pub fn system_configuration() -> Html { .with_item_builder( TabBarItem::new() .key("configuration") - .label("Configuration") + .label(tr!("Configuration")) .icon_class("fa fa-cogs"), |_| RemoteConfigPanel::new().into(), ) .with_item_builder( TabBarItem::new() .key("tasks") - .label("Tasks") + .label(tr!("Tasks")) .icon_class("fa fa-book"), |_| tasks::RemoteTaskList::new().into(), ); -- 2.39.5 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel