r37410 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37409‎ | r37410 | r37411 >
Date:16:57, 9 July 2008
Author:jhsoby
Status:old
Tags:
Comment:
* Adding special page alias in Makebot and Makesysop
* Fixing redundancy in SpecialRenameuser.alias.php
* Adding alias files for Makebot and Makesysop to alias.txt in Translate
Modified paths:
  • /trunk/extensions/Makebot/Makebot.alias.php (added) (history)
  • /trunk/extensions/Makebot/Makebot.php (modified) (history)
  • /trunk/extensions/Makesysop/SpecialMakesysop.alias.php (added) (history)
  • /trunk/extensions/Makesysop/SpecialMakesysop.php (modified) (history)
  • /trunk/extensions/Renameuser/SpecialRenameuser.alias.php (modified) (history)
  • /trunk/extensions/Translate/aliases.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.alias.php
@@ -11,7 +11,7 @@
1212 * @author Jon Harald Søby
1313 */
1414 $aliases['en'] = array(
15 - 'Renameuser' => array('RenameUser', 'Renameuser')
 15+ 'Renameuser' => array('RenameUser')
1616 );
1717
1818 /** Norwegian (Norsk (bokmål))
Index: trunk/extensions/Makesysop/SpecialMakesysop.php
@@ -26,6 +26,7 @@
2727
2828 # Internationalisation file
2929 $wgExtensionMessagesFiles['Makesysop'] = "$dir/SpecialMakesysop.i18n.php";
 30+$wgExtensionAliasesFiles['Makesysop'] = "$dir/SpecialMakesysop.alias.php";
3031
3132 // Set groups to the appropriate sysop/bureaucrat structure:
3233 // * Steward can do 'full' work (makesysop && userrights)
Index: trunk/extensions/Makesysop/SpecialMakesysop.alias.php
@@ -0,0 +1,22 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:Makesysop
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$aliases = array();
 10+
 11+/** English
 12+ * @author Jon Harald Søby
 13+ */
 14+$aliases['en'] = array(
 15+ 'Makesysop' => array('MakeSysop')
 16+);
 17+
 18+/** Norwegian (Norsk (bokmål))
 19+ * @author Jon Harald Søby
 20+ */
 21+$aliases['no'] = array(
 22+ 'Makesysop' => array('Gjør_en_bruker_til_administrator')
 23+);
Index: trunk/extensions/Makebot/Makebot.alias.php
@@ -0,0 +1,22 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:Makebot
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$aliases = array();
 10+
 11+/** English
 12+ * @author Jon Harald Søby
 13+ */
 14+$aliases['en'] = array(
 15+ 'Makebot' => array('MakeBot')
 16+);
 17+
 18+/** Norwegian (Norsk (bokmål))
 19+ * @author Jon Harald Søby
 20+ */
 21+$aliases['no'] = array(
 22+ 'Makebot' => array('Gi_eller_fjern_botstatus')
 23+);
Index: trunk/extensions/Makebot/Makebot.php
@@ -31,6 +31,7 @@
3232 */
3333 $dir = dirname(__FILE__) . '/';
3434 $wgExtensionMessagesFiles['Makebot'] = $dir . 'Makebot.i18n.php';
 35+ $wgExtensionAliasesFiles['Makebot'] = $dir . 'Makebot.alias.php';
3536
3637 /**
3738 * Determines who can use the extension; as a default, bureaucrats are permitted
Index: trunk/extensions/Translate/aliases.txt
@@ -10,6 +10,12 @@
1111 DeletedContributions
1212 file = DeletedContributions/DeletedContributions.i18n.alias.php
1313
 14+Makebot
 15+file = Makebot/Makebot.alias.php
 16+
 17+Makesysop
 18+file = Makesysop/SpecialMakesysop.alias.php
 19+
1420 Renameuser
1521 file = Renameuser/SpecialRenameuser.alias.php
1622

Status & tagging log