diff --git a/Description2.i18n.php b/Description2.i18n.php new file mode 100644 index 0000000..7591954 --- /dev/null +++ b/Description2.i18n.php @@ -0,0 +1,17 @@ + 'Adds a description meta-tag to MediaWiki pages and into the ParserOutput for other extensions to use', +); + diff --git a/Description2.php b/Description2.php index dffb381..1ed8c3b 100644 --- a/Description2.php +++ b/Description2.php @@ -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;