Index: trunk/phase3/includes/parser/ParserOptions.php |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | function setTidy( $x ) { return wfSetVar( $this->mTidy, $x); } |
139 | 139 | function setSkin( $x ) { $this->mSkin = $x; } |
140 | 140 | function setInterfaceMessage( $x ) { return wfSetVar( $this->mInterfaceMessage, $x); } |
141 | | - function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x); } |
| 141 | + function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x, true ); } |
142 | 142 | function setMaxIncludeSize( $x ) { return wfSetVar( $this->mMaxIncludeSize, $x ); } |
143 | 143 | function setMaxPPNodeCount( $x ) { return wfSetVar( $this->mMaxPPNodeCount, $x ); } |
144 | 144 | function setMaxTemplateDepth( $x ) { return wfSetVar( $this->mMaxTemplateDepth, $x ); } |
Index: trunk/phase3/includes/cache/MessageCache.php |
— | — | @@ -761,11 +761,12 @@ |
762 | 762 | $popts = $this->getParserOptions(); |
763 | 763 | $popts->setInterfaceMessage( $interface ); |
764 | 764 | $popts->setTargetLanguage( $language ); |
765 | | - $popts->setUserLang( $language ); |
766 | 765 | |
| 766 | + $userlang = $popts->setUserLang( $language ); |
767 | 767 | $this->mInParser = true; |
768 | 768 | $message = $parser->transformMsg( $message, $popts, $title ); |
769 | 769 | $this->mInParser = false; |
| 770 | + $popts->setUserLang( $userlang ); |
770 | 771 | } |
771 | 772 | return $message; |
772 | 773 | } |