Index: trunk/phase3/includes/SpecialAllmessages.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | function wfSpecialAllmessages() |
5 | 5 | { |
6 | | - global $wgOut, $wgAllMessagesEn, $wgRequest; |
| 6 | + global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache; |
7 | 7 | $ot = $wgRequest->getText('ot'); |
8 | 8 | $mwMsg =& MagicWord::get( MAG_MSG ); |
9 | 9 | set_time_limit(0); |
— | — | @@ -12,10 +12,12 @@ |
13 | 13 | $sortedArray = $wgAllMessagesEn; |
14 | 14 | ksort( $sortedArray ); |
15 | 15 | $messages = array(); |
| 16 | + $wgMessageCache->disableTransform(); |
16 | 17 | foreach ( $sortedArray as $key => $enMsg ) { |
17 | | - |
18 | 18 | $messages[$key]['enmsg'] = $enMsg; |
19 | | - $messages[$key]['statmsg'] = wfMsgNoDB( $key ); |
| 19 | + $wgMessageCache->disable(); |
| 20 | + $messages[$key]['statmsg'] = wfMsg( $key ); |
| 21 | + $wgMessageCache->enable(); |
20 | 22 | $messages[$key]['msg'] = wfMsg ( $key ); |
21 | 23 | } |
22 | 24 | if ($ot == 'php') { |
— | — | @@ -39,7 +41,7 @@ |
40 | 42 | } else { |
41 | 43 | $comment = ''; |
42 | 44 | } |
43 | | - $txt .= " '".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; |
| 45 | + $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; |
44 | 46 | } |
45 | 47 | $txt .= ');'; |
46 | 48 | return $txt; |