From fc5613f78391e81943a53e516ceb09b06bb364f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 8 Oct 2005 19:32:37 +0000 Subject: [PATCH] * Don't output messages at all if they equal the parent message --- includes/SpecialAllmessages.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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'; -- 2.20.1