r27755 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27754‎ | r27755 | r27756 >
Date:14:38, 22 November 2007
Author:siebrand
Status:old
Tags:
Comment:
Add support for Review and Watchers
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -135,6 +135,7 @@
136136 'ext-quiz' => 'QuizMessageGroup',
137137 'ext-renameuser' => 'RenameUserMessageGroup',
138138 'ext-resign' => 'ResignMessageGroup',
 139+'ext-review' => 'ReviewMessageGroup',
139140 'ext-selectcategory' => 'SelectCategoryExtensionGroup',
140141 'ext-signdocument' => 'SignDocumentMessageGroup',
141142 'ext-specialcreatesigndocument' => 'SpecialCreateSignDocumentMessageGroup',
@@ -153,6 +154,7 @@
154155 'ext-usermerge' => 'UserMergeMessageGroup',
155156 'ext-usernameblacklist' => 'UsernameBlacklistMessageGroup',
156157 'ext-vote' => 'VoteMessageGroup',
 158+'ext-watchers' => 'WatchersMessageGroup',
157159 'ext-webstore' => 'WebStoreMessageGroup',
158160 'ext-wikidatalanguagemanager' => 'WikidataLanguageManagerMessageGroup',
159161 'ext-wikidataomegawikidatasearch' => 'WikidataOmegaWikiDataSearchMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1333,6 +1333,14 @@
13341334 protected $exportEnd = '),';
13351335 }
13361336
 1337+class ReviewMessageGroup extends ExtensionMessageGroup {
 1338+ protected $label = 'Review';
 1339+ protected $id = 'ext-review';
 1340+
 1341+ protected $arrName = 'messages';
 1342+ protected $messageFile = 'Review/Review.i18n.php';
 1343+}
 1344+
13371345 class SelectCategoryExtensionGroup extends MultipleFileMessageGroup {
13381346 protected $label = 'Select Category';
13391347 protected $id = 'ext-selectcategory';
@@ -1568,6 +1576,16 @@
15691577 protected $exportEnd = '),';
15701578 }
15711579
 1580+class WatchersMessageGroup extends ExtensionMessageGroup {
 1581+ protected $label = 'Watchers';
 1582+ protected $id = 'ext-watchers';
 1583+
 1584+ protected $arrName = 'messages';
 1585+ protected $messageFile = 'Watchers/Watchers.i18n.php';
 1586+
 1587+ protected $exportPad = 25;
 1588+}
 1589+
15721590 class WebStoreMessageGroup extends ExtensionMessageGroup {
15731591 protected $label = 'Web Store';
15741592 protected $id = 'ext-webstore';

Status & tagging log