* Don't output messages at all if they equal the parent message
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 8 Oct 2005 19:32:37 +0000 (19:32 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 8 Oct 2005 19:32:37 +0000 (19:32 +0000)
includes/SpecialAllmessages.php

index afb3a3f..d03f210 100644 (file)
@@ -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'] == '&lt;'.$key.'&gt;'){
                        $m['msg'] = '';
                        $comment = ' #empty';