r25613 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25612‎ | r25613 | r25614 >
Date:08:13, 7 September 2007
Author:siebrand
Status:old
Tags:
Comment:
Adding support for translating 5 more extensions to 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
@@ -101,11 +101,16 @@
102102 'ext-selectcategory' => 'SelectCategoryExtensionGroup',
103103 'ext-sitematrix' => 'SiteMatrixMessageGroup',
104104 'ext-smoothgallery' => 'SmoothGalleryExtensionGroup',
 105+'ext-spamblacklist' => 'SpamBlacklistMessageGroup',
 106+'ext-syntaxhighlightgeshi' => 'SyntaxHighlight_GeSHiMessageGroup',
105107 'ext-talkhere' => 'TalkHereExtensionGroup',
106108 'ext-translate' => 'TranslateMessageGroup',
107109 'ext-userimages' => 'UserImagesMessageGroup',
108110 'ext-usernameblacklist' => 'UsernameBlacklistMessageGroup',
109111 'ext-vote' => 'VoteMessageGroup',
 112+'ext-webstore' => 'WebStoreMessageGroup',
 113+'ext-wikidatalanguagemanager' => 'WikidataLanguageManagerMessageGroup',
 114+'ext-wikidataomegawikidatasearch' => 'WikidataOmegaWikiDataSearchMessageGroup',
110115 'out-freecol' => 'FreeColMessageGroup',
111116 );
112117
Index: trunk/extensions/Translate/MessageGroups.php
@@ -1107,6 +1107,32 @@
11081108 protected $exportEnd = ');';
11091109 }
11101110
 1111+class SpamBlacklistMessageGroup extends ExtensionMessageGroup {
 1112+ protected $label = 'Extension: Spam Blacklist';
 1113+ protected $id = 'ext-spamblacklist';
 1114+
 1115+ protected $functionName = 'efSpamBlacklistMessages';
 1116+ protected $messageFile = 'SpamBlacklist/SpamBlacklist.i18n.php';
 1117+
 1118+ protected $exportStart = '\'$CODE\' => array(';
 1119+ protected $exportPrefix= '';
 1120+ protected $exportLineP = '';
 1121+ protected $exportEnd = '),';
 1122+}
 1123+
 1124+class SyntaxHighlight_GeSHiMessageGroup extends ExtensionMessageGroup {
 1125+ protected $label = 'Extension: Syntax Highlight GeSHi';
 1126+ protected $id = 'ext-syntaxhighlightgeshi';
 1127+
 1128+ protected $functionName = 'efSyntaxHighlight_GeSHiMessages';
 1129+ protected $messageFile = 'SyntaxHighlight_GeSHi/SyntaxHighlight_GeSH.i18n.php';
 1130+
 1131+ protected $exportStart = '\'$CODE\' => array(';
 1132+ protected $exportPrefix= '';
 1133+ protected $exportLineP = '';
 1134+ protected $exportEnd = '),';
 1135+}
 1136+
11111137 class TalkHereExtensionGroup extends MultipleFileMessageGroup {
11121138 protected $label = 'Extension: Talk Here';
11131139 protected $id = 'ext-talkhere';
@@ -1166,6 +1192,35 @@
11671193 protected $exportEnd = '),';
11681194 }
11691195
 1196+class WebStoreMessageGroup extends ExtensionMessageGroup {
 1197+ protected $label = 'Extension: Web Store';
 1198+ protected $id = 'ext-webstore';
 1199+
 1200+ protected $arrName = 'messages';
 1201+ protected $messageFile = 'WebStore/WebStore.i18n.php';
 1202+
 1203+ protected $exportStart = '\'$CODE\' => array(';
 1204+ protected $exportPrefix= "\t";
 1205+ protected $exportLineP = "\t";
 1206+ protected $exportEnd = '),';
 1207+}
 1208+
 1209+class WikidataLanguageManagerMessageGroup extends ExtensionMessageGroup {
 1210+ protected $label = 'Extension: Wikidata Language Manager';
 1211+ protected $id = 'ext-wikidatalanguagemanager';
 1212+
 1213+ protected $arrName = 'wgLanguageManagerMessages';
 1214+ protected $messageFile = 'Wikidata/SpecialLanguages.i18n.php';
 1215+}
 1216+
 1217+class WikidataOmegaWikiDataSearchMessageGroup extends ExtensionMessageGroup {
 1218+ protected $label = 'Extension: Wikidata OmegaWiki Data Search';
 1219+ protected $id = 'ext-wikidataomegawikidatasearch';
 1220+
 1221+ protected $arrName = 'wgDataSearchMessages';
 1222+ protected $messageFile = 'Wikidata/OmegaWiki/SpecialDatasearch.i18n.php';
 1223+}
 1224+
11701225 class FreeColMessageGroup extends MessageGroup {
11711226
11721227 protected $label = 'External: FreeCol';

Status & tagging log