Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | $parser->getOptions()->setTargetLanguage( Language::factory( $code ) ); |
38 | 38 | $name = $page->getPageDisplayTitle( $code ); |
39 | 39 | if ( $name ) { |
| 40 | + global $wgMessageCache; |
| 41 | + $name = $wgMessageCache->transform( $name, false, Language::factory( $code ) ); |
40 | 42 | $parser->getOutput()->setDisplayTitle( $name ); |
41 | 43 | } |
42 | 44 | } |