From: Zheng Zhu Date: Mon, 27 Sep 2004 00:06:40 +0000 (+0000) Subject: let getVariants() returns the content language by default. this makes sure messages... X-Git-Tag: 1.5.0alpha1~1762 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=bae7fb64bc3dc503c745aa5da5d6412dd72bbad0;p=lhc%2Fweb%2Fwiklou.git let getVariants() returns the content language by default. this makes sure messages of the content language are drawn from the MediaWiki namespace. --- diff --git a/languages/Language.php b/languages/Language.php index e0377640be..32376a4e5a 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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); }