Use /* */ style comments instead of # for multiline commented out entries.
authorDomas Mituzas <midom@users.mediawiki.org>
Thu, 12 Aug 2004 09:52:32 +0000 (09:52 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Thu, 12 Aug 2004 09:52:32 +0000 (09:52 +0000)
Allows copy-paste from SpecialAllmessages to Language??.php

includes/SpecialAllmessages.php

index 30b1741..4ef0bcc 100644 (file)
                $txt = "\n\n".'$wgAllMessages'.ucfirst($wgLanguageCode).' = array('."\n";
                foreach( $messages as $key => $m ) {
                        if(strtolower($wgLanguageCode) != 'en' and $m['msg'] == $m['enmsg'] ) {
-                               $txt .= '#';
+                               if (strstr($m['msg'],"\n")) {
+                                       $txt.='/* ';
+                                       $comment=' */';
+                               } else {
+                                       $txt .= '#';
+                               }
                        } elseif ($m['msg'] == '&lt;'.$key.'&gt;'){
                                $m['msg'] = '';
                                $comment = ' #empty';