Follow-up r77000: Add i18n file
Add extension to Translatewiki
This commit is contained in:
parent
10619cde8e
commit
432e086c12
17
Description2.i18n.php
Normal file
17
Description2.i18n.php
Normal 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',
|
||||
);
|
||||
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue