Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -247,6 +247,11 @@ |
248 | 248 | |
249 | 249 | /** |
250 | 250 | * Enable page translation feature. |
| 251 | + * |
| 252 | + * Page translation feature allows structured translation of wiki pages |
| 253 | + * with simple markup and automatic tracking of changes. |
| 254 | + * |
| 255 | + * @defgroup PageTranslation Page translation |
251 | 256 | * @see http://translatewiki.net/wiki/Translating:Page_translation_feature |
252 | 257 | */ |
253 | 258 | $wgEnablePageTranslation = false; |
Index: trunk/extensions/Translate/_autoload.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | 3 | /** |
5 | 4 | * Autoload definitions. |
6 | 5 | * |
— | — | @@ -9,8 +8,14 @@ |
10 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 10 | */ |
12 | 11 | |
| 12 | +/** @cond file_level_code */ |
13 | 13 | $dir = dirname( __FILE__ ) . '/'; |
| 14 | +/** @endcond */ |
14 | 15 | |
| 16 | +/** |
| 17 | + * @name Core extension classes |
| 18 | + * @{ |
| 19 | + */ |
15 | 20 | $wgAutoloadClasses['TranslateTasks'] = $dir . 'TranslateTasks.php'; |
16 | 21 | $wgAutoloadClasses['TaskOptions'] = $dir . 'TranslateTasks.php'; |
17 | 22 | |
— | — | @@ -36,11 +41,24 @@ |
37 | 42 | $wgAutoloadClasses['FatMessage'] = $dir . 'Message.php'; |
38 | 43 | |
39 | 44 | $wgAutoloadClasses['TranslateEditAddons'] = $dir . 'TranslateEditAddons.php'; |
| 45 | +$wgAutoloadClasses['TranslateRcFilter'] = $dir . 'RcFilter.php'; |
| 46 | +/**@}*/ |
| 47 | + |
| 48 | +/** |
| 49 | + * @name MediaWiki core classes |
| 50 | + * These are not autoloaded by default in MediaWiki core. |
| 51 | + * @{ |
| 52 | + */ |
| 53 | + |
40 | 54 | $wgAutoloadClasses['languages'] = $IP . '/maintenance/language/languages.inc'; |
41 | 55 | $wgAutoloadClasses['MessageWriter'] = $IP . '/maintenance/language/writeMessagesArray.inc'; |
| 56 | +/**@}*/ |
42 | 57 | |
43 | | -$wgAutoloadClasses['TranslateRcFilter'] = $dir . 'RcFilter.php'; |
44 | | - |
| 58 | +/** |
| 59 | + * @name Special pages |
| 60 | + * There are few more special pages in page translation section. |
| 61 | + * @{ |
| 62 | + */ |
45 | 63 | $wgAutoloadClasses['SpecialTranslate'] = $dir . 'TranslatePage.php'; |
46 | 64 | $wgAutoloadClasses['SpecialMagic'] = $dir . 'SpecialMagic.php'; |
47 | 65 | $wgAutoloadClasses['SpecialTranslationChanges'] = $dir . 'SpecialTranslationChanges.php'; |
— | — | @@ -50,12 +68,14 @@ |
51 | 69 | $wgAutoloadClasses['SpecialImportTranslations'] = $dir . 'SpecialImportTranslations.php'; |
52 | 70 | $wgAutoloadClasses['SpecialFirstSteps'] = $dir . 'SpecialFirstSteps.php'; |
53 | 71 | $wgAutoloadClasses['SpecialSupportedLanguages'] = $dir . 'SpecialSupportedLanguages.php'; |
| 72 | +$wgAutoloadClasses['SpecialMyLanguage'] = $dir . 'SpecialMyLanguage.php'; |
| 73 | +$wgAutoloadClasses['SpecialManageGroups'] = $dir . 'SpecialManageGroups.php'; |
| 74 | +/**@}*/ |
54 | 75 | |
55 | 76 | /** |
56 | | - * Register class for Special:MyLanguage |
| 77 | + * @name Old-style file format support (FFS) |
| 78 | + * @{ |
57 | 79 | */ |
58 | | -$wgAutoloadClasses['SpecialMyLanguage'] = $dir . 'SpecialMyLanguage.php'; |
59 | | - |
60 | 80 | $wgAutoloadClasses['SimpleFormatReader'] = $dir . 'ffs/Simple.php'; |
61 | 81 | $wgAutoloadClasses['SimpleFormatWriter'] = $dir . 'ffs/Simple.php'; |
62 | 82 | $wgAutoloadClasses['WikiFormatReader'] = $dir . 'ffs/Wiki.php'; |
— | — | @@ -71,9 +91,11 @@ |
72 | 92 | $wgAutoloadClasses['OpenLayersFormatReader'] = $dir . 'ffs/OpenLayers.php'; |
73 | 93 | $wgAutoloadClasses['OpenLayersFormatWriter'] = $dir . 'ffs/OpenLayers.php'; |
74 | 94 | $wgAutoloadClasses['XliffFormatWriter'] = $dir . 'ffs/Xliff.php'; |
| 95 | +/**@}*/ |
75 | 96 | |
76 | 97 | /** |
77 | | - * utils |
| 98 | + * @name Various utilities |
| 99 | + * @{ |
78 | 100 | */ |
79 | 101 | $wgAutoloadClasses['ResourceLoader'] = $dir . 'utils/ResourceLoader.php'; |
80 | 102 | $wgAutoloadClasses['StringMangler'] = $dir . 'utils/StringMatcher.php'; |
— | — | @@ -97,25 +119,34 @@ |
98 | 120 | |
99 | 121 | $wgAutoloadClasses['TranslationMemoryUpdater'] = $dir . 'utils/TranslationMemoryUpdater.php'; |
100 | 122 | |
| 123 | +$wgAutoloadClasses['TranslateYaml'] = $dir . 'utils/TranslateYaml.php'; |
| 124 | +/**@}*/ |
| 125 | + |
101 | 126 | /** |
102 | | - * predefined groups |
| 127 | + * @name Classes for predefined old-style message groups |
| 128 | + * @{ |
103 | 129 | */ |
104 | 130 | $wgAutoloadClasses['AllMediawikiExtensionsGroup'] = $dir . 'groups/MediaWikiExtensions.php'; |
105 | 131 | $wgAutoloadClasses['PremadeMediawikiExtensionGroups'] = $dir . 'groups/MediaWikiExtensions.php'; |
106 | 132 | $wgAutoloadClasses['PremadeWikiaExtensionGroups'] = $dir . 'groups/Wikia/WikiaExtensions.php'; |
107 | 133 | $wgAutoloadClasses['OpenLayersMessageGroup'] = $dir . 'groups/OpenLayers.php'; |
108 | 134 | $wgAutoloadClasses['MediaWikiMessageChecker'] = $dir . 'groups/MediaWiki/Checker.php'; |
| 135 | +/**@}*/ |
109 | 136 | |
110 | 137 | /** |
111 | | - * Complex messages |
| 138 | + * @name Non-message translation item support |
| 139 | + * @{ |
112 | 140 | */ |
113 | 141 | $wgAutoloadClasses['ComplexMessages'] = $dir . 'groups/ComplexMessages.php'; |
114 | 142 | $wgAutoloadClasses['SpecialPageAliasesCM'] = $dir . 'groups/ComplexMessages.php'; |
115 | 143 | $wgAutoloadClasses['MagicWordsCM'] = $dir . 'groups/ComplexMessages.php'; |
116 | 144 | $wgAutoloadClasses['NamespaceCM'] = $dir . 'groups/ComplexMessages.php'; |
| 145 | +/**@}*/ |
117 | 146 | |
118 | 147 | /** |
119 | | - * Page translation |
| 148 | + * @name Classes for page translation feature |
| 149 | + * @ingroup PageTranslation |
| 150 | + * @{ |
120 | 151 | */ |
121 | 152 | $wgAutoloadClasses['PageTranslationHooks'] = $dir . 'tag/PageTranslationHooks.php'; |
122 | 153 | $wgAutoloadClasses['TranslatablePage'] = $dir . 'tag/TranslatablePage.php'; |
— | — | @@ -126,10 +157,12 @@ |
127 | 158 | $wgAutoloadClasses['SpecialPageTranslationMovePage'] = $dir . 'tag/SpecialPageTranslationMovePage.php'; |
128 | 159 | $wgAutoloadClasses['RenderJob'] = $dir . 'tag/RenderJob.php'; |
129 | 160 | $wgAutoloadClasses['MoveJob'] = $dir . 'tag/MoveJob.php'; |
| 161 | +/**@}*/ |
130 | 162 | |
131 | | -$wgAutoloadClasses['TranslateYaml'] = $dir . 'utils/TranslateYaml.php'; |
132 | | -$wgAutoloadClasses['SpecialManageGroups'] = $dir . 'SpecialManageGroups.php'; |
133 | | - |
| 163 | +/** |
| 164 | + * @name Classes for new-style file format support (FFS) |
| 165 | + * @{ |
| 166 | + */ |
134 | 167 | $wgAutoloadClasses['FFS'] = $dir . 'FFS.php'; |
135 | 168 | $wgAutoloadClasses['SimpleFFS'] = $dir . 'FFS.php'; |
136 | 169 | $wgAutoloadClasses['JavaFFS'] = $dir . 'FFS.php'; |
— | — | @@ -140,7 +173,13 @@ |
141 | 174 | $wgAutoloadClasses['ShapadoJsFFS'] = $dir . 'FFS.php'; |
142 | 175 | $wgAutoloadClasses['GettextFFS'] = $dir . '/ffs/Gettext.php'; |
143 | 176 | $wgAutoloadClasses['FlatPhpFFS'] = $dir . 'ffs/PhpVariables.php'; |
| 177 | +/**@}*/ |
144 | 178 | |
| 179 | +/** |
| 180 | + * @name Classes for different kind of html building |
| 181 | + * @{ |
| 182 | + */ |
145 | 183 | $wgAutoloadClasses['HtmlTag'] = $dir . 'utils/Html.php'; |
146 | 184 | $wgAutoloadClasses['RawHtml'] = $dir . 'utils/Html.php'; |
147 | 185 | $wgAutoloadClasses['TagContainer'] = $dir . 'utils/Html.php'; |
| 186 | +/**@}*/ |