Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localizations don't change after setting language override and calling poll() #94

Open
m00nwtchr opened this issue Sep 27, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@m00nwtchr
Copy link

m00nwtchr commented Sep 27, 2022

I want to give users to option to use system locale or force a specific supported one in the app, and I'm using code adapted from the Localizer example, setting the language override before the first manual poll() works as expected, but when i do it afterwards in gui code, the language preference/order doesn't change (ie it's either still the system language or the language override i set at the start of the app). I'm using the fl! and println! macros to check the values.

https://github.com/m00nwtchr/cofd-pc-rs/blob/02aa5027ba2938f46699952871adb191205fb7d6/cofd/app/src/i18n.rs
https://github.com/m00nwtchr/cofd-pc-rs/blob/02aa5027ba2938f46699952871adb191205fb7d6/cofd/app/src/main.rs#L219-L229

@kellpossible
Copy link
Owner

Hi thanks for reporting, I'll look into this today!

@kellpossible
Copy link
Owner

Which platform are you on by the way? The https://github.com/rust-locale/locale_config/ library used appears to be mostly abandoned and has existing issues, I haven't yet found a suitable replacement.

@m00nwtchr
Copy link
Author

I'm on Arch Linux (btw, lol).

@kellpossible
Copy link
Owner

Hmm interesting, I'm also on Archlinux! Hopefully it will be easy for me to replicate

@kellpossible kellpossible added the bug Something isn't working label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants