all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH pywt] catalog_loader: fix url for translation files
@ 2025-01-22 12:13 Maximiliano Sandoval
  2025-01-22 12:59 ` Shannon Sterz
  0 siblings, 1 reply; 3+ messages in thread
From: Maximiliano Sandoval @ 2025-01-22 12:13 UTC (permalink / raw)
  To: 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 <m.sandoval@proxmox.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-22 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-22 12:13 [yew-devel] [PATCH pywt] catalog_loader: fix url for translation files Maximiliano Sandoval
2025-01-22 12:59 ` Shannon Sterz
2025-01-22 14:53   ` Maximiliano Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal