- */
- function autoConvert($text) {
- return $text;
- }
-
- # see if we have a list of language variants for conversion.
- # right now mainly used in the Chinese conversion
- function getVariants() {
- return array();
- }
-
-
- function getPreferredVariant() {
- global $wgUser;
-
- // if user logged in, get in from user's preference
- if($wgUser->getID()!=0)
- return $wgUser->getOption('variant');
-
- // if we have multiple variants for this langauge,
- // pick the first one as default
- $v=$this->getVariants() ;
- if(!empty($v))
- return $v{0};
-
- // otherwise there should really be just one variant,
- // get it from the class name
- $lang = strtolower(substr(get_class($this), 8));
- return $lang;
- }
+ */
+ function autoConvert($text) {
+ return $text;
+ }
+
+ # see if we have a list of language variants for conversion.
+ # right now mainly used in the Chinese conversion
+ function getVariants() {
+ return array();
+ }
+
+
+ function getPreferredVariant() {
+ global $wgUser;
+
+ // if user logged in, get in from user's preference
+ if($wgUser->getID()!=0)
+ return $wgUser->getOption('variant');
+
+ // if we have multiple variants for this langauge,
+ // pick the first one as default
+ $v=$this->getVariants() ;
+ if(!empty($v))
+ return $v{0};
+
+ // otherwise there should really be just one variant,
+ // get it from the class name
+ $lang = strtolower(substr(get_class($this), 8));
+ return $lang;
+ }