...
If user is NOT logged in
The languages given in ui_locales parameter are preferred, such as “?ui_locales=fi”
If ui_locales is not present, browser locales are used
If user is logged in (via “remember me”)
ui_locales parameter is ignored
User’s own language that is stored in user profile is preferred
If user does not have preferred language, browser locales are used.
...