Index: trunk/extensions/WikimediaIncubator/IncubatorTest.php |
— | — | @@ -678,7 +678,7 @@ |
679 | 679 | |
680 | 680 | /** |
681 | 681 | * Make the page content language depend on the test wiki |
682 | | - * Only works for codes that are known to MediaWiki :( |
| 682 | + * Info pages are in the user language, they're localised |
683 | 683 | */ |
684 | 684 | static function onPageContentLanguage( $title, &$pageLang ) { |
685 | 685 | global $wmincTestWikiNamespaces, $wgOut; |
— | — | @@ -687,10 +687,8 @@ |
688 | 688 | $wmincTestWikiNamespaces ) ) { |
689 | 689 | return true; |
690 | 690 | } |
691 | | - if( $prefix['prefix'] == $title->getText() ) { |
692 | | - return true; # Not for info pages (prefix == title) |
693 | | - } |
694 | | - $pageLang = $prefix['lang']; |
| 691 | + $pageLang = $prefix['prefix'] == $title->getText() ? |
| 692 | + $wgLang : Language::factory( $prefix['lang'] ); |
695 | 693 | return true; |
696 | 694 | } |
697 | 695 | |