Index: trunk/extensions/EditUser/EditUser_body.php |
— | — | @@ -31,12 +31,12 @@ |
32 | 32 | } |
33 | 33 | $targetuser = User::NewFromName( $this->target ); |
34 | 34 | if( $targetuser->getID() == 0 ) { |
35 | | - $wgOut->addWikiText( wfMsg( 'edituser-nouser' ) ); |
| 35 | + $wgOut->addWikiMsg( 'edituser-nouser', htmlspecialchars( $this->target ) ); |
36 | 36 | return; |
37 | 37 | } |
38 | 38 | #Allow editing self via this interface |
39 | 39 | if( $targetuser->isAllowed( 'edituser-exempt' ) && $targetuser->getName() != $wgUser->getName() ) { |
40 | | - $wgOut->addWikiText( wfMsg( 'edituser-exempt' ) ); |
| 40 | + $wgOut->addWikiMsg( 'edituser-exempt', $targetuser->getName() ); |
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
Index: trunk/extensions/EditUser/EditUser.i18n.php |
— | — | @@ -16,8 +16,8 @@ |
17 | 17 | 'edituser' => 'Edit user', |
18 | 18 | 'edituser-username' => 'Username:', |
19 | 19 | 'edituser-dosearch' => 'Search', |
20 | | - 'edituser-nouser' => 'The specified user does not exist.', |
21 | | - 'edituser-exempt' => 'The specified user cannot be edited.', |
| 20 | + 'edituser-nouser' => 'The user "$1" does not exist.', |
| 21 | + 'edituser-exempt' => 'The user "$1" cannot be edited.', |
22 | 22 | 'right-edituser' => 'Edit the preferences of other users', |
23 | 23 | 'right-edituser-exempt' => "Others cannot edit this user's preferences", |
24 | 24 | ); |