Index: trunk/extensions/Sudo/Sudo.php |
— | — | @@ -30,16 +30,18 @@ |
31 | 31 | |
32 | 32 | // Extension credits that will show up on Special:Version |
33 | 33 | $wgExtensionCredits['other'][] = array( |
| 34 | + 'path' => __FILE__, |
34 | 35 | 'name' => 'Sudo', |
35 | | - 'version' => '0.2', |
| 36 | + 'version' => '0.2.1', |
36 | 37 | 'author' => '[http://www.mediawiki.org/wiki/User:Dantman Daniel Friesen] [mailto:Daniel%20Friesen%20%3Cmediawiki@danielfriesen.name%3E <mediawiki@danielfriesen.name>]', |
37 | | - 'description' => 'Allows sudoers to login as other users.', |
| 38 | + 'descriptionmsg' => 'sudo-desc', |
38 | 39 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Sudo', |
39 | 40 | ); |
40 | 41 | |
41 | 42 | // Set up i18n and the new special page |
42 | 43 | $dir = dirname( __FILE__ ) . '/'; |
43 | 44 | $wgExtensionMessagesFiles['Sudo'] = $dir . 'Sudo.i18n.php'; |
| 45 | +$wgExtensionAliasesFiles['Sudo'] = $dir . 'Sudo.alias.php'; |
44 | 46 | $wgAutoloadClasses['SpecialSudo'] = $dir . 'SpecialSudo.php'; |
45 | 47 | $wgSpecialPages['Sudo'] = 'SpecialSudo'; |
46 | 48 | $wgSpecialPageGroups['Sudo'] = 'users'; |
Index: trunk/extensions/Sudo/Sudo.alias.php |
— | — | @@ -0,0 +1,21 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for Special:Sudo |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$specialPageAliases = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Daniel Friesen |
| 14 | + */ |
| 15 | +$specialPageAliases['en'] = array( |
| 16 | + 'Sudo' => array( 'Sudo' ), |
| 17 | +); |
| 18 | + |
| 19 | +/** |
| 20 | + * For backwards compatibility with MediaWiki 1.15 and earlier. |
| 21 | + */ |
| 22 | +$aliases =& $specialPageAliases; |
\ No newline at end of file |
Property changes on: trunk/extensions/Sudo/Sudo.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 23 | + native |
Index: trunk/extensions/Sudo/Sudo.i18n.php |
— | — | @@ -30,17 +30,18 @@ |
31 | 31 | $messages['en'] = array( |
32 | 32 | 'sudo' => "Log into another user's account", |
33 | 33 | 'unsudo' => 'Return to your account', |
| 34 | + 'sudo-desc' => 'Allows sudoers to login as other users', |
34 | 35 | 'sudo-personal-unsudo' => 'Return to your account', |
35 | 36 | 'sudo-form' => 'Login to:', |
36 | | - 'sudo-user' => 'Username: ', |
37 | | - 'sudo-reason' => 'Reason: ', |
| 37 | + 'sudo-user' => 'Username:', |
| 38 | + 'sudo-reason' => 'Reason:', |
38 | 39 | 'sudo-submit' => 'Login', |
39 | 40 | 'sudo-unsudo' => 'Welcome $1, you are currently logged into the wiki as $2, just submit the form to return to your normal login.', |
40 | 41 | 'sudo-unsudo-submit' => 'Return', |
41 | 42 | 'sudo-success' => 'Welcome $1, you are now logged into the wiki as $2.', |
42 | 43 | 'sudo-error' => 'Sudo error: $1', |
43 | 44 | 'sudo-error-sudo-invaliduser' => 'Invalid username', |
44 | | - 'sudo-error-sudo-ip' => 'Cannot login to an IP', |
| 45 | + 'sudo-error-sudo-ip' => 'Cannot login to an IP address', |
45 | 46 | 'sudo-error-sudo-nonexistent' => 'That user does not exist', |
46 | 47 | 'sudo-error-sudo-self' => 'Cannot sudo into yourself', |
47 | 48 | 'sudo-error-nosudo' => 'You do not appear to be inside of a sudo login', |
— | — | @@ -49,3 +50,4 @@ |
50 | 51 | 'sudo-logentry' => "logged into $2's account", |
51 | 52 | 'right-sudo' => "Login to another user's account", |
52 | 53 | ); |
| 54 | + |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -1215,6 +1215,9 @@ |
1216 | 1216 | Sub Page List 3 |
1217 | 1217 | descmsg = spl3-desc |
1218 | 1218 | |
| 1219 | +Sudo |
| 1220 | +aliasfile = Sudo/Sudo.alias.php |
| 1221 | + |
1219 | 1222 | SVG Zoom |
1220 | 1223 | ignored = svgzoom |
1221 | 1224 | |