switch off message expansion. Messages seem to be expanded in the db, didn't find...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 3 May 2004 10:23:51 +0000 (10:23 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 3 May 2004 10:23:51 +0000 (10:23 +0000)
includes/SpecialAllmessages.php

index 93a6ea6..a8d3e85 100644 (file)
@@ -2,7 +2,7 @@
 
        function wfSpecialAllmessages()
        {
-               global $wgOut, $wgAllMessagesEn, $wgRequest;
+               global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache;
                $ot = $wgRequest->getText('ot');
                $mwMsg =& MagicWord::get( MAG_MSG );
                set_time_limit(0);
                $sortedArray = $wgAllMessagesEn;
                ksort( $sortedArray );
                $messages = array();
+               $wgMessageCache->disableTransform();
                foreach ( $sortedArray as $key => $enMsg ) {
-
                        $messages[$key]['enmsg'] = $enMsg;
-                       $messages[$key]['statmsg'] = wfMsgNoDB( $key );
+               $wgMessageCache->disable();
+                       $messages[$key]['statmsg'] = wfMsg( $key );
+               $wgMessageCache->enable();
                        $messages[$key]['msg'] = wfMsg ( $key );
                }
                if ($ot == 'php') {
@@ -39,7 +41,7 @@
                        } else {
                                $comment = '';
                        }
-                       $txt .= "    '".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n";
+                       $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n";
                }
                $txt .= ');';
                return $txt;