Page MenuHomePhabricator

UserInfo: Groups translation ignores the `uselang` parameter
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:

image.png (976×1,080 px, 277 KB)

"Groups" appear in the language you specified in step 1

What should have happened instead?:
Groups should have been listed in Hebrew.

Other information (browser name/version, screenshots, etc.):

  • Also replicable on zhwiki:

image.png (972×1,266 px, 327 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I cannot reproduce this myself using the steps provided:

image.png (396×444 px, 28 KB)

Investigating this a bit more, it seems that the groups line ignores the uselang parameter. For example, I opened https://he.wikipedia.org/w/index.php?title=%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%9E%D7%96%D7%A0%D7%95%D7%9F&action=history&uselang=en and saw:

image.png (397×444 px, 30 KB)

Therefore, this isn't that the groups messages are not translated but that the translation used is the one in Special:Preferences even if it's overridden using uselang.

Dreamy_Jazz renamed this task from UserInfo: Groups are displayed in English when they should be translated to UserInfo: Groups translation ignores the `uselang` parameter.Sep 16 2025, 9:19 AM
Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz updated the task description. (Show Details)

Right, I think we need to pass the language parameter to the REST API.

Change #1188791 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] UIC: Use current language for user groups

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

Change #1188791 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UIC: Use current language for user groups

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

I think we can skip QA on this?

Yes, let's skip