r5556 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5555‎ | r5556 | r5557 >
Date:00:06, 27 September 2004
Author:zhengzhu
Status:old
Tags:
Comment:
let getVariants() returns the content language by default. this makes sure messages of the content language are drawn from the MediaWiki namespace.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -2035,10 +2035,11 @@
20362036 return $text;
20372037 }
20382038
2039 - # see if we have a list of language variants for conversion.
 2039+ # returns a list of language variants for conversion.
20402040 # right now mainly used in the Chinese conversion
20412041 function getVariants() {
2042 - return array();
 2042+ $lang = strtolower(substr(get_class($this), 8));
 2043+ return array($lang);
20432044 }
20442045
20452046

Status & tagging log