r25703 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25702‎ | r25703 | r25704 >
Date:20:20, 9 September 2007
Author:siebrand
Status:old
Tags:
Comment:
Add support for 5 localisation files in 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
@@ -99,9 +99,13 @@
100100 'ext-player' => 'PlayerMessageGroup',
101101 'ext-profilemonitor' => 'ProfileMonitorMessageGroup',
102102 'ext-proofreadpage' => 'ProofreadPageMessageGroup',
 103+'ext-quiz' => 'QuizMessageGroup',
103104 'ext-renameuser' => 'RenameUserMessageGroup',
104105 'ext-resign' => 'ResignMessageGroup',
105106 'ext-selectcategory' => 'SelectCategoryExtensionGroup',
 107+'ext-signdocumenta' => 'SignDocumentAMessageGroup',
 108+'ext-signdocumentb' => 'SignDocumentBMessageGroup',
 109+'ext-signdocumentc' => 'SignDocumentCMessageGroup',
106110 'ext-sitematrix' => 'SiteMatrixMessageGroup',
107111 'ext-smoothgallery' => 'SmoothGalleryExtensionGroup',
108112 'ext-spamblacklist' => 'SpamBlacklistMessageGroup',
@@ -109,6 +113,7 @@
110114 'ext-talkhere' => 'TalkHereExtensionGroup',
111115 'ext-translate' => 'TranslateMessageGroup',
112116 'ext-userimages' => 'UserImagesMessageGroup',
 117+'ext-usermerge' => 'UserMergeMessageGroup',
113118 'ext-usernameblacklist' => 'UsernameBlacklistMessageGroup',
114119 'ext-vote' => 'VoteMessageGroup',
115120 'ext-webstore' => 'WebStoreMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1086,6 +1086,19 @@
10871087 protected $exportEnd = '),';
10881088 }
10891089
 1090+class QuizMessageGroup extends ExtensionMessageGroup {
 1091+ protected $label = 'Quiz (mw ext)';
 1092+ protected $id = 'ext-quiz';
 1093+
 1094+ protected $arrName = 'wgQuizMessages';
 1095+ protected $messageFile = 'Quiz/Quiz.i18n.php';
 1096+
 1097+ protected $exportPrefix= "\t";
 1098+ protected $exportStart = '\'$CODE\' => array(';
 1099+ protected $exportLineP = "\t\t";
 1100+ protected $exportEnd = "),";
 1101+}
 1102+
10901103 class RenameUserMessageGroup extends ExtensionMessageGroup {
10911104 protected $label = 'Extension: Rename User';
10921105 protected $id = 'ext-renameuser';
@@ -1123,6 +1136,45 @@
11241137 protected $exportEnd = ');';
11251138 }
11261139
 1140+class SignDocumentAMessageGroup extends ExtensionMessageGroup {
 1141+ protected $label = 'Sign Document (a) (mw ext)';
 1142+ protected $id = 'ext-signdocumenta';
 1143+
 1144+ protected $arrName = 'allMessages';
 1145+ protected $messageFile = 'SignDocument/SignDocument.i18n.php';
 1146+
 1147+ protected $exportPrefix= "\t";
 1148+ protected $exportStart = '\'$CODE\' => array(';
 1149+ protected $exportLineP = "\t\t";
 1150+ protected $exportEnd = "),";
 1151+}
 1152+
 1153+class SignDocumentBMessageGroup extends ExtensionMessageGroup {
 1154+ protected $label = 'Sign Document (b) (mw ext)';
 1155+ protected $id = 'ext-signdocumentb';
 1156+
 1157+ protected $arrName = 'allMessages';
 1158+ protected $messageFile = 'SignDocument/SpecialCreateSignDocument.i18n.php';
 1159+
 1160+ protected $exportPrefix= "\t";
 1161+ protected $exportStart = '\'$CODE\' => array(';
 1162+ protected $exportLineP = "\t\t";
 1163+ protected $exportEnd = "),";
 1164+}
 1165+
 1166+class SignDocumentCMessageGroup extends ExtensionMessageGroup {
 1167+ protected $label = 'Sign Document (c) (mw ext)';
 1168+ protected $id = 'ext-signdocumentc';
 1169+
 1170+ protected $arrName = 'allMessages';
 1171+ protected $messageFile = 'SignDocument/SpecialSignDocument.i18n.php';
 1172+
 1173+ protected $exportPrefix= "\t";
 1174+ protected $exportStart = '\'$CODE\' => array(';
 1175+ protected $exportLineP = "\t\t";
 1176+ protected $exportEnd = "),";
 1177+}
 1178+
11271179 class SiteMatrixMessageGroup extends ExtensionMessageGroup {
11281180 protected $label = 'Extension: Site Matrix';
11291181 protected $id = 'ext-sitematrix';
@@ -1204,6 +1256,19 @@
12051257 protected $exportEnd = '),';
12061258 }
12071259
 1260+class UserMergeMessageGroup extends ExtensionMessageGroup {
 1261+ protected $label = 'User Merge (mw ext)';
 1262+ protected $id = 'ext-usermerge';
 1263+
 1264+ protected $arrName = 'allMessages';
 1265+ protected $messageFile = 'UserMerge/UserMerge.i18n.php';
 1266+
 1267+ protected $exportPrefix= "\t";
 1268+ protected $exportStart = '\'$CODE\' => array(';
 1269+ protected $exportLineP = "\t\t";
 1270+ protected $exportEnd = "),";
 1271+}
 1272+
12081273 class UsernameBlacklistMessageGroup extends ExtensionMessageGroup {
12091274 protected $label = 'Extension: Username Blacklist';
12101275 protected $id = 'ext-usernameblacklist';

Status & tagging log