Index: trunk/phase3/languages/LanguageZh.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | array_shift($zh); |
39 | 39 | $l = array_shift($zh); |
40 | 40 | if($l != NULL) { |
41 | | - $this->mZhLanguageCode = substr($l,0,2); |
| 41 | + $this->mZhLanguageCode = strtolower(substr($l,0,2)); |
42 | 42 | } |
43 | 43 | |
44 | 44 | return $this->mZhLanguageCode; |
— | — | @@ -60,11 +60,10 @@ |
61 | 61 | |
62 | 62 | // no conversion if redirecting |
63 | 63 | if(substr($text,0,9) == "#REDIRECT") { |
64 | | - return "Debug: is a redirect, no conversion<br>".$text; |
| 64 | + return $text; |
65 | 65 | } |
66 | 66 | // determine the preferred language from the request header |
67 | 67 | $tolang = $this->getPreferredLanguage(); |
68 | | - $debug = "Debug: Detected language preference: ".$tolang."<br>\n"; |
69 | 68 | |
70 | 69 | $ltext = explode("-{", $text); |
71 | 70 | $lfirst = array_shift($ltext); |
— | — | @@ -97,7 +96,7 @@ |
98 | 97 | $text = $text.$this->simp2trad($a{1}); |
99 | 98 | } |
100 | 99 | } |
101 | | - return $debug.$text; |
| 100 | + return $text; |
102 | 101 | } |
103 | 102 | |
104 | 103 | |