'youremail' => 'Your email*',
'yourrealname' => 'Your real name*',
'yourlanguage' => 'Interface language',
+'yourvariant' => 'Language variant',
'yournick' => 'Your nickname (for signatures)',
'emailforlost' => "Fields marked with a star (*) are optional. Storing an email address enables people to contact you through the website without you having to reveal your
email address to them, and it can be used to send you a new password if you forget it.<br /><br />Your real name, if you choose to provide it, will be used for giving you attribution for your work.",
function convert( $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();
+ }
}
# This should fail gracefully if there's not a localization available
}
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 */