r25610 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25609‎ | r25610 | r25611 >
Date:07:02, 7 September 2007
Author:nikerabbit
Status:old
Tags:
Comment:
* New extensions thanks to Siebrand
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -52,10 +52,12 @@
5353 'ext-categorytree' => 'CategoryTreeExtensionGroup',
5454 'ext-centralauth' => 'CentralAuthMessageGroup',
5555 'ext-checkuser' => 'CheckUserMessageGroup',
 56+'ext-chemistry' => 'ChemFunctionsMessageGroup',
5657 'ext-citespecial' => 'CiteSpecialMessageGroup',
5758 'ext-confiraccount' => 'ConfirmAccountMessageGroup',
5859 'ext-confirmedit' => 'ConfirmEditMessageGroup',
5960 'ext-contactpage' => 'ContactPageExtensionGroup',
 61+'ext-contributionseditcount'=> 'ContributionseditcountMessageGroup',
6062 'ext-contributors' => 'ContributorsMessageGroup',
6163 'ext-countedits' => 'CountEditsMessageGroup',
6264 'ext-crossnamespacelinks' => 'CrossNamespaceLinksMessageGroup',
@@ -68,13 +70,20 @@
6971 'ext-fancycaptcha' => 'FancyCaptchaMessageGroup',
7072 'ext-filepath' => 'FilePathMessageGroup',
7173 'ext-flaggedrevs' => 'FlaggedRevsMessageGroup',
 74+'ext-gadgets' => 'GadgetsExtensionGroup',
 75+'ext-giverollback' => 'GiveRollbackMessageGroup',
7276 'ext-imagemap' => 'ImageMapMessageGroup',
 77+'ext-inputbox' => 'InputBoxMessageGroup',
 78+'ext-linksearch' => 'LinkSearchMessageGroup',
7379 'ext-lucenesearch' => 'LuceneSearchMessageGroup',
7480 'ext-makebot' => 'MakeBotMessageGroup',
7581 'ext-makesysop' => 'MakeSysopMessageGroup',
7682 'ext-makevalidate' => 'MakeValidateMessageGroup',
 83+'ext-mathstat' => 'MathStatMessageGroup',
 84+'ext-mediafunctions' => 'MediaFunctionsMessageGroup',
7785 'ext-minidonation' => 'MiniDonationMessageGroup',
7886 'ext-minimumnamelength' => 'MinimumNameLengthMessageGroup',
 87+'ext-minipreview' => 'MiniPreviewExtensionGroup',
7988 'ext-newestpages' => 'NewestPagesMessageGroup',
8089 'ext-newuserlog' => 'NewuserLogMessageGroup',
8190 'ext-ogghandler' => 'OggHandlerMessageGroup',
@@ -82,7 +91,10 @@
8392 'ext-picturepopup' => 'PicturePopupMessageGroup',
8493 'ext-renameuser' => 'RenameUserMessageGroup',
8594 'ext-resign' => 'ResignMessageGroup',
 95+'ext-selectcategory' => 'SelectCategoryExtensionGroup',
8696 'ext-sitematrix' => 'SiteMatrixMessageGroup',
 97+'ext-smoothgallery' => 'SmoothGalleryExtensionGroup',
 98+'ext-talkhere' => 'TalkHereExtensionGroup',
8799 'ext-translate' => 'TranslateMessageGroup',
88100 'ext-userimages' => 'UserImagesMessageGroup',
89101 'ext-usernameblacklist' => 'UsernameBlacklistMessageGroup',
Index: trunk/extensions/Translate/MessageGroups.php
@@ -487,7 +487,7 @@
488488 protected $filePattern = 'CategoryTree/CategoryTree.i18n.$CODE.php';
489489
490490 protected $exportStart = '$messages = array(';
491 - protected $exportEnd = '),';
 491+ protected $exportEnd = ');';
492492
493493 }
494494
@@ -511,6 +511,14 @@
512512 protected $exportPad = 25;
513513 }
514514
 515+class ChemFunctionsMessageGroup extends ExtensionMessageGroup {
 516+ protected $label = 'Extension: Chemistry';
 517+ protected $id = 'ext-chemistry';
 518+
 519+ protected $arrName = 'wgChemFunctions_Messages';
 520+ protected $messageFile = 'Chemistry/ChemFunctions.i18n.php';
 521+}
 522+
515523 class CiteSpecialMessageGroup extends ExtensionMessageGroup {
516524 protected $label = 'Extension: Cite (special page)';
517525 protected $id = 'ext-citespecial';
@@ -555,11 +563,21 @@
556564
557565 protected $exportStart = '$messages = array(';
558566 protected $exportLineP = '';
559 - protected $exportEnd = '),';
 567+ protected $exportEnd = ');';
560568
561569 }
562570
 571+class ContributionseditcountMessageGroup extends ExtensionMessageGroup {
 572+ protected $label = 'Extension: Contributionseditcount';
 573+ protected $id = 'ext-contributionseditcount';
563574
 575+ protected $functionName = 'efContributionseditcountMessages';
 576+ protected $messageFile = 'Contributionseditcount/Contributionseditcount.i18n.php';
 577+
 578+ protected $exportStart = '\'$CODE\' => array(';
 579+ protected $exportEnd = '),';
 580+}
 581+
564582 class ContributorsMessageGroup extends ExtensionMessageGroup {
565583 protected $label = 'Extension: Contributors';
566584 protected $id = 'ext-contributors';
@@ -700,6 +718,30 @@
701719 protected $exportPad = 18;
702720 }
703721
 722+class GadgetsExtensionGroup extends MultipleFileMessageGroup {
 723+ protected $label = 'Extension: Gadgets';
 724+ protected $id = 'ext-gadgets';
 725+
 726+ protected $arrName = 'messages';
 727+ protected $messageFile = 'Gadgets/Gadgets.i18n.php';
 728+ protected $filePattern = 'Gadgets/Gadgets.i18n.$CODE.php';
 729+
 730+ protected $exportStart = '$messages = array(';
 731+ protected $exportEnd = ');';
 732+}
 733+
 734+class GiveRollbackMessageGroup extends ExtensionMessageGroup {
 735+ protected $label = 'Extension: Give Rollback';
 736+ protected $id = 'ext-giverollback';
 737+
 738+ protected $functionName = 'efGiveRollbackMessages';
 739+ protected $messageFile = 'GiveRollback/GiveRollback.i18n.php';
 740+
 741+ protected $exportStart = '\'$CODE\' => array(';
 742+ protected $exportLineP = '';
 743+ protected $exportEnd = '),';
 744+}
 745+
704746 class ImageMapMessageGroup extends ExtensionMessageGroup {
705747 protected $label = 'Extension: Image Map';
706748 protected $id = 'ext-imagemap';
@@ -719,6 +761,30 @@
720762 }
721763 }
722764
 765+class InputBoxMessageGroup extends ExtensionMessageGroup {
 766+ protected $label = 'Extension: Input Box';
 767+ protected $id = 'ext-inputbox';
 768+
 769+ protected $functionName = 'efInputBoxMessages';
 770+ protected $messageFile = 'inputbox/InputBox.i18n.php';
 771+
 772+ protected $exportStart = '\'$CODE\' => array(';
 773+ protected $exportLineP = "\t";
 774+ protected $exportEnd = '),';
 775+
 776+ protected $exportPad = 26;
 777+}
 778+
 779+class LinkSearchMessageGroup extends ExtensionMessageGroup {
 780+ protected $label = 'Extension: Link Search';
 781+ protected $id = 'ext-linksearch';
 782+
 783+ protected $arrName = 'wgLinkSearchMessages';
 784+ protected $messageFile = 'LinkSearch/LinkSearch.i18n.php';
 785+
 786+ protected $exportPad = 19;
 787+}
 788+
723789 class LuceneSearchMessageGroup extends ExtensionMessageGroup {
724790 protected $label = 'Extension: Lucene Search';
725791 protected $id = 'ext-lucenesearch';
@@ -771,6 +837,28 @@
772838 protected $exportPad = 32;
773839 }
774840
 841+class MathStatMessageGroup extends ExtensionMessageGroup {
 842+ protected $label = 'Extension: Math Stat';
 843+ protected $id = 'ext-mathstat';
 844+
 845+ protected $arrName = 'wgMathStatFunctionsMessages';
 846+ protected $messageFile = 'MathStatFunctions/MathStatFunctions.i18n.php';
 847+}
 848+
 849+class MediaFunctionsMessageGroup extends ExtensionMessageGroup {
 850+ protected $label = 'Extension: Media Functions';
 851+ protected $id = 'ext-mediafunctions';
 852+
 853+ protected $functionName = 'efMediaFunctionsMessages';
 854+ protected $messageFile = 'MediaFunctions/MediaFunctions.i18n.php';
 855+
 856+ protected $exportStart = '\'$CODE\' => array(';
 857+ protected $exportLineP = '';
 858+ protected $exportEnd = '),';
 859+
 860+ protected $exportPad = 31;
 861+}
 862+
775863 class MiniDonationMessageGroup extends ExtensionMessageGroup {
776864 protected $label = 'Extension: Mini Donation';
777865 protected $id = 'ext-minidonation';
@@ -792,6 +880,18 @@
793881 protected $exportEnd = '),';
794882 }
795883
 884+class MiniPreviewExtensionGroup extends MultipleFileMessageGroup {
 885+ protected $label = 'Extension: Mini Preview';
 886+ protected $id = 'ext-minipreview';
 887+
 888+ protected $arrName = 'messages';
 889+ protected $messageFile = 'MiniPreview/MiniPreview.i18n.php';
 890+ protected $filePattern = 'MiniPreview/MiniPreview.i18n.$CODE.php';
 891+
 892+ protected $exportStart = '$messages = array(';
 893+ protected $exportEnd = ');';
 894+}
 895+
796896 class NewestPagesMessageGroup extends ExtensionMessageGroup {
797897 protected $label = 'Extension: Newest Pages';
798898 protected $id = 'ext-newestpages';
@@ -825,6 +925,11 @@
826926
827927 protected $arrName = 'messages';
828928 protected $messageFile = 'OggHandler/OggHandler.i18n.php';
 929+
 930+ protected $exportStart = '\'$CODE\' => array(';
 931+ protected $exportPrefix= "\t";
 932+ protected $exportLineP = "\t";
 933+ protected $exportEnd = '),';
829934 }
830935
831936 class PatrollerMessageGroup extends ExtensionMessageGroup {
@@ -878,6 +983,18 @@
879984 protected $exportEnd = '),';
880985 }
881986
 987+class SelectCategoryExtensionGroup extends MultipleFileMessageGroup {
 988+ protected $label = 'Extension: Select Category';
 989+ protected $id = 'ext-selectcategory';
 990+
 991+ protected $arrName = 'messages';
 992+ protected $messageFile = 'SelectCategory/i18n/SelectCategory.i18n.php';
 993+ protected $filePattern = 'SelectCategory/i18n/SelectCategory.i18n.$CODE.php';
 994+
 995+ protected $exportStart = '$messages = array(';
 996+ protected $exportEnd = ');';
 997+}
 998+
882999 class SiteMatrixMessageGroup extends ExtensionMessageGroup {
8831000 protected $label = 'Extension: Site Matrix';
8841001 protected $id = 'ext-sitematrix';
@@ -888,6 +1005,30 @@
8891006 protected $exportPad = 13;
8901007 }
8911008
 1009+class SmoothGalleryExtensionGroup extends MultipleFileMessageGroup {
 1010+ protected $label = 'Extension: Smooth Gallery';
 1011+ protected $id = 'ext-smoothgallery';
 1012+
 1013+ protected $arrName = 'messages';
 1014+ protected $messageFile = 'SmoothGallery/SmoothGallery.i18n.php';
 1015+ protected $filePattern = 'SmoothGallery/SmoothGallery.i18n.$CODE.php';
 1016+
 1017+ protected $exportStart = '$messages = array(';
 1018+ protected $exportEnd = ');';
 1019+}
 1020+
 1021+class TalkHereExtensionGroup extends MultipleFileMessageGroup {
 1022+ protected $label = 'Extension: Talk Here';
 1023+ protected $id = 'ext-talkhere';
 1024+
 1025+ protected $arrName = 'messages';
 1026+ protected $messageFile = 'TalkHere/TalkHere.i18n.php';
 1027+ protected $filePattern = 'TalkHere/TalkHere.i18n.$CODE.php';
 1028+
 1029+ protected $exportStart = '$messages = array(';
 1030+ protected $exportEnd = ');';
 1031+}
 1032+
8921033 class TranslateMessageGroup extends ExtensionMessageGroup {
8931034 protected $label = 'Extension: Translate';
8941035 protected $id = 'ext-translate';

Status & tagging log