Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -203,12 +203,7 @@ |
204 | 204 | |
205 | 205 | $options = $parser->getOptions(); |
206 | 206 | |
207 | | - if ( method_exists( $options, 'getUserLang' ) ) { |
208 | | - $userLangCode = $options->getUserLang(); |
209 | | - } else { // Backward compat for MediaWiki 1.17 |
210 | | - global $wgLang; |
211 | | - $userLangCode = $wgLang->getCode(); |
212 | | - } |
| 207 | + $userLangCode = $options->getUserLang(); |
213 | 208 | |
214 | 209 | // BC for <1.19 |
215 | 210 | $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new Linker; |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -269,13 +269,6 @@ |
270 | 270 | 'scripts' => 'resources/jquery.autoresize.js', |
271 | 271 | ) + $resourcePaths; |
272 | 272 | |
273 | | -// Doesn't exist in 1.17, but declaring twice causes an error |
274 | | -if ( version_compare( $wgVersion, '1.18', '<' ) ) { |
275 | | -$wgResourceModules['jquery.form'] = array( |
276 | | - 'scripts' => 'resources/jquery.form.js', |
277 | | -) + $resourcePaths; |
278 | | -} |
279 | | - |
280 | 273 | /** @endcond */ |
281 | 274 | |
282 | 275 | |
Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -84,10 +84,6 @@ |
85 | 85 | define( 'NS_TRANSLATIONS_TALK', $wgPageTranslationNamespace + 1 ); |
86 | 86 | } |
87 | 87 | |
88 | | - if ( version_compare( $wgVersion, '1.17alpha', '<' ) ) { |
89 | | - efTranslateNamespaces( $wgExtraNamespaces ); |
90 | | - } |
91 | | - |
92 | 88 | $wgNamespacesWithSubpages[NS_TRANSLATIONS] = true; |
93 | 89 | $wgNamespacesWithSubpages[NS_TRANSLATIONS_TALK] = true; |
94 | 90 | |
Index: trunk/extensions/Translate/README |
— | — | @@ -30,6 +30,8 @@ |
31 | 31 | https://translatewiki.net/docs/Translate/html/ |
32 | 32 | |
33 | 33 | == Change log == |
| 34 | +* 2012-02-19 |
| 35 | +- MediaWiki 1.18 or later is now required. |
34 | 36 | * 2012-02-13 |
35 | 37 | - Updated some deprecated function calls |
36 | 38 | - New translation memory called TTMServer comes with the extension and is enabled |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -1376,13 +1376,6 @@ |
1377 | 1377 | |
1378 | 1378 | public static function addModules( OutputPage $out ) { |
1379 | 1379 | $out->addModules( 'ext.translate.quickedit' ); |
1380 | | - |
1381 | | - // Might be needed, but ajax doesn't load it |
1382 | | - // Globals :( |
1383 | | - /// @todo: remove when 1.17 is no longer supported. |
1384 | | - // The RL module name is different in 1.17 and >1.17 |
1385 | | - $diff = new DifferenceEngine; |
1386 | | - $diff->showDiffStyle(); |
1387 | 1380 | } |
1388 | 1381 | |
1389 | 1382 | /// @since 2012-01-04 |
Index: trunk/extensions/Translate/specials/SpecialImportTranslations.php |
— | — | @@ -158,9 +158,6 @@ |
159 | 159 | $this->request->getText( 'upload-type' ) === 'wiki' ) . |
160 | 160 | "\n" . Xml::closeElement( 'td' ) . Xml::openElement( 'td' ) . "\n" . |
161 | 161 | Xml::input( 'upload-wiki', 50, |
162 | | - /** |
163 | | - * @todo Needs i18n in content language. |
164 | | - */ |
165 | 162 | $this->request->getText( 'upload-wiki', 'File:' ), |
166 | 163 | array( 'id' => 'mw-translate-up-wiki-input' ) + $class ) . |
167 | 164 | "\n" . Xml::closeElement( 'td' ) . Xml::closeElement( 'tr' ) . |