* [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
* Re: [yew-devel] [PATCH pywt] catalog_loader: fix url for translation files
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
0 siblings, 1 reply; 3+ messages in thread
From: Shannon Sterz @ 2025-01-22 12:59 UTC (permalink / raw)
To: Yew framework devel list at Proxmox
On Wed Jan 22, 2025 at 1:13 PM CET, Maximiliano Sandoval wrote:
> 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")
> }
> }
> }
this re-defines the fallback here. i'd rather you give this catalog
loader an `url_builder` as that is the already implemented way of
adapting the location of catalogs. if you change that here, that is a
breaking change for users of this crate, so that would need more
considerations imo.
_______________________________________________
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
* Re: [yew-devel] [PATCH pywt] catalog_loader: fix url for translation files
2025-01-22 12:59 ` Shannon Sterz
@ 2025-01-22 14:53 ` Maximiliano Sandoval
0 siblings, 0 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2025-01-22 14:53 UTC (permalink / raw)
To: Yew framework devel list at Proxmox
"Shannon Sterz" <s.sterz@proxmox.com> writes:
> this re-defines the fallback here. i'd rather you give this catalog
> loader an `url_builder` as that is the already implemented way of
> adapting the location of catalogs. if you change that here, that is a
> breaking change for users of this crate, so that would need more
> considerations imo.
>
>
>
> _______________________________________________
> yew-devel mailing list
> yew-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
I will send v2 against proxmox-datacenter-manager then, thanks.
_______________________________________________
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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox