Open m00nwtchr opened 1 year ago
Hi thanks for reporting, I'll look into this today!
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.
I'm on Arch Linux (btw, lol).
Hmm interesting, I'm also on Archlinux! Hopefully it will be easy for me to replicate
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 thefl!
andprintln!
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