Page MenuHomePhabricator

Special:UserRights expiry options not translatable
Closed, DuplicatePublicBUG REPORT

Description

What is the problem?

The expiry options you can set when you assigned users to groups in Special:UserRights are not translatable.

Steps to reproduce problem
  1. Login as a user in the stewards group
  2. Go to Special:UserRights/<user>?uselang=qqx for any <user> who exists on the wiki
    1. For example, https://en.wikipedia.beta.wmcloud.org/wiki/Special:UserRights/Drwpb?uselang=qqx
  3. Check one of the checkboxes and open the expiry select menu

Expected behaviour: You should see all the options are of the form (var-name), to show they are translatable strings
Observed behaviour: You see options like Expires in 1 day

Alternatively, you could go to Special:UserRights/<user>?uselang=fr and open the expiry select menus and see the options are still in English when they should be in French.

Environment

Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.46.0-alpha (8d01c6d) 22:48, 27 November 2025.

Screenshots

untranslated_expiry_options.png (369×379 px, 31 KB)

Event Timeline

@dom_walden have you tried testing on a wiki where the content language is not English? The options in that dropdown are configured to only be shown in the content language (though that may need to be changed)

@dom_walden have you tried testing on a wiki where the content language is not English? The options in that dropdown are configured to only be shown in the content language (though that may need to be changed)

If this is how it is supposed to behave then feel free to mark this as invalid. Thanks.