r26278 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26277‎ | r26278 | r26279 >
Date:18:19, 1 October 2007
Author:siebrand
Status:old
Tags:
Comment:
Add support for extension Nuke in extension Translate.
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -97,6 +97,7 @@
9898 'ext-newestpages' => 'NewestPagesMessageGroup',
9999 'ext-newuserlog' => 'NewuserLogMessageGroup',
100100 'ext-newusernotif' => 'NewUserNotifMessageGroup',
 101+'ext-nuke' => 'NukeMessageGroup',
101102 'ext-ogghandler' => 'OggHandlerMessageGroup',
102103 'ext-oversight' => 'OversightMessageGroup',
103104 'ext-pageby' => 'PageByMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -947,6 +947,21 @@
948948 protected $exportEnd = '),';
949949 }
950950
 951+class NukeMessageGroup extends ExtensionMessageGroup {
 952+ protected $label = 'Nuke';
 953+ protected $id = 'ext-nuke';
 954+
 955+ protected $functionName = 'SpecialNukeMessages';
 956+ protected $messageFile = 'Nuke/SpecialNuke.i18n.php';
 957+
 958+ protected $exportStart = '\'$CODE\' => array(';
 959+ protected $exportPrefix= "\t";
 960+ protected $exportLineP = "\t\t";
 961+ protected $exportEnd = '),';
 962+
 963+ protected $exportPad = 21;
 964+}
 965+
951966 class OggHandlerMessageGroup extends ExtensionMessageGroup {
952967 protected $label = 'Ogg Handler';
953968 protected $id = 'ext-ogghandler';

Status & tagging log