Follow-up r77000: Add i18n file

Add extension to Translatewiki
This commit is contained in:
Raimond Spekking 2010-11-23 17:30:16 +00:00
parent 10619cde8e
commit 432e086c12
2 changed files with 22 additions and 2 deletions

17
Description2.i18n.php Normal file
View file

@ -0,0 +1,17 @@
<?php
/**
* Internationalisation for Description2 extension
*
* @file
* @ingroup Extensions
*/
$messages = array();
/** English
* @author Daniel Friesen
*/
$messages['en'] = array(
'description2-desc' => 'Adds a description meta-tag to MediaWiki pages and into the ParserOutput for other extensions to use',
);

View file

@ -28,12 +28,15 @@ if ( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki packa
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'Description2',
'version' => "0.1",
'version' => '0.1.1',
'author' => 'Daniel Friesen',
'url' => 'http://www.mediawiki.org/wiki/Extension:Description2',
'description' => 'Adds a description meta-tag to MW pages and into the ParserOutput for other extensions to use',
'descriptionmsg' => 'description2-desc',
);
$dir = dirname( __FILE__ );
$wgExtensionMessagesFiles['Description2'] = $dir . '/Description2.i18n.php';
$wgHooks['ParserAfterTidy'][] = 'egDescription2ParserAfterTidy';
function egDescription2ParserAfterTidy( &$parser, &$text ) {
global $wgContLang;