Page MenuHomePhabricator

Can't change Interface Language with ULS when global interface language is set
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • in multi-language wiki (wikidata,meta,mediawiki) . I will use wikidata urls as s example
  • you have set a global interface language in (Internationalization section) no matter what language you choose in global preferences (for example Spanish)
  • you set an exception for interface language in the wiki (Internationalization section) by checkbox of `Set a local exception for this global preference.` and set the language to English in same page.
  • go to any other page main page for example.
  • open top language selector and try to choose any other language (Deutsch for example).

What happens?:
the interface language remain English

What should have happened instead?:
the interface language must changed to selected language

Remark: I can change the interface language from preferences.

this bug checked in chrome and firefox. wikidata, meta and mediawiki got same result.

Developer Notes

The globalpreferenceoverrides API is not working although the response was {"globalpreferenceoverrides":"success"}

Likely to be caused by recent works on T323076.

The ULS may also consider switching to a simple new mw.Api().saveOption( 'language', langCode, { global: 'override' } ) call facilitated by T323076.

Event Timeline

Aklapper changed the task status from Open to Stalled.Thu, Jun 27, 9:11 AM

Cannot reproduce on https://meta.wikimedia.org/wiki/Main_Page

Please follow https://www.mediawiki.org/wiki/Help:Locating_broken_scripts and check with safemode and share any errors in your browser's developer tools.

From which exact language to which exact language do you try to switch, on which exact page?
Please always provide clear steps to reproduce. "any" is not welcome in bug reports. Thanks. :)

hubaishan renamed this task from Can`t change Interface Language from English to Can`t change Interface Language from English in FireFox.Fri, Jun 28, 1:45 PM
hubaishan updated the task description. (Show Details)

I run into the same issue today. Starting with English, I click language selector next to my username and select a different language, like Polish. The selector accepts the selection, page blinks and it is still in English mode.

  • I had the same issue on Commons, Meta-Wiki and on Wikidata.
  • I tested it on PC with Windows using Chrome and Edge and had the same issue. However when I tried Firefox, it worked.
  • I tested it in an Apple ipad using Safari and also had this issue
  • I could change the language in Preferences
  • I could change from Polish to English, but not the other way

From which exact language to which exact language do you try to switch, on which exact page?

I just tried m:Main_Page switching from English to: Polish, Russian and German with no luck.

I looked closer at Firefox setting and on that one I used [[user:JarektBot]] account when it worked, while all other browsers used [[user:Jarekt]] account when it did not work. Switching users in Firefox to Jarekt account made it not work as well.

Please follow https://www.mediawiki.org/wiki/Help:Locating_broken_scripts and check with safemode and share any errors in your browser's developer tools.

Following https://www.mediawiki.org/wiki/Help:Locating_broken_scripts steps:

Screenshot 2024-06-29 204934.jpg (568×632 px, 157 KB)

hubaishan renamed this task from Can`t change Interface Language from English in FireFox to Can`t change Interface Language from English when global interface language is set.Sun, Jun 30, 11:09 AM
hubaishan changed the task status from Stalled to Open.
hubaishan updated the task description. (Show Details)

@Aklapper I have updated the task

@Jarekt Is interface language in global preferences set? was it set when trying with Firefox?

The globalpreferenceoverrides API is not working although the response was {"globalpreferenceoverrides":"success"}

Likely to be caused by recent works on T323076, cc @tstarling

Peachey88 renamed this task from Can`t change Interface Language from English when global interface language is set to Can't change Interface Language from English when global interface language is set.Sun, Jun 30, 12:38 PM

The ULS may also consider switching to a simple new mw.Api().saveOption( 'language', langCode, { global: 'override' } ) call.

@Jarekt Is interface language in global preferences set? was it set when trying with Firefox?

My [[user:Jarekt]] account has interface language in global preferences set to English. In that account I can not change the language from English. Tested in Chrome, Safari, Firefox and Edge.
My [[user:JarektBot]] account does not have interface language set in global preferences. In that account I can change the languages. Tested in Firefox and Edge.

Func renamed this task from Can't change Interface Language from English when global interface language is set to Can't change Interface Language with ULS when global interface language is set.Sun, Jun 30, 1:02 PM

I'm seeing this problem:
Have global pref set to langauge:en

Go to any page
use the UI to change the language to anything that isn't en

The page reloads in en

Change #1051305 had a related patch set uploaded (by Func; author: Func):

[mediawiki/extensions/GlobalPreferences@master] api: Use GLOBAL_OVERRIDE instead of manual local override

https://gerrit.wikimedia.org/r/1051305

I had exactly the same issue here, both in Brave and Firefox.

I tried en-->pt o https://www.wikidata.org/wiki/Q107550675 ; only got it working after fiddling around a bit with global preferences.