r37411 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37410‎ | r37411 | r37412 >
Date:17:06, 9 July 2008
Author:jhsoby
Status:old
Tags:
Comment:
* Adding special page alias in ExpandTemplates
* Adding alias files for ExpandTemplates to aliases.txt in Translate
* Removing redundant extensions (Makebot and Makesysop) from aliases.txt in Translate, per Nikerabbit
Modified paths:
  • /trunk/extensions/ExpandTemplates/ExpandTemplates.alias.php (added) (history)
  • /trunk/extensions/ExpandTemplates/ExpandTemplates.php (modified) (history)
  • /trunk/extensions/Translate/aliases.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ExpandTemplates/ExpandTemplates.php
@@ -22,6 +22,7 @@
2323 );
2424
2525 $wgExtensionMessagesFiles['ExpandTemplates'] = dirname(__FILE__) . '/ExpandTemplates.i18n.php';
 26+$wgExtensionAliasesFiles['ExpandTemplates'] = dirname(__FILE__) . '/ExpandTemplates.alias.php';
2627 $wgSpecialPageGroups['ExpandTemplates'] = 'wiki';
2728
2829 if ( !function_exists( 'extAddSpecialPage' ) ) {
Index: trunk/extensions/ExpandTemplates/ExpandTemplates.alias.php
@@ -0,0 +1,22 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:ExpandTemplates
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$aliases = array();
 10+
 11+/** English
 12+ * @author Jon Harald Søby
 13+ */
 14+$aliases['en'] = array(
 15+ 'ExpandTemplates' => array('ExpandTemplates')
 16+);
 17+
 18+/** Norwegian (Norsk (bokmål))
 19+ * @author Jon Harald Søby
 20+ */
 21+$aliases['no'] = array(
 22+ 'ExpandTemplates' => array('Utvid_maler')
 23+);
Index: trunk/extensions/Translate/aliases.txt
@@ -10,12 +10,9 @@
1111 DeletedContributions
1212 file = DeletedContributions/DeletedContributions.i18n.alias.php
1313
14 -Makebot
15 -file = Makebot/Makebot.alias.php
 14+ExpandTemplates
 15+file = ExpandTemplates/ExpandTemplates.alias.php
1616
17 -Makesysop
18 -file = Makesysop/SpecialMakesysop.alias.php
19 -
2017 Renameuser
2118 file = Renameuser/SpecialRenameuser.alias.php
2219

Status & tagging log