From: Ævar Arnfjörð Bjarmason Date: Sat, 8 Oct 2005 19:32:37 +0000 (+0000) Subject: * Don't output messages at all if they equal the parent message X-Git-Tag: 1.6.0~1502 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=fc5613f78391e81943a53e516ceb09b06bb364f0;p=lhc%2Fweb%2Fwiklou.git * Don't output messages at all if they equal the parent message --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index afb3a3f5d2..d03f210ff0 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -64,13 +64,14 @@ function makePhp($messages) { $txt = "\n\n".'$wgAllMessages'.ucfirst($wgLanguageCode).' = array('."\n"; foreach( $messages as $key => $m ) { if(strtolower($wgLanguageCode) != 'en' and $m['msg'] == $m['enmsg'] ) { - if (strstr($m['msg'],"\n")) { - $txt.='/* '; - $comment=' */'; - } else { - $txt .= '#'; - $comment = ''; - } + //if (strstr($m['msg'],"\n")) { + // $txt.='/* '; + // $comment=' */'; + //} else { + // $txt .= '#'; + // $comment = ''; + //} + continue; } elseif ($m['msg'] == '<'.$key.'>'){ $m['msg'] = ''; $comment = ' #empty';