Index: trunk/extensions/Sudo/SpecialSudo.php |
— | — | @@ -132,11 +132,10 @@ |
133 | 133 | } |
134 | 134 | |
135 | 135 | function showError( $error ) { |
136 | | - $wgOut->addHTML( |
137 | | - Xml::openElement('div', array( 'class' => 'sudo-error' )). |
138 | | - wfMsgHtml('sudo-error',wfMsg($error)). |
139 | | - Xml::closeElement('div') |
140 | | - ); |
| 136 | + global $wgOut; |
| 137 | + $wgOut->addHTML( Xml::openElement('div', array( 'class' => 'sudo-error' )) ); |
| 138 | + $wgOut->addWikiText( wfMsg('sudo-error',wfMsg($error)) ); |
| 139 | + $wgOut->addHTML( Xml::closeElement('div') ); |
141 | 140 | } |
142 | 141 | |
143 | 142 | function showErrors() { |
Index: trunk/extensions/Sudo/Sudo.i18n.php |
— | — | @@ -28,17 +28,17 @@ |
29 | 29 | * @author Daniel Friesen |
30 | 30 | */ |
31 | 31 | $messages['en'] = array( |
32 | | - 'sudo' => 'Sudo', |
33 | | - 'unsudo' => 'Unsudo', |
34 | | - 'sudo-personal-unsudo' => 'unsudo', |
35 | | - 'sudo-form' => 'Sudo into:', |
| 32 | + 'sudo' => "Log into another user's account", |
| 33 | + 'unsudo' => 'Return to your account', |
| 34 | + 'sudo-personal-unsudo' => 'Return to your account', |
| 35 | + 'sudo-form' => 'Login to:', |
36 | 36 | 'sudo-user' => 'Username: ', |
37 | 37 | 'sudo-reason' => 'Reason: ', |
38 | | - 'sudo-submit' => 'sudo', |
39 | | - 'sudo-unsudo' => 'Welcome $1, you are currently sudoed into the wiki as $2, just submit the form to return to your normal login.', |
40 | | - 'sudo-unsudo-submit' => 'unsudo', |
41 | | - 'sudo-success' => 'Welcome $1, you are now sudoed into the wiki as $2.', |
42 | | - 'sudo-error' => 'Could not Sudo: $1', |
| 38 | + 'sudo-submit' => 'Login', |
| 39 | + 'sudo-unsudo' => 'Welcome $1, you are currently logged into the wiki as $2, just submit the form to return to your normal login.', |
| 40 | + 'sudo-unsudo-submit' => 'Return', |
| 41 | + 'sudo-success' => 'Welcome $1, you are now logged into the wiki as $2.', |
| 42 | + 'sudo-error' => 'Sudo Error: $1', |
43 | 43 | 'sudo-error-sudo-invaliduser' => 'Invalid Username', |
44 | 44 | 'sudo-error-sudo-ip' => 'Cannot login to an IP', |
45 | 45 | 'sudo-error-sudo-nonexistant' => 'That user does not exist', |
— | — | @@ -46,6 +46,6 @@ |
47 | 47 | 'sudo-error-nosudo' => 'You do not appear to be inside of a sudo login', |
48 | 48 | 'sudo-logpagename' => 'Sudo log', |
49 | 49 | 'sudo-logpagetext' => 'This is a log of all uses of sudo.', |
50 | | - 'sudo-logentry' => 'sudoed into $2', |
| 50 | + 'sudo-logentry' => "logged into $2's account", |
51 | 51 | 'right-sudo' => "Login to another user's account", |
52 | 52 | ); |