r35276 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35275‎ | r35276 | r35277 >
Date:09:33, 24 May 2008
Author:grondin
Status:old
Tags:
Comment:
*Adding internationalization file for PSINoTocNum Extension
*Adding PSINoTocNum Extension for Translate module.
Modified paths:
  • /trunk/extensions/PSINoTocNum/PSINoTocNum.i18n.php (added) (history)
  • /trunk/extensions/PSINoTocNum/PSINoTocNum.php (modified) (history)
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PSINoTocNum/PSINoTocNum.i18n.php
@@ -0,0 +1,12 @@
 2+<?php
 3+#Internationalization file for PSINoTocNum extension
 4+
 5+$messages = array();
 6+
 7+$messages['en'] = array(
 8+ 'psinotocnum-desc' => 'New MagicWord "<nowiki>__</nowiki>NOTOCNUM<nowiki>__</nowiki>"',
 9+);
 10+
 11+$messages['fr'] = array(
 12+ 'psinotocnum-desc' => 'Nouveau mot magique « <nowiki>__</nowiki>NOTOCNUM<nowiki>__</nowiki> »',
 13+);
Property changes on: trunk/extensions/PSINoTocNum/PSINoTocNum.i18n.php
___________________________________________________________________
Added: svn:eol-style
114 + native
Index: trunk/extensions/PSINoTocNum/PSINoTocNum.php
@@ -47,7 +47,13 @@
4848 'author' => 'Benedikt Meuthrath',
4949 'url' => 'http://www.mediawiki.org/wiki/Extension:PSINoTocNum',
5050 'description' => 'New MagicWord "<nowiki>__NOTOCNUM__</nowiki>".',
 51+ 'descriptionmsg' => 'psinotocnum-desc',
5152 );
 53+
 54+$dir = dirname(__FILE__) . '/';
 55+$wgExtensionMessagesFiles['PSINoTocNum'] = $dir . 'PSINoTocNum.i18n.php';
 56+
 57+
5258 $wgHooks['MagicWordMagicWords'][] = 'PSINoTocNumMagicWordMagicWords';
5359 $wgHooks['MagicWordwgVariableIDs'][] = 'PSINoTocNumMagicWordwgVariableIDs';
5460 $wgHooks['LanguageGetMagic'][] = 'PSINoTocNumLanguageGetMagic';
Index: trunk/extensions/Translate/Translate.php
@@ -247,6 +247,7 @@
248248 'ext-profilemonitor' => 'ProfileMonitorMessageGroup',
249249 'ext-proofreadpage' => 'ProofreadPageMessageGroup',
250250 'ext-protectsection' => 'ProtectSectionMessageGroup',
 251+'ext-psinotocnum' => 'PSINoTocNumMessageGroup',
251252 'ext-purge' => 'PurgeMessageGroup',
252253 'ext-purgecache' => 'PurgeCacheMessageGroup',
253254 'ext-quiz' => 'QuizMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -2063,6 +2063,14 @@
20642064 protected $messageFile = 'ProtectSection/ProtectSection.i18n.php';
20652065 }
20662066
 2067+class PSINoTocNumMessageGroup extends ExtensionMessageGroup {
 2068+ protected $label = 'PSI NoTocNum';
 2069+ protected $id = 'ext-psinotocnum';
 2070+
 2071+ protected $arrName = 'messages';
 2072+ protected $messageFile = 'PSINoTocNum/PSINoTocNum.i18n.php';
 2073+}
 2074+
20672075 class PurgeMessageGroup extends ExtensionMessageGroup {
20682076 protected $label = 'Purge';
20692077 protected $id = 'ext-purge';

Status & tagging log