more cssification of diff rendering, some " -> ' in diff engine
[lhc/web/wiklou.git] / includes / SpecialAllmessages.php
index 93a6ea6..6152069 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 );
+                       $messages[$key]['statmsg'] = wfMsgNoDb( $key );
                        $messages[$key]['msg'] = wfMsg ( $key );
                }
                if ($ot == 'php') {
                $txt = "\n\n".'$wgAllMessages'.ucfirst($wgLanguageCode).' = array('."\n";
                foreach( $messages as $key => $m ) {
                        if(strtolower($wgLanguageCode) != 'en' and $m['msg'] == $m['enmsg'] ) {
-                               $comment = ' #default';
+                               $txt .= '#';
                        } elseif ($m['msg'] == '<'.$key.'>'){
                                $m['msg'] = '';
                                $comment = ' #empty';
                        } else {
                                $comment = '';
                        }
-                       $txt .= "    '".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n";
+                       $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n";
                }
                $txt .= ');';
                return $txt;