r65439 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65438‎ | r65439 | r65440 >
Date:20:09, 22 April 2010
Author:raymond
Status:ok
Tags:
Comment:
Add i18n file
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/ParserWiki/ParserWiki.i18n.php (added) (history)
  • /trunk/extensions/ParserWiki/ParserWiki.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserWiki/ParserWiki.i18n.php
@@ -0,0 +1,13 @@
 2+<?php
 3+/**
 4+ * Internationalisation file for extension ParserWiki.
 5+ *
 6+ * @addtogroup Extensions
 7+*/
 8+
 9+$messages = array();
 10+
 11+$messages['en'] = array(
 12+ 'parserwiki-desc' => ' Allows to define a grammar in a wiki then use that grammar to input information to the same wiki',
 13+);
 14+
Property changes on: trunk/extensions/ParserWiki/ParserWiki.i18n.php
___________________________________________________________________
Name: svn:eol-style
115 + native
Index: trunk/extensions/ParserWiki/ParserWiki.php
@@ -18,9 +18,10 @@
1919 "version" => "1.0",
2020 "descriptionmsg" => "parserwiki-desc",
2121 );
 22+$dir = dirname( __FILE__ ) . '/';
 23+$wgAutoloadClasses['ParseEngine'] = $dir . "ParseEngine.php";
 24+$wgExtensionMessagesFiles['ParserWiki'] = $dir . 'ParserWiki.i18n.php';
2225
23 -$wgAutoloadClasses["ParseEngine"] = dirname( __FILE__ ) . "/ParseEngine.php";
24 -
2526 $wgTheParserWiki = new ParserWiki();
2627 $wgHooks["ParserBeforeStrip"][] = array( $wgTheParserWiki, "callFromParse" );
2728
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -761,6 +761,8 @@
762762 descmsg = pfunc_desc
763763 magicfile = ParserFunctions/ParserFunctions.i18n.magic.php
764764
 765+Parser Wiki
 766+
765767 Patroller
766768 aliasfile = Patroller/Patroller.alias.php
767769 descmsg = patrol-desc

Status & tagging log