r110238 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110237‎ | r110238 | r110239 >
Date:12:49, 29 January 2012
Author:maxsem
Status:ok
Tags:core 
Comment:
Add function present in ordinary converter to FakeConverter
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -33,6 +33,7 @@
3434 function __construct( $langobj ) { $this->mLang = $langobj; }
3535 function autoConvertToAllVariants( $text ) { return array( $this->mLang->getCode() => $text ); }
3636 function convert( $t ) { return $t; }
 37+ function convertTo( $text, $variant ) { return $text; }
3738 function convertTitle( $t ) { return $t->getPrefixedText(); }
3839 function getVariants() { return array( $this->mLang->getCode() ); }
3940 function getPreferredVariant() { return $this->mLang->getCode(); }

Status & tagging log