From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id CB6F81FF15C for ; Wed, 22 Jan 2025 13:13:55 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B38231D5A3; Wed, 22 Jan 2025 13:13:52 +0100 (CET) From: Maximiliano Sandoval To: yew-devel@lists.proxmox.com Date: Wed, 22 Jan 2025 13:13:49 +0100 Message-Id: <20250122121349.239939-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.045 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 POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes 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 pywt] catalog_loader: fix url for translation files 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" As per proxmox-datacenter-api.rs: ```rust ("locale", "/usr/share/pdm-i18n"), ``` the translations are at /locale/catalog-{lang}.mo Signed-off-by: Maximiliano Sandoval --- src/widget/catalog_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/catalog_loader.rs b/src/widget/catalog_loader.rs index 21437991..c3732d49 100644 --- a/src/widget/catalog_loader.rs +++ b/src/widget/catalog_loader.rs @@ -49,7 +49,7 @@ impl CatalogLoader { if let Some(url_builder) = &self.url_builder { url_builder.apply(&lang) } else { - format!("catalog-{}.mo", lang) + format!("locale/catalog-{lang}.mo") } } } -- 2.39.5 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel