Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -403,6 +403,11 @@ |
404 | 404 | # Startup code |
405 | 405 | |
406 | 406 | function efTranslateNamespaces( &$list ) { |
| 407 | + global $wgPageTranslationNamespace; |
| 408 | + if ( !defined( 'NS_TRANSLATIONS' ) ) { |
| 409 | + define( 'NS_TRANSLATIONS', $wgPageTranslationNamespace ); |
| 410 | + define( 'NS_TRANSLATIONS_TALK', $wgPageTranslationNamespace + 1 ); |
| 411 | + } |
407 | 412 | $list[NS_TRANSLATIONS] = 'Translations'; |
408 | 413 | $list[NS_TRANSLATIONS_TALK] = 'Translations_talk'; |
409 | 414 | return true; |
— | — | @@ -472,8 +477,10 @@ |
473 | 478 | global $wgTranslateMessageNamespaces, $wgVersion; |
474 | 479 | |
475 | 480 | // Define constants for more readable core |
476 | | - define ( 'NS_TRANSLATIONS', $wgPageTranslationNamespace ); |
477 | | - define ( 'NS_TRANSLATIONS_TALK', $wgPageTranslationNamespace + 1 ); |
| 481 | + if ( !defined( 'NS_TRANSLATIONS' ) ) { |
| 482 | + define( 'NS_TRANSLATIONS', $wgPageTranslationNamespace ); |
| 483 | + define( 'NS_TRANSLATIONS_TALK', $wgPageTranslationNamespace + 1 ); |
| 484 | + } |
478 | 485 | |
479 | 486 | if ( version_compare( $wgVersion, '1.17alpha', '<' ) ) { |
480 | 487 | efTranslateNamespaces( &$wgExtraNamespaces ); |