r77170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77169‎ | r77170 | r77171 >
Date:17:30, 23 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r77000: Add i18n file
Add extension to Translatewiki
Modified paths:
  • /trunk/extensions/Description2/Description2.i18n.php (added) (history)
  • /trunk/extensions/Description2/Description2.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Description2/Description2.i18n.php
@@ -0,0 +1,17 @@
 2+<?php
 3+/**
 4+ * Internationalisation for Description2 extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+/** English
 13+ * @author Daniel Friesen
 14+ */
 15+$messages['en'] = array(
 16+ 'description2-desc' => 'Adds a description meta-tag to MediaWiki pages and into the ParserOutput for other extensions to use',
 17+);
 18+
Property changes on: trunk/extensions/Description2/Description2.i18n.php
___________________________________________________________________
Added: svn:eol-style
119 + native
Index: trunk/extensions/Description2/Description2.php
@@ -28,12 +28,15 @@
2929 $wgExtensionCredits['other'][] = array(
3030 'path' => __FILE__,
3131 'name' => 'Description2',
32 - 'version' => "0.1",
 32+ 'version' => '0.1.1',
3333 'author' => 'Daniel Friesen',
3434 'url' => 'http://www.mediawiki.org/wiki/Extension:Description2',
35 - 'description' => 'Adds a description meta-tag to MW pages and into the ParserOutput for other extensions to use',
 35+ 'descriptionmsg' => 'description2-desc',
3636 );
3737
 38+$dir = dirname( __FILE__ );
 39+$wgExtensionMessagesFiles['Description2'] = $dir . '/Description2.i18n.php';
 40+
3841 $wgHooks['ParserAfterTidy'][] = 'egDescription2ParserAfterTidy';
3942 function egDescription2ParserAfterTidy( &$parser, &$text ) {
4043 global $wgContLang;
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -323,6 +323,8 @@
324324 aliasfile = DeleteQueue/DeleteQueue.alias.php
325325 optional = deletequeue-prod-reasons, deletequeue-speedy-reasons
326326
 327+Description2
 328+
327329 Did You Mean
328330
329331 Discussion Threading

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77000Commit Description2 and OpenGraphMeta extensionsdantman01:40, 19 November 2010

Status & tagging log