}
function convert($text) {
-
+
// no conversion if redirecting
if(substr($text,0,9) == "#REDIRECT") {
return $text;
}
+
// determine the preferred language from the request header
$tolang = $this->getPreferredLanguage();
$text = $text.$this->simp2trad($a{1});
}
}
+
return $text;
}
-
+ function getVariants() {
+ return array("zh_cn", "zh_tw");
+ }
/* these just calls the method of the corresponding class */