Index: trunk/phase3/includes/SpecialAllmessages.php |
— | — | @@ -10,7 +10,8 @@ |
11 | 11 | */ |
12 | 12 | function wfSpecialAllmessages() { |
13 | 13 | global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle; |
14 | | - |
| 14 | + global $wgDoZhMessageConversion, $wgLanguageCode; |
| 15 | + |
15 | 16 | $fname = "wfSpecialAllMessages"; |
16 | 17 | wfProfileIn( $fname ); |
17 | 18 | |
— | — | @@ -24,11 +25,19 @@ |
25 | 26 | ksort( $sortedArray ); |
26 | 27 | $messages = array(); |
27 | 28 | $wgMessageCache->disableTransform(); |
| 29 | + |
| 30 | + if(strtolower($wgLanguageCode) == "zh") |
| 31 | + $wgDoZhMessageConversion = false; |
| 32 | + |
28 | 33 | foreach ( $sortedArray as $key => $enMsg ) { |
29 | 34 | $messages[$key]['enmsg'] = $enMsg; |
30 | 35 | $messages[$key]['statmsg'] = wfMsgNoDb( $key ); |
31 | 36 | $messages[$key]['msg'] = wfMsg ( $key ); |
32 | 37 | } |
| 38 | + |
| 39 | + if(strtolower($wgLanguageCode) == "zh") |
| 40 | + $wgDoZhMessageConversion = true; |
| 41 | + |
33 | 42 | $wgMessageCache->enableTransform(); |
34 | 43 | wfProfileOut( "$fname-setup" ); |
35 | 44 | |