r63004 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63003‎ | r63004 | r63005 >
Date:13:16, 26 February 2010
Author:raymond
Status:ok
Tags:
Comment:
Add i18n file and add extension to translatewiki
Modified paths:
  • /trunk/extensions/DynamicSidebar/DynamicSidebar.i18n.php (added) (history)
  • /trunk/extensions/DynamicSidebar/DynamicSidebar.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/DynamicSidebar/DynamicSidebar.i18n.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Internationalisation file for DynamicSidebar extension.
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+$messages['en'] = array(
 13+ 'dynamicsidebar-desc' => 'Provides dynamic sidebars based on user pages, groups, and categories',
 14+);
 15+
Index: trunk/extensions/DynamicSidebar/DynamicSidebar.php
@@ -42,10 +42,13 @@
4343 'author' => 'Ryan Lane',
4444 'url' => 'http://www.mediawiki.org/wiki/Extension:DynamicSidebar',
4545 'description' => 'Provides dynamic sidebars based on user pages, groups, and categories.',
46 - );
 46+ 'descriptionmsg' => 'dynamicsidebar-desc',
 47+);
4748
4849 $wgExtensionFunctions[] = array( 'DynamicSidebar', 'setup' );
4950 $wgHooks['SkinBuildSidebar'][] = 'DynamicSidebar::modifySidebar';
5051
5152 $dir = dirname( __FILE__ ) . '/';
5253 $wgAutoloadClasses['DynamicSidebar'] = $dir . 'DynamicSidebar.body.php';
 54+$wgExtensionMessagesFiles['DynamicSidebar'] = $dir . 'DynamicSidebar.i18n.php';
 55+
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -329,6 +329,8 @@
330330
331331 Duplicator
332332
 333+Dynamic Sidebar
 334+
333335 Edit Count
334336 aliasfile = Editcount/SpecialEditcount.alias.php
335337 file = Editcount/SpecialEditcount.i18n.php

Status & tagging log