r26023 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26022‎ | r26023 | r26024 >
Date:19:39, 22 September 2007
Author:siebrand
Status:old
Tags:
Comment:
Support for new extension TemplateLink
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -111,6 +111,7 @@
112112 'ext-spamblacklist' => 'SpamBlacklistMessageGroup',
113113 'ext-syntaxhighlightgeshi' => 'SyntaxHighlight_GeSHiMessageGroup',
114114 'ext-talkhere' => 'TalkHereExtensionGroup',
 115+'ext-templatelink' => 'TemplateLinkMessageGroup',
115116 'ext-translate' => 'TranslateMessageGroup',
116117 'ext-userimages' => 'UserImagesMessageGroup',
117118 'ext-usermerge' => 'UserMergeMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1233,6 +1233,19 @@
12341234 protected $exportEnd = ');';
12351235 }
12361236
 1237+class TemplateLinkMessageGroup extends ExtensionMessageGroup {
 1238+ protected $label = 'Template Link';
 1239+ protected $id = 'ext-templatelink';
 1240+
 1241+ protected $arrName = 'allMessages';
 1242+ protected $messageFile = 'TemplateLink/TemplateLink.i18n.php';
 1243+
 1244+ protected $exportPrefix= "\t";
 1245+ protected $exportStart = '\'$CODE\' => array(';
 1246+ protected $exportLineP = "\t\t";
 1247+ protected $exportEnd = "),";
 1248+}
 1249+
12371250 class TranslateMessageGroup extends ExtensionMessageGroup {
12381251 protected $label = 'Translate';
12391252 protected $id = 'ext-translate';

Status & tagging log