r77964 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77963‎ | r77964 | r77965 >
Date:08:28, 7 December 2010
Author:raymond
Status:ok
Tags:
Comment:
Add alias file
Tweak messages for consistency
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/Sudo/Sudo.alias.php (added) (history)
  • /trunk/extensions/Sudo/Sudo.i18n.php (modified) (history)
  • /trunk/extensions/Sudo/Sudo.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Sudo/Sudo.php
@@ -30,16 +30,18 @@
3131
3232 // Extension credits that will show up on Special:Version
3333 $wgExtensionCredits['other'][] = array(
 34+ 'path' => __FILE__,
3435 'name' => 'Sudo',
35 - 'version' => '0.2',
 36+ 'version' => '0.2.1',
3637 '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',
3839 'url' => 'http://www.mediawiki.org/wiki/Extension:Sudo',
3940 );
4041
4142 // Set up i18n and the new special page
4243 $dir = dirname( __FILE__ ) . '/';
4344 $wgExtensionMessagesFiles['Sudo'] = $dir . 'Sudo.i18n.php';
 45+$wgExtensionAliasesFiles['Sudo'] = $dir . 'Sudo.alias.php';
4446 $wgAutoloadClasses['SpecialSudo'] = $dir . 'SpecialSudo.php';
4547 $wgSpecialPages['Sudo'] = 'SpecialSudo';
4648 $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
123 + native
Index: trunk/extensions/Sudo/Sudo.i18n.php
@@ -30,17 +30,18 @@
3131 $messages['en'] = array(
3232 'sudo' => "Log into another user's account",
3333 'unsudo' => 'Return to your account',
 34+ 'sudo-desc' => 'Allows sudoers to login as other users',
3435 'sudo-personal-unsudo' => 'Return to your account',
3536 'sudo-form' => 'Login to:',
36 - 'sudo-user' => 'Username: ',
37 - 'sudo-reason' => 'Reason: ',
 37+ 'sudo-user' => 'Username:',
 38+ 'sudo-reason' => 'Reason:',
3839 'sudo-submit' => 'Login',
3940 'sudo-unsudo' => 'Welcome $1, you are currently logged into the wiki as $2, just submit the form to return to your normal login.',
4041 'sudo-unsudo-submit' => 'Return',
4142 'sudo-success' => 'Welcome $1, you are now logged into the wiki as $2.',
4243 'sudo-error' => 'Sudo error: $1',
4344 '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',
4546 'sudo-error-sudo-nonexistent' => 'That user does not exist',
4647 'sudo-error-sudo-self' => 'Cannot sudo into yourself',
4748 'sudo-error-nosudo' => 'You do not appear to be inside of a sudo login',
@@ -49,3 +50,4 @@
5051 'sudo-logentry' => "logged into $2's account",
5152 'right-sudo' => "Login to another user's account",
5253 );
 54+
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1215,6 +1215,9 @@
12161216 Sub Page List 3
12171217 descmsg = spl3-desc
12181218
 1219+Sudo
 1220+aliasfile = Sudo/Sudo.alias.php
 1221+
12191222 SVG Zoom
12201223 ignored = svgzoom
12211224

Status & tagging log