* (bug 10812) Interwiki links can have names and descriptions, fetched from
message 'interwiki-desc-PREFIX', not really used anywhere yet though
* (bug 9691) Add type (signup or login) parameter to AuthPlugin::ModifyUITemplate()
+* (bug 14454) "Member of group(s)" in Special:Preferences causes language difficulties
=== Bug fixes in 1.16 ===
# Get groups to which the user belongs
$userEffectiveGroups = $user->getEffectiveGroups();
- $userEffectiveGroupsArray = array();
+ $userGroups = $userMembers = array();
foreach( $userEffectiveGroups as $ueg ) {
if( $ueg == '*' ) {
// Skip the default * group, seems useless here
continue;
}
- $userEffectiveGroupsArray[] = User::makeGroupLinkHTML( $ueg );
+ $groupName = User::getGroupName( $ueg );
+ $userGroups[] = User::makeGroupLinkHTML( $ueg, $groupName );
+
+ $memberName = User::getGroupMember( $ueg );
+ $userMembers[] = User::makeGroupLinkHTML( $ueg, $memberName );
}
- asort( $userEffectiveGroupsArray );
+ asort( $userGroups );
+ asort( $userMembers );
$defaultPreferences['usergroups'] =
array(
'type' => 'info',
'label' => wfMsgExt( 'prefs-memberingroups', 'parseinline',
- count( $userEffectiveGroupsArray ) ),
- 'default' => $wgLang->commaList( $userEffectiveGroupsArray ),
+ $wgLang->formatNum( count($userGroups) ) ),
+ 'default' => wfMsgExt( 'prefs-memberingroups-type', array(),
+ $wgLang->commaList( $userGroups ),
+ $wgLang->commaList( $userMembers )
+ ),
'raw' => true,
'section' => 'personal/info',
);
'username' => 'Username:',
'uid' => 'User ID:',
'prefs-memberingroups' => 'Member of {{PLURAL:$1|group|groups}}:',
+'prefs-memberingroups-type' => '$1',
'prefs-registration' => 'Registration time:',
'prefs-registration-date-time' => '$1', # only translate this message to other languages if you have to change it
'yourrealname' => 'Real name:',
'htmlform-int-toolow' => 'The value you specified is below the minimum of $1',
'htmlform-int-toohigh' => 'The value you specified is above the maximum of $1',
'htmlform-submit' => 'Submit',
-'htmlform-reset' => 'Undo changes',
-'htmlform-selectorother-other' => 'Other',
+'htmlform-reseta' => 'Undo changes',
+'htmlform-selectorother-other' => 'Othera',
);
{{Identical|E-mail}}',
'username' => '{{Identical|Username}}',
'uid' => '{{Identical|User ID}}',
-'prefs-memberingroups' => 'This message is shown on [[Special:Preferences]], first tab, where it is follwed by a colon.',
+'prefs-memberingroups' => 'This message is shown on [[Special:Preferences]], first tab, where it is follwed by a colon. See also prefs-memberingroups-type.',
+'prefs-memberingroups-type' => '$1 is list of group names, $2 is list of group member names. Label for these is prefs-memberingroups.',
'prefs-registration' => 'Used in [[Special:Preferences]].',
'prefs-registration-date-time' => '{{optional}}
Used in [[Special:Preferences]]. Parameters are:
'username',
'uid',
'prefs-memberingroups',
+ 'prefs-memberingroups-type',
'prefs-registration',
'prefs-registration-date-time',
'yourrealname',