From: Gabriel Wicke Date: Mon, 10 May 2004 13:08:51 +0000 (+0000) Subject: comment out entries that are the same as in en, use wfMsgNoDb( ) X-Git-Tag: 1.3.0beta1~104 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=73ec400d1afc143f1b0fa50cb83c39281158b30c;p=lhc%2Fweb%2Fwiklou.git comment out entries that are the same as in en, use wfMsgNoDb( ) --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index a8d3e851bf..615206900c 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -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'] == '<'.$key.'>'){ $m['msg'] = ''; $comment = ' #empty';