Page MenuHomePhabricator

Can't localize some user groups in Special:Listusers
Closed, ResolvedPublic

Description

The following user groups: import, transwiki, developer and oversight can't be localized in the user group selector in [[ar:Special:Listusers]]. They are always displayed in English. Other user groups can be localized as expected. There should be a way to fix this. Thanks.


Version: unspecified
Severity: enhancement
URL: http://ar.wikipedia.org/wiki/%D8%AE%D8%A7%D8%B5:%D8%B9%D8%B1%D8%B6_%D8%A7%D9%84%D9%85%D8%B3%D8%AA%D8%AE%D8%AF%D9%85%D9%8A%D9%86

Details

Reference
bz12996

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:05 PM
bzimport set Reference to bz12996.
bzimport added a subscriber: Unknown Object (MLST).

They can be localized by editing 'group-*', 'group-*-member' and 'grouppage-*'. But it is true that this can only be done locally, they can't be localized in the MediaWiki software or an extension.
Oversight is an extension so the messages can be added to HideRevision.i18n.php.
Other groups are Wikimedia-specific.

Created attachment 4644
Patch for messages to be added to HideRevision.i18n.php (Oversight)

Attached:

Group:Oversight is not a default group. It's a Wikimedia specific setting.

From HideRevision.php:

// The 'hiderevision' permission allows use of revision hiding.
$wgGroupPermissions['*']['hiderevision'] = false;

// 'oversight' permission is required to view a previously-hidden revision.
$wgGroupPermissions['*']['oversight'] = false;

You could add a group like this:
$wgGroupPermissions['censor']['hiderevision'] = true;
// $wgGroupPermissions['quiscustodiet']['oversight'] = true;

Maybe it should make life easier to define such a group as default? And change the above last 3 lines to:

// Default oversight rights:
$wgGroupPermissions['oversight']['hiderevision'] = true;
$wgGroupPermissions['oversight']['oversight'] = true;

I just saw that the messages for Oversight have been added to HideRevision.i18n.php in r31714.

Reopen, only oversight has been fixed, but the Wikimedia-specific groups 'import', 'transwiki' and 'developer' can't be localized.
Maybe we can make a (Wikimedia-specific) extension just for this.

(In reply to comment #5)

Reopen, only oversight has been fixed, but the Wikimedia-specific groups
'import', 'transwiki' and 'developer' can't be localized.
Maybe we can make a (Wikimedia-specific) extension just for this.

They can be localized to some degree by editing MediaWiki:group-import and MediaWiki:group-import-member. An extension providing these messages could also be useful, agreed.

There is now a new extension, WikimediaMessages, for the donate-related messages.
I suggest to add the messages for the groups developer, import and transwiki to that extension.

(In reply to comment #7)

There is now a new extension, WikimediaMessages, for the donate-related
messages.
I suggest to add the messages for the groups developer, import and transwiki to
that extension.

Added with r37461.