r75526 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75525‎ | r75526 | r75527 >
Date:12:08, 27 October 2010
Author:raymond
Status:ok (Comments)
Tags:
Comment:
Add i18n file
Add extension to Translatewiki
Modified paths:
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)
  • /trunk/extensions/YouTube/YouTube.i18n.php (added) (history)
  • /trunk/extensions/YouTube/YouTube.php (modified) (history)

Diff [purge]

Index: trunk/extensions/YouTube/YouTube.i18n.php
@@ -0,0 +1,21 @@
 2+<?php
 3+/**
 4+ * Internationalisation for YouTube extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+$messages['en'] = array(
 13+ 'youtube-desc' => 'Embeds YouTube and Google Video movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video',
 14+);
 15+
 16+/** Message documentation (Message documentation)
 17+ * @author Raymond
 18+ */
 19+$messages['qqq'] = array(
 20+ 'youtube-desc' => '{{desc}}',
 21+);
 22+
Property changes on: trunk/extensions/YouTube/YouTube.i18n.php
___________________________________________________________________
Added: svn:eol-style
123 + native
Index: trunk/extensions/YouTube/YouTube.php
@@ -35,12 +35,16 @@
3636 }
3737
3838 $wgExtensionCredits['parserhook'][] = array(
 39+ 'path' => __FILE__,
3940 'name' => 'YouTube',
4041 'version' => '1.8.1',
4142 'author' => 'Przemek Piotrowski',
42 - 'description' => 'Embeds YouTube and Google Video movies + Archive.org audio and video + WeGame and Gametrailers video + Tangler forum + GoGreenTube video',
 43+ 'descriptionmsg' => 'youtube-desc',
4344 );
4445
 46+$dir = dirname( __FILE__ ) . '/';
 47+$wgExtensionMessagesFiles['YouTube'] = $dir . 'YouTube.i18n.php';
 48+
4549 $wgHooks['ParserFirstCallInit'][] = 'wfYouTube';
4650
4751 function wfYouTube( &$parser ) {
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1475,4 +1475,6 @@
14761476
14771477 XMLRC
14781478
 1479+YouTube
 1480+
14791481 YouTube Auth Sub

Comments

#Comment by Siebrand (talk | contribs)   13:38, 27 October 2010

You didn't update the version in $wgExtensionCredits. May want to do that in the future.

Status & tagging log