comment out entries that are the same as in en, use wfMsgNoDb( )
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 10 May 2004 13:08:51 +0000 (13:08 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 10 May 2004 13:08:51 +0000 (13:08 +0000)
includes/SpecialAllmessages.php

index a8d3e85..6152069 100644 (file)
@@ -15,9 +15,7 @@
                $wgMessageCache->disableTransform();
                foreach ( $sortedArray as $key => $enMsg ) {
                        $messages[$key]['enmsg'] = $enMsg;
-               $wgMessageCache->disable();
-                       $messages[$key]['statmsg'] = wfMsg( $key );
-               $wgMessageCache->enable();
+                       $messages[$key]['statmsg'] = wfMsgNoDb( $key );
                        $messages[$key]['msg'] = wfMsg ( $key );
                }
                if ($ot == 'php') {
@@ -34,7 +32,7 @@
                $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'] == '&lt;'.$key.'&gt;'){
                                $m['msg'] = '';
                                $comment = ' #empty';