r112602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112601‎ | r112602 | r112603 >
Date:15:13, 28 February 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Alphabetisize and tweak some block comments
Modified paths:
  • /trunk/extensions/Translate/_autoload.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/_autoload.php
@@ -13,39 +13,31 @@
1414 /** @endcond */
1515
1616 /**
17 - * @name Core extension classes
 17+ * @name Core Translate classes
1818 * @{
1919 */
20 -$wgAutoloadClasses['TranslateTasks'] = "$dir/TranslateTasks.php";
21 -$wgAutoloadClasses['TaskOptions'] = "$dir/TranslateTasks.php";
22 -
23 -$wgAutoloadClasses['TranslateUtils'] = "$dir/TranslateUtils.php";
24 -
25 -$wgAutoloadClasses['TranslateHooks'] = "$dir/TranslateHooks.php";
26 -
27 -$wgAutoloadClasses['MessageChecker'] = "$dir/MessageChecks.php";
 20+$wgAutoloadClasses['AliasMessageGroup'] = "$dir/MessageGroups.php";
 21+$wgAutoloadClasses['FatMessage'] = "$dir/Message.php";
 22+$wgAutoloadClasses['FileBasedMessageGroup'] = "$dir/Groups.php";
2823 $wgAutoloadClasses['MediaWikiMessageChecker'] = "$dir/MediaWikiMessageChecker.php";
29 -
 24+$wgAutoloadClasses['MessageChecker'] = "$dir/MessageChecks.php";
 25+$wgAutoloadClasses['MessageCollection'] = "$dir/MessageCollection.php";
 26+$wgAutoloadClasses['MessageDefinitions'] = "$dir/MessageCollection.php";
3027 $wgAutoloadClasses['MessageGroup'] = "$dir/Groups.php";
3128 $wgAutoloadClasses['MessageGroupBase'] = "$dir/Groups.php";
32 -$wgAutoloadClasses['FileBasedMessageGroup'] = "$dir/Groups.php";
33 -
3429 $wgAutoloadClasses['MessageGroupOld'] = "$dir/MessageGroups.php";
3530 $wgAutoloadClasses['MessageGroups'] = "$dir/MessageGroups.php";
36 -$wgAutoloadClasses['WikiPageMessageGroup'] = "$dir/MessageGroups.php";
37 -$wgAutoloadClasses['AliasMessageGroup'] = "$dir/MessageGroups.php";
3831 $wgAutoloadClasses['RecentMessageGroup'] = "$dir/MessageGroups.php";
39 -$wgAutoloadClasses['WorkflowStatesMessageGroup'] = "$dir/MessageGroups.php";
40 -
41 -$wgAutoloadClasses['MessageCollection'] = "$dir/MessageCollection.php";
42 -$wgAutoloadClasses['MessageDefinitions'] = "$dir/MessageCollection.php";
43 -
4432 $wgAutoloadClasses['TMessage'] = "$dir/Message.php";
 33+$wgAutoloadClasses['TaskOptions'] = "$dir/TranslateTasks.php";
4534 $wgAutoloadClasses['ThinMessage'] = "$dir/Message.php";
46 -$wgAutoloadClasses['FatMessage'] = "$dir/Message.php";
47 -
4835 $wgAutoloadClasses['TranslateEditAddons'] = "$dir/TranslateEditAddons.php";
 36+$wgAutoloadClasses['TranslateHooks'] = "$dir/TranslateHooks.php";
4937 $wgAutoloadClasses['TranslateRcFilter'] = "$dir/RcFilter.php";
 38+$wgAutoloadClasses['TranslateTasks'] = "$dir/TranslateTasks.php";
 39+$wgAutoloadClasses['TranslateUtils'] = "$dir/TranslateUtils.php";
 40+$wgAutoloadClasses['WikiPageMessageGroup'] = "$dir/MessageGroups.php";
 41+$wgAutoloadClasses['WorkflowStatesMessageGroup'] = "$dir/MessageGroups.php";
5042 /**@}*/
5143
5244 /**
@@ -62,17 +54,17 @@
6355 * There are few more special pages in page translation section.
6456 * @{
6557 */
66 -$wgAutoloadClasses['SpecialTranslate'] = "$dir/specials/SpecialTranslate.php";
67 -$wgAutoloadClasses['SpecialMagic'] = "$dir/specials/SpecialMagic.php";
68 -$wgAutoloadClasses['SpecialTranslationStats'] = "$dir/specials/SpecialTranslationStats.php";
69 -$wgAutoloadClasses['SpecialTranslations'] = "$dir/specials/SpecialTranslations.php";
 58+$wgAutoloadClasses['SpecialFirstSteps'] = "$dir/specials/SpecialFirstSteps.php";
 59+$wgAutoloadClasses['SpecialImportTranslations'] = "$dir/specials/SpecialImportTranslations.php";
7060 $wgAutoloadClasses['SpecialLanguageStats'] = "$dir/specials/SpecialLanguageStats.php";
 61+$wgAutoloadClasses['SpecialMagic'] = "$dir/specials/SpecialMagic.php";
 62+$wgAutoloadClasses['SpecialManageGroups'] = "$dir/specials/SpecialManageGroups.php";
7163 $wgAutoloadClasses['SpecialMessageGroupStats'] = "$dir/specials/SpecialMessageGroupStats.php";
72 -$wgAutoloadClasses['SpecialImportTranslations'] = "$dir/specials/SpecialImportTranslations.php";
73 -$wgAutoloadClasses['SpecialFirstSteps'] = "$dir/specials/SpecialFirstSteps.php";
74 -$wgAutoloadClasses['SpecialSupportedLanguages'] = "$dir/specials/SpecialSupportedLanguages.php";
7564 $wgAutoloadClasses['SpecialMyLanguage'] = "$dir/specials/SpecialMyLanguage.php";
76 -$wgAutoloadClasses['SpecialManageGroups'] = "$dir/specials/SpecialManageGroups.php";
 65+$wgAutoloadClasses['SpecialSupportedLanguages'] = "$dir/specials/SpecialSupportedLanguages.php";
 66+$wgAutoloadClasses['SpecialTranslate'] = "$dir/specials/SpecialTranslate.php";
 67+$wgAutoloadClasses['SpecialTranslationStats'] = "$dir/specials/SpecialTranslationStats.php";
 68+$wgAutoloadClasses['SpecialTranslations'] = "$dir/specials/SpecialTranslations.php";
7769 /**@}*/
7870
7971 /**
@@ -81,10 +73,10 @@
8274 */
8375 $wgAutoloadClasses['SimpleFormatReader'] = "$dir/ffs/Simple.php";
8476 $wgAutoloadClasses['SimpleFormatWriter'] = "$dir/ffs/Simple.php";
85 -$wgAutoloadClasses['WikiFormatReader'] = "$dir/ffs/Wiki.php";
86 -$wgAutoloadClasses['WikiFormatWriter'] = "$dir/ffs/Wiki.php";
8777 $wgAutoloadClasses['WikiExtensionFormatReader'] = "$dir/ffs/WikiExtension.php";
8878 $wgAutoloadClasses['WikiExtensionFormatWriter'] = "$dir/ffs/WikiExtension.php";
 79+$wgAutoloadClasses['WikiFormatReader'] = "$dir/ffs/Wiki.php";
 80+$wgAutoloadClasses['WikiFormatWriter'] = "$dir/ffs/Wiki.php";
8981 $wgAutoloadClasses['XliffFormatWriter'] = "$dir/ffs/Xliff.php";
9082 /**@}*/
9183
@@ -92,47 +84,41 @@
9385 * @name Various utilities
9486 * @{
9587 */
96 -$wgAutoloadClasses['PHPVariableLoader'] = "$dir/utils/ResourceLoader.php";
97 -$wgAutoloadClasses['StringMangler'] = "$dir/utils/StringMatcher.php";
98 -$wgAutoloadClasses['StringMatcher'] = "$dir/utils/StringMatcher.php";
9988 $wgAutoloadClasses['FCFontFinder'] = "$dir/utils/Font.php";
10089 $wgAutoloadClasses['FuzzyBot'] = "$dir/utils/FuzzyBot.php";
101 -
102 -$wgAutoloadClasses['TranslatePreferences'] = "$dir/utils/UserToggles.php";
103 -$wgAutoloadClasses['TranslateToolbox'] = "$dir/utils/ToolBox.php";
104 -
105 -$wgAutoloadClasses['MessageIndex'] = "$dir/utils/MessageIndex.php";
106 -$wgAutoloadClasses['MessageIndexRebuildJob'] = "$dir/utils/MessageIndexRebuildJob.php";
107 -$wgAutoloadClasses['MessageTable'] = "$dir/utils/MessageTable.php";
108 -$wgAutoloadClasses['StatsTable'] = "$dir/utils/StatsTable.php";
109 -$wgAutoloadClasses['JsSelectToInput'] = "$dir/utils/JsSelectToInput.php";
11090 $wgAutoloadClasses['HTMLJsSelectToInputField'] = "$dir/utils/HTMLJsSelectToInputField.php";
 91+$wgAutoloadClasses['JsSelectToInput'] = "$dir/utils/JsSelectToInput.php";
11192 $wgAutoloadClasses['MessageGroupCache'] = "$dir/utils/MessageGroupCache.php";
11293 $wgAutoloadClasses['MessageGroupStats'] = "$dir/utils/MessageGroupStats.php";
 94+$wgAutoloadClasses['MessageHandle'] = "$dir/utils/MessageHandle.php";
 95+$wgAutoloadClasses['MessageIndex'] = "$dir/utils/MessageIndex.php";
 96+$wgAutoloadClasses['MessageIndexRebuildJob'] = "$dir/utils/MessageIndexRebuildJob.php";
 97+$wgAutoloadClasses['MessageTable'] = "$dir/utils/MessageTable.php";
11398 $wgAutoloadClasses['MessageWebImporter'] = "$dir/utils/MessageWebImporter.php";
 99+$wgAutoloadClasses['PHPVariableLoader'] = "$dir/utils/ResourceLoader.php";
 100+$wgAutoloadClasses['RevTag'] = "$dir/utils/RevTag.php";
 101+$wgAutoloadClasses['StatsTable'] = "$dir/utils/StatsTable.php";
 102+$wgAutoloadClasses['StringMangler'] = "$dir/utils/StringMatcher.php";
 103+$wgAutoloadClasses['StringMatcher'] = "$dir/utils/StringMatcher.php";
 104+$wgAutoloadClasses['TTMServer'] = "$dir/utils/TTMServer.php";
 105+$wgAutoloadClasses['TranslateMetadata'] = "$dir/utils/TranslateMetadata.php";
 106+$wgAutoloadClasses['TranslatePreferences'] = "$dir/utils/UserToggles.php";
 107+$wgAutoloadClasses['TranslateToolbox'] = "$dir/utils/ToolBox.php";
 108+$wgAutoloadClasses['TranslateYaml'] = "$dir/utils/TranslateYaml.php";
114109 $wgAutoloadClasses['TranslationEditPage'] = "$dir/utils/TranslationEditPage.php";
115110 $wgAutoloadClasses['TranslationHelpers'] = "$dir/utils/TranslationHelpers.php";
 111+$wgAutoloadClasses['TranslationMemoryUpdater'] = "$dir/utils/TranslationMemoryUpdater.php";
116112 $wgAutoloadClasses['TranslationStats'] = "$dir/utils/TranslationStats.php";
117113
118 -$wgAutoloadClasses['TranslationMemoryUpdater'] = "$dir/utils/TranslationMemoryUpdater.php";
119 -
120 -$wgAutoloadClasses['TranslateYaml'] = "$dir/utils/TranslateYaml.php";
121 -
122 -$wgAutoloadClasses['RevTag'] = "$dir/utils/RevTag.php";
123 -
124 -$wgAutoloadClasses['MessageHandle'] = "$dir/utils/MessageHandle.php";
125 -$wgAutoloadClasses['TTMServer'] = "$dir/utils/TTMServer.php";
126 -$wgAutoloadClasses['TranslateMetadata'] = "$dir/utils/TranslateMetadata.php";
127 -
128114 /**@}*/
129115
130116 /**
131 - * @name Classes for predefined old-style message groups
 117+ * @name Classes for predefined non-managed message groups
132118 * @{
133119 */
134120 $wgAutoloadClasses['PremadeMediawikiExtensionGroups'] = "$dir/ffs/MediaWikiExtensions.php";
135 -$wgAutoloadClasses['PremadeWikiaExtensionGroups'] = "$dir/ffs//WikiaExtensions.php";
136121 $wgAutoloadClasses['PremadeToolserverTextdomains'] = "$dir/ffs/ToolserverTextdomains.php";
 122+$wgAutoloadClasses['PremadeWikiaExtensionGroups'] = "$dir/ffs//WikiaExtensions.php";
137123 /**@}*/
138124
139125 /**
@@ -140,9 +126,9 @@
141127 * @{
142128 */
143129 $wgAutoloadClasses['ComplexMessages'] = "$dir/ffs/MediaWikiComplexMessages.php";
144 -$wgAutoloadClasses['SpecialPageAliasesCM'] = "$dir/ffs/MediaWikiComplexMessages.php";
145130 $wgAutoloadClasses['MagicWordsCM'] = "$dir/ffs/MediaWikiComplexMessages.php";
146131 $wgAutoloadClasses['NamespaceCM'] = "$dir/ffs/MediaWikiComplexMessages.php";
 132+$wgAutoloadClasses['SpecialPageAliasesCM'] = "$dir/ffs/MediaWikiComplexMessages.php";
147133 /**@}*/
148134
149135 /**
@@ -150,35 +136,35 @@
151137 * @ingroup PageTranslation
152138 * @{
153139 */
 140+$wgAutoloadClasses['DeleteJob'] = "$dir/tag/DeleteJob.php";
 141+$wgAutoloadClasses['MoveJob'] = "$dir/tag/MoveJob.php";
154142 $wgAutoloadClasses['PageTranslationHooks'] = "$dir/tag/PageTranslationHooks.php";
155 -$wgAutoloadClasses['TranslatablePage'] = "$dir/tag/TranslatablePage.php";
 143+$wgAutoloadClasses['RenderJob'] = "$dir/tag/RenderJob.php";
 144+$wgAutoloadClasses['SpecialPageTranslation'] = "$dir/tag/SpecialPageTranslation.php";
 145+$wgAutoloadClasses['SpecialPageTranslationDeletePage'] = "$dir/tag/SpecialPageTranslationDeletePage.php";
 146+$wgAutoloadClasses['SpecialPageTranslationMovePage'] = "$dir/tag/SpecialPageTranslationMovePage.php";
156147 $wgAutoloadClasses['TPException'] = "$dir/tag/TPException.php";
157148 $wgAutoloadClasses['TPParse'] = "$dir/tag/TPParse.php";
158149 $wgAutoloadClasses['TPSection'] = "$dir/tag/TPSection.php";
159 -$wgAutoloadClasses['SpecialPageTranslation'] = "$dir/tag/SpecialPageTranslation.php";
160 -$wgAutoloadClasses['SpecialPageTranslationMovePage'] = "$dir/tag/SpecialPageTranslationMovePage.php";
161 -$wgAutoloadClasses['SpecialPageTranslationDeletePage'] = "$dir/tag/SpecialPageTranslationDeletePage.php";
162 -$wgAutoloadClasses['RenderJob'] = "$dir/tag/RenderJob.php";
163 -$wgAutoloadClasses['MoveJob'] = "$dir/tag/MoveJob.php";
164 -$wgAutoloadClasses['DeleteJob'] = "$dir/tag/DeleteJob.php";
 150+$wgAutoloadClasses['TranslatablePage'] = "$dir/tag/TranslatablePage.php";
165151 /**@}*/
166152
167153 /**
168 - * @name Classes for new-style file format support (FFS)
 154+ * @name Classes for file format support (FFS)
169155 * @{
170156 */
 157+$wgAutoloadClasses['DtdFFS'] = "$dir/ffs/DTD.php";
171158 $wgAutoloadClasses['FFS'] = "$dir/FFS.php";
172 -$wgAutoloadClasses['SimpleFFS'] = "$dir/FFS.php";
 159+$wgAutoloadClasses['FlatPhpFFS'] = "$dir/ffs/PhpVariables.php";
 160+$wgAutoloadClasses['GettextFFS'] = "$dir//ffs/Gettext.php";
173161 $wgAutoloadClasses['JavaFFS'] = "$dir/FFS.php";
174 -$wgAutoloadClasses['YamlFFS'] = "$dir/FFS.php";
175 -$wgAutoloadClasses['RubyYamlFFS'] = "$dir/FFS.php";
176162 $wgAutoloadClasses['JavaScriptFFS'] = "$dir/FFS.php";
177163 $wgAutoloadClasses['OpenLayersFFS'] = "$dir/FFS.php";
178 -$wgAutoloadClasses['ShapadoJsFFS'] = "$dir/FFS.php";
179 -$wgAutoloadClasses['GettextFFS'] = "$dir//ffs/Gettext.php";
180 -$wgAutoloadClasses['FlatPhpFFS'] = "$dir/ffs/PhpVariables.php";
181 -$wgAutoloadClasses['DtdFFS'] = "$dir/ffs/DTD.php";
182164 $wgAutoloadClasses['PythonSingleFFS'] = "$dir/FFS.php";
 165+$wgAutoloadClasses['RubyYamlFFS'] = "$dir/FFS.php";
 166+$wgAutoloadClasses['ShapadoJsFFS'] = "$dir/FFS.php";
 167+$wgAutoloadClasses['SimpleFFS'] = "$dir/FFS.php";
 168+$wgAutoloadClasses['YamlFFS'] = "$dir/FFS.php";
183169 /**@}*/
184170
185171 /**
@@ -194,11 +180,11 @@
195181 * @name API modules
196182 * @{
197183 */
 184+$wgAutoloadClasses['ApiGroupReview'] = "$dir/api/ApiGroupReview.php";
198185 $wgAutoloadClasses['ApiQueryMessageCollection'] = "$dir/api/ApiQueryMessageCollection.php";
199 -$wgAutoloadClasses['ApiQueryMessageGroups'] = "$dir/api/ApiQueryMessageGroups.php";
200186 $wgAutoloadClasses['ApiQueryMessageGroupStats'] = "$dir/api/ApiQueryMessageGroupStats.php";
 187+$wgAutoloadClasses['ApiQueryMessageGroups'] = "$dir/api/ApiQueryMessageGroups.php";
201188 $wgAutoloadClasses['ApiQueryMessageTranslations'] = "$dir/api/ApiQueryMessageTranslations.php";
202 -$wgAutoloadClasses['ApiTranslationReview'] = "$dir/api/ApiTranslationReview.php";
203 -$wgAutoloadClasses['ApiGroupReview'] = "$dir/api/ApiGroupReview.php";
204189 $wgAutoloadClasses['ApiTTMServer'] = "$dir/api/ApiTTMServer.php";
 190+$wgAutoloadClasses['ApiTranslationReview'] = "$dir/api/ApiTranslationReview.php";
205191 /**@}*/

Status & tagging log