r90838 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90837‎ | r90838 | r90839 >
Date:17:33, 26 June 2011
Author:raymond
Status:ok
Tags:
Comment:
Add i18n file
Register extension to Translatewiki
Modified paths:
  • /trunk/extensions/LocalJQuery/LocalJQuery.i18n.php (added) (history)
  • /trunk/extensions/LocalJQuery/LocalJQuery.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -728,6 +728,8 @@
729729
730730 Livelets
731731
 732+Local JQuery
 733+
732734 Localisation Update
733735
734736 Lockdown
Index: trunk/extensions/LocalJQuery/LocalJQuery.php
@@ -26,9 +26,12 @@
2727 'name' => 'Local jQuery',
2828 'author' => array( 'Timo Tijhof' ),
2929 'url' => 'http://mediawiki.org/wiki/Extension:Local_jQuery',
30 - 'description' => 'Load jQuery from [[MediaWiki:JQuery.js]] (with ResourceLoader)',
 30+ 'descriptionmsg' => 'localjquery-desc',
3131 );
3232
 33+$dir = dirname(__FILE__);
 34+$wgExtensionMessagesFiles['LocalJQuery'] = $dir . '/LocalJQuery.i18n.php';
 35+
3336 // Create a wiki module for MediaWiki:JQuery.js
3437 class JQueryWikiModule extends ResourceLoaderWikiModule {
3538 protected function getPages( ResourceLoaderContext $context ) {
Index: trunk/extensions/LocalJQuery/LocalJQuery.i18n.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Internationalisation for Local jQuery
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+$messages['en'] = array(
 13+ 'localjquery-desc' => 'Load jQuery from [[MediaWiki:JQuery.js]] (with ResourceLoader)',
 14+);
 15+
Property changes on: trunk/extensions/LocalJQuery/LocalJQuery.i18n.php
___________________________________________________________________
Added: svn:eol-style
116 + native

Status & tagging log