Interface language keeps resetting.
-
Since approximately today the user interface language keeps resetting to German (presumably taken from some browser settings), even though the user settings are set to English.
Well, it happened twice anyways, no idea if it's going to happen again.
-
I've figured it out:
- Without being logged in, go to what.thedailywtf.com: the interface language is set to German, apparently taken from the browser (this used not to be the case?)
- Log in. The user preferences for the language should apply now, but they don't. Everything is still in German. Navigating through the site keeps it in German.
- Opening a page in a new tab or refreshing the page with F5 changes it to the correct language.
So it seems to be after logging in there's some refresh of the setting missing from "value taken from browser" to "value in user settings".
-
@topspin said in Interface language keeps resetting.:
I've figured it out:
- Without being logged in, go to what.thedailywtf.com: the interface language is set to German, apparently taken from the browser (this used not to be the case?)
- Log in. The user preferences for the language should apply now, but they don't. Everything is still in German. Navigating through the site keeps it in German.
- Opening a page in a new tab or refreshing the page with F5 changes it to the correct language.
So it seems to be after logging in there's some refresh of the setting missing from "value taken from browser" to "value in user settings".
Seems that isn't the only thing...
https://what.thedailywtf.com/topic/26030/custom-css-not-un-loaded-on-logout-in
-
Oh, I think I can take responsibility for this... we didn't used to change language based on browser setting, but now we do, purely as a nice-to-have for guests.
Some sites set language based on geolocated IP, but that's a no-no, so we do it via
Accept-Language
header in browser, which is customisable (and I think falls back to system default?).In any case, there's some logic in here that changes the language back to your user selected language on login, but apparently it's not working? Shall take a look.
Edit: You can bash the auto-language feature all you want, I didn't add it. I only added in the fix to change the language back to the user setting on login
-
@julianlam said in Interface language keeps resetting.:
You can bash the auto-language feature all you want, I didn't add it.
Don't worry, it wouldn't stop us either way!
-
Oh, I got these bugs now too, logging back on my work computer after the holidays. I did not know that a hard refresh fixed it, but updating the settings got the interface into a half-english half-swedish state so that's nice.
Hard refresh worked to fix it fully.
Edit: The off-center text (Home / Recent) is a bonus bug! (Firefox 64, Mint 19)
-
Can you let me know what language you have set in your user settings, and what your browser/system language is set to?
-
@julianlam Forum settings: English (en-GB), Browser: Swedish, System: Swedish
-
@julianlam said in Interface language keeps resetting.:
Some sites set language based on geolocated IP, but that's a no-no, so we do it via Accept-Language header in browser
You're better than Google.
-
@Zecc said in Interface language keeps resetting.:
@julianlam said in Interface language keeps resetting.:
Some sites set language based on geolocated IP, but that's a no-no, so we do it via Accept-Language header in browser
You're better than Google.
Because doing it worse is also more work, it's exactly what everybody does.