r76653 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76652‎ | r76653 | r76654 >
Date:09:12, 14 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Add alias file
Tweak extensionCredits
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/CreateRedirect/CreateRedirect.alias.php (added) (history)
  • /trunk/extensions/CreateRedirect/CreateRedirect.i18n.php (modified) (history)
  • /trunk/extensions/CreateRedirect/CreateRedirect.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -294,6 +294,9 @@
295295
296296 Create Box
297297
 298+Create Redirect
 299+aliasfile = CreateRedirect/CreateRedirect.alias.php
 300+
298301 Cross Namespace Links
299302 aliasfile = CrossNamespaceLinks/CrossNamespaceLinks.alias.php
300303
Index: trunk/extensions/CreateRedirect/CreateRedirect.alias.php
@@ -0,0 +1,17 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:CreateRedirect
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English
 13+ * @author Marco Zafra
 14+ */
 15+$aliases['en'] = array(
 16+ 'CreateRedirect' => array( 'CreateRedirect' ),
 17+);
 18+
Property changes on: trunk/extensions/CreateRedirect/CreateRedirect.alias.php
___________________________________________________________________
Added: svn:eol-style
119 + native
Index: trunk/extensions/CreateRedirect/CreateRedirect.i18n.php
@@ -13,10 +13,11 @@
1414 */
1515 $messages['en'] = array(
1616 'createredirect' => 'Create Redirect',
 17+ 'createredirect-desc' => 'Adds special page [[Special:CreateRedirect|CreateRedirect]] to easily create redirects',
1718 'createredirect-error' => 'ERROR: Authentication failed.' // TODO: Figure out error cases. One message just is not going to do. --Digi 11/5/07
1819 'createredirect-instructions' => 'Using the form below, you can create a redirect page or replace an existing page with a redirect.',
1920 'createredirect-page-title' => 'Page title:',
20 - 'createredirect-redirect-done' => 'Redirect created from $1 to $2',
 21+ 'createredirect-redirect-done' => 'Redirect created from "$1" to "$2"',
2122 'createredirect-redirect-to' => 'Redirect to:',
2223 'createredirect-save' => 'Save page',
23 -);
\ No newline at end of file
 24+);
Index: trunk/extensions/CreateRedirect/CreateRedirect.php
@@ -41,11 +41,12 @@
4242
4343 // Add this extension to Special:Credits.
4444 $wgExtensionCredits['specialpage'][] = array(
 45+ 'path' => __FILE__,
4546 'name' => 'CreateRedirect',
4647 'author' => 'Marco Zafra',
47 - 'version' => 1.0,
48 - 'description' => 'Adds [[Special:CreateRedirect]] to easily create redirects.',
 48+ 'version' => 1.0.1,
4949 'url' => 'http://www.mediawiki.org/wiki/Extension:CreateRedirect',
 50+ 'descriptionmsg' => 'createredirect-desc',
5051 );
5152
5253 // Set up the actual extension functionality.

Follow-up revisions

RevisionCommit summaryAuthorDate
r76654Follow-up r76653: fix syntax errorraymond09:14, 14 November 2010
r76661Follow-up r76653: Use new variableraymond18:05, 14 November 2010

Status & tagging log