From 4909deab9397c1a30eec99b1969f7aaa1143ae3d Mon Sep 17 00:00:00 2001 From: robin Date: Sat, 12 May 2012 03:24:10 +0200 Subject: [PATCH] Add username as parameter for gender support Change-Id: I66ec154e6d62172321f983f6898fa074d53e0e23 --- includes/specials/SpecialUserrights.php | 4 ++-- languages/messages/MessagesQqq.php | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 3947f3a5a4..8c244c4236 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -423,12 +423,12 @@ class UserrightsPage extends SpecialPage { $grouplist = ''; $count = count( $list ); if( $count > 0 ) { - $grouplist = $this->msg( 'userrights-groupsmember', $count )->parse(); + $grouplist = $this->msg( 'userrights-groupsmember', $count, $user->getName() )->parse(); $grouplist = '

' . $grouplist . ' ' . $this->getLanguage()->listToText( $list ) . "

\n"; } $count = count( $autolist ); if( $count > 0 ) { - $autogrouplistintro = $this->msg( 'userrights-groupsmember-auto', $count )->parse(); + $autogrouplistintro = $this->msg( 'userrights-groupsmember-auto', $count, $user->getName() )->parse(); $grouplist .= '

' . $autogrouplistintro . ' ' . $this->getLanguage()->listToText( $autolist ) . "

\n"; } diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 8afc08e526..292fc0f337 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -1534,12 +1534,14 @@ Used in [[Special:Preferences]], tab "Watchlist". The display options refer to: 'userrights-groupsmember' => 'Used when editing user groups in [[Special:Userrights]]. The messsage is followed by a list of group names. Parameters: -* $1 - optional, for PLURAL use, the number of items in the list following the message. Avoid PLURAL, if your language can do without.', +* $1 - optional, for PLURAL use, the number of items in the list following the message. Avoid PLURAL, if your language can do without. +* $2 - optional, a username that can be used for GENDER.', 'userrights-groupsmember-auto' => 'Used when editing user groups in [[Special:Userrights]]. The messsage is followed by a list of group names. "Implicit" is for groups that the user was automatically added to (such as "autoconfirmed"); cf. {{msg-mw|userrights-groupsmember}} Parameters: -* $1 - optional, for PLURAL use, the number of items in the list following the message. Please avoid PLURAL, if your language can do without.', +* $1 - optional, for PLURAL use, the number of items in the list following the message. Please avoid PLURAL, if your language can do without. +* $2 - optional, a username that can be used for GENDER.', 'userrights-groups-help' => 'Instructions displayed on [[Special:UserRights]]. Parameters: * $1 is a username - optional, can be used for GENDER', 'userrights-reason' => 'Text beside log field when editing user groups -- 2.20.1