r67632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67631‎ | r67632 | r67633 >
Date:16:17, 8 June 2010
Author:raymond
Status:ok
Tags:
Comment:
Some tweaks for proper i18n
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/InterwikiIntegration/InterwikiIntegration.alias.php (added) (history)
  • /trunk/extensions/InterwikiIntegration/InterwikiIntegration.i18n.php (modified) (history)
  • /trunk/extensions/InterwikiIntegration/InterwikiIntegration.php (modified) (history)
  • /trunk/extensions/InterwikiIntegration/SpecialInterwikiIntegration.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/InterwikiIntegration/InterwikiIntegration.php
@@ -31,7 +31,7 @@
3232 'name' => 'Interwiki Integration',
3333 'author' => 'Tisane',
3434 'url' => 'http://www.mediawiki.org/wiki/Extension:InterwikiIntegration',
35 - 'descriptionmsg' => 'integration-desc',
 35+ 'descriptionmsg' => 'interwikiintegration-desc',
3636 'version' => '1.0.3',
3737 );
3838
@@ -39,6 +39,7 @@
4040 $wgAutoloadClasses['InterwikiIntegrationHooks'] = $dir . 'InterwikiIntegration.hooks.php';
4141 $wgAutoloadClasses['PopulateInterwikiIntegrationTable'] = "$dir/SpecialInterwikiIntegration.php";
4242 $wgExtensionMessagesFiles['InterwikiIntegration'] = $dir . 'InterwikiIntegration.i18n.php';
 43+$wgExtensionAliasesFiles['InterwikiIntegration'] = $dir . 'InterwikiIntegration.alias.php';
4344 $wgHooks['LoadExtensionSchemaUpdates'][] = 'InterwikiIntegrationHooks::InterwikiIntegrationCreateTable';
4445 $wgHooks['ArticleEditUpdates'][] = 'InterwikiIntegrationHooks::InterwikiIntegrationArticleEditUpdates';
4546 $wgHooks['LinkBegin'][] = 'InterwikiIntegrationHooks::InterwikiIntegrationLink';
Index: trunk/extensions/InterwikiIntegration/SpecialInterwikiIntegration.php
@@ -100,7 +100,7 @@
101101 );
102102 $dbw->insert ( 'integration_namespace', $newNamespaceRow);
103103 $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) );
104 - $wgOut->addWikiMsg( 'integration-setuptext', $wgSitename );
 104+ $wgOut->addWikiMsg( 'interwikiintegration-setuptext', $wgSitename );
105105 return;
106106 }
107107 }
Index: trunk/extensions/InterwikiIntegration/InterwikiIntegration.alias.php
@@ -0,0 +1,17 @@
 2+<?php
 3+/**
 4+ * Aliases for the InterwikiIntegration extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English
 13+ * @author Tisane
 14+ */
 15+$aliases['en'] = array(
 16+ 'PopulateInterwikiIntegrationTable' => array( 'PopulateInterwikiIntegrationTable' ),
 17+);
 18+
Property changes on: trunk/extensions/InterwikiIntegration/InterwikiIntegration.alias.php
___________________________________________________________________
Name: svn:eol-style
119 + native
Index: trunk/extensions/InterwikiIntegration/InterwikiIntegration.i18n.php
@@ -6,20 +6,15 @@
77
88 $messages = array();
99
10 -/* English
 10+/** English
1111 * @author Tisane
1212 */
1313 $messages['en'] = array(
14 - 'integration' => 'InterwikiIntegration',
15 - 'integration-desc' => 'Comprehensive interwiki integration',
 14+ 'interwikiintegration' => 'InterwikiIntegration',
 15+ 'interwikiintegration-desc' => 'Comprehensive interwiki integration',
1616 'populateinterwikiintegrationtable' => 'Populate interwiki integration table',
17 - 'integration-setuptext' => '$1\'s tables have been configured. Be sure '
18 - .'to configure the tables on your other wikis as well.'
 17+ 'interwikiintegration-setuptext' => "$1s tables have been configured.
 18+Be sure to configure the tables on your other wikis as well.",
 19+ 'right-integration' => 'Populate the interwiki integration table',
1920 );
2021
21 -$aliases = array();
22 -
23 -$aliases['en'] = array(
24 - 'PopulateInterwikiIntegrationTable' => array( 'PopulateInterwikiIntegrationTable' ),
25 - );
26 -
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -575,6 +575,9 @@
576576 optional = interwiki_defaulturl, interwiki_url, interwiki-url-label
577577 ignored = interwiki_logentry, interwiki_defaulturl
578578
 579+Interwiki Integration
 580+aliasfile = InterwikiIntegration/InterwikiIntegration.alias.php
 581+
579582 Interwiki List
580583 aliasfile = InterwikiList/InterwikiList.alias.php
581584

Follow-up revisions

RevisionCommit summaryAuthorDate
r67635Follow-up r67632: Per Siebrand: that's special page title and title in Speci...raymond16:34, 8 June 2010

Status & tagging log