r37394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37393‎ | r37394 | r37395 >
Date:15:09, 9 July 2008
Author:raymond
Status:old
Tags:
Comment:
* Add special page aliases file
Modified paths:
  • /trunk/extensions/Cite/SpecialCite.i18n.alias.php (added) (history)
  • /trunk/extensions/Cite/SpecialCite.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/SpecialCite.i18n.alias.php
@@ -0,0 +1,20 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:Cite
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$aliases = array();
 10+
 11+/** English */
 12+$aliases['en'] = array(
 13+ 'Cite' => array( 'Cite' ),
 14+);
 15+
 16+/** German
 17+ * @author Raimond Spekking
 18+ */
 19+$aliases['de'] = array(
 20+ 'Cite' => array( 'Zitierhilfe' ),
 21+);
Property changes on: trunk/extensions/Cite/SpecialCite.i18n.alias.php
___________________________________________________________________
Added: svn:eol-style
122 + native
Index: trunk/extensions/Cite/SpecialCite.php
@@ -6,7 +6,7 @@
77 *
88 * @addtogroup Extensions
99 *
10 - * @link http://meta.wikimedia.org/wiki/Cite/SpecialCite.php Documentation
 10+ * @link http://www.mediawiki.org/wiki/Extension:Cite/Special:Cite.php Documentation
1111 *
1212 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
1313 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
@@ -23,13 +23,14 @@
2424 'url' => 'http://www.mediawiki.org/wiki/Extension:Cite/Special:Cite.php'
2525 );
2626
 27+$dir = dirname(__FILE__) . '/';
2728 # Internationalisation file
28 -$wgExtensionMessagesFiles['SpecialCite'] = dirname( __FILE__ ) . "/SpecialCite.i18n.php";
 29+$wgExtensionMessagesFiles['SpecialCite'] = $dir . 'SpecialCite.i18n.php';
 30+$wgExtensionAliasesFiles['SpecialCite'] = $dir . 'SpecialCite.i18n.alias.php';
2931
3032 $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'wfSpecialCiteNav';
3133 $wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
3234
33 -$dir = dirname(__FILE__) . '/';
3435 $wgSpecialPages['Cite'] = 'SpecialCite';
3536 $wgAutoloadClasses['SpecialCite'] = $dir . 'SpecialCite_body.php';
3637

Status & tagging log