r78178 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78177‎ | r78178 | r78179 >
Date:13:06, 10 December 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Transform translated page headers, follow-up r73773
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -36,6 +36,8 @@
3737 $parser->getOptions()->setTargetLanguage( Language::factory( $code ) );
3838 $name = $page->getPageDisplayTitle( $code );
3939 if ( $name ) {
 40+ global $wgMessageCache;
 41+ $name = $wgMessageCache->transform( $name, false, Language::factory( $code ) );
4042 $parser->getOutput()->setDisplayTitle( $name );
4143 }
4244 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73773Allow translation of titles of translatable pages...nikerabbit13:29, 26 September 2010

Status & tagging log