let getVariants() returns the content language by default. this makes sure messages...
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 27 Sep 2004 00:06:40 +0000 (00:06 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 27 Sep 2004 00:06:40 +0000 (00:06 +0000)
languages/Language.php

index e037764..32376a4 100644 (file)
@@ -2035,10 +2035,11 @@ class Language {
                return $text;
        }
        
-       # see if we have a list of language variants for conversion.
+       # returns a list of language variants for conversion.
        # right now mainly used in the Chinese conversion
        function getVariants() {
-               return array();
+               $lang = strtolower(substr(get_class($this), 8));
+               return array($lang);
        }