Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -673,7 +673,7 @@ |
674 | 674 | if ( $target !== null ) { |
675 | 675 | return $target; |
676 | 676 | } else { |
677 | | - return $this->mOptions->getInterfaceMessage() ? $wgLang : $wgContLang; |
| 677 | + return $this->mOptions->getInterfaceMessage() ? $wgLang : $this->mTitle->getPageLanguage(); |
678 | 678 | } |
679 | 679 | } |
680 | 680 | |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -2071,11 +2071,6 @@ |
2072 | 2072 | |
2073 | 2073 | wfRunHooks( 'EditPageGetPreviewText', array( $this, &$toparse ) ); |
2074 | 2074 | |
2075 | | - // In which language to parse the page |
2076 | | - // (Should this still be only for MediaWiki pages, or for all pages?) |
2077 | | - if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) { |
2078 | | - $parserOptions->setTargetLanguage( $this->mTitle->getPageLanguage() ); |
2079 | | - } |
2080 | 2075 | $parserOptions->setTidy( true ); |
2081 | 2076 | $parserOptions->enableLimitReport(); |
2082 | 2077 | $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ), |