r31850 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31849‎ | r31850 | r31851 >
Date:07:51, 12 March 2008
Author:siebrand
Status:old
Tags:
Comment:
Add support for DidYouMean
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -11,7 +11,7 @@
1212 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1313 */
1414
15 -define( 'TRANSLATE_VERSION', '8.18' );
 15+define( 'TRANSLATE_VERSION', '8.19' );
1616
1717 $wgExtensionCredits['specialpage'][] = array(
1818 'name' => 'Translate',
@@ -134,6 +134,7 @@
135135 'ext-crowdauthentication' => 'CrowdAuthenticationMessageGroup',
136136 'ext-datatransfer' => 'DataTransferMessageGroup',
137137 'ext-deletedcontribs' => 'DeletedContribsMessageGroup',
 138+'ext-didyoumean' => 'DidYouMeanMessageGroup',
138139 'ext-dismissablesitenotice' => 'DismissableSiteNoticeMessageGroup',
139140 'ext-doublewiki' => 'DoubleWikiMessageGroup',
140141 'ext-duplicator' => 'DuplicatorMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1151,6 +1151,14 @@
11521152 protected $messageFile = 'DeletedContributions/DeletedContributions.i18n.php';
11531153 }
11541154
 1155+class DidYouMeanMessageGroup extends ExtensionMessageGroup {
 1156+ protected $label = 'Did You Mean';
 1157+ protected $id = 'ext-didyoumean';
 1158+
 1159+ protected $arrName = 'messages';
 1160+ protected $messageFile = 'DidYouMean/DidYouMean.i18n.php';
 1161+}
 1162+
11551163 class DismissableSiteNoticeMessageGroup extends ExtensionMessageGroup {
11561164 protected $label = 'Dismissable SiteNotice';
11571165 protected $id = 'ext-dismissablesitenotice';

Status & tagging log