Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -433,13 +433,21 @@ |
434 | 434 | $autogrouplistintro = wfMessage( 'userrights-groupsmember-auto', $count)->parse(); |
435 | 435 | $grouplist .= '<p>' . $autogrouplistintro . ' ' . $this->getLang()->listToText( $autolist ) . "</p>\n"; |
436 | 436 | } |
| 437 | + |
| 438 | + $userToolLinks = Linker::userToolLinks( |
| 439 | + $user->getId(), |
| 440 | + $user->getName(), |
| 441 | + false, /* default for redContribsWhenNoEdits */ |
| 442 | + Linker::TOOL_LINKS_EMAIL /* Add "send e-mail" link */ |
| 443 | + ); |
| 444 | + |
437 | 445 | $this->getOutput()->addHTML( |
438 | 446 | Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getLocalURL(), 'name' => 'editGroup', 'id' => 'mw-userrights-form2' ) ) . |
439 | 447 | Html::hidden( 'user', $this->mTarget ) . |
440 | 448 | Html::hidden( 'wpEditToken', $this->getUser()->editToken( $this->mTarget ) ) . |
441 | 449 | Xml::openElement( 'fieldset' ) . |
442 | 450 | Xml::element( 'legend', array(), wfMsg( 'userrights-editusergroup' ) ) . |
443 | | - wfMsgExt( 'editinguser', array( 'parse' ), wfEscapeWikiText( $user->getName() ) ) . |
| 451 | + wfMsgExt( 'editinguser', array( 'parse' ), wfEscapeWikiText( $user->getName() ), $userToolLinks ) . |
444 | 452 | wfMsgExt( 'userrights-groups-help', array( 'parse' ) ) . |
445 | 453 | $grouplist . |
446 | 454 | Xml::tags( 'p', null, $this->groupCheckboxes( $groups ) ) . |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -1475,7 +1475,9 @@ |
1476 | 1476 | 'editusergroup' => 'Button name, in page [[Special:Userrights]] (only available to administrators), in the section named {{MediaWiki:userrights-lookup-user}}. |
1477 | 1477 | |
1478 | 1478 | {{Identical|Edit user groups}}', |
1479 | | -'editinguser' => "Appears on [[Special:UserRights]]. The '''last part''' of the message '''should remain completely untranslated''', but if your language has S-O-V word order, the verb can follow it.", |
| 1479 | +'editinguser' => "Appears on [[Special:UserRights]]. Parameters: |
| 1480 | +* $1 is a username |
| 1481 | +* $2 are user tool links. Example: \"(Talk | contribs | block | send e-mail)\".", |
1480 | 1482 | 'userrights-editusergroup' => '{{Identical|Edit user groups}}', |
1481 | 1483 | 'saveusergroups' => 'Button text when editing user groups', |
1482 | 1484 | 'userrights-groupsmember' => 'Used when editing user groups in [[Special:Userrights]]. The messsage is followed by a list of group names. |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1885,7 +1885,7 @@ |
1886 | 1886 | 'userrights-lookup-user' => 'Manage user groups', |
1887 | 1887 | 'userrights-user-editname' => 'Enter a username:', |
1888 | 1888 | 'editusergroup' => 'Edit user groups', |
1889 | | -'editinguser' => "Changing user rights of user '''[[User:$1|$1]]''' ([[User talk:$1|{{int:talkpagelinktext}}]]{{int:pipe-separator}}[[Special:Contributions/$1|{{int:contribslink}}]])", |
| 1889 | +'editinguser' => "Changing user rights of user '''[[User:$1|$1]]''' $2", |
1890 | 1890 | 'userrights-editusergroup' => 'Edit user groups', |
1891 | 1891 | 'saveusergroups' => 'Save user groups', |
1892 | 1892 | 'userrights-groupsmember' => 'Member of:', |