From: Domas Mituzas Date: Thu, 12 Aug 2004 09:52:32 +0000 (+0000) Subject: Use /* */ style comments instead of # for multiline commented out entries. X-Git-Tag: 1.5.0alpha1~2403 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=dbccf44e1ccfcff70b8848bf00375ff3a15c41f9;p=lhc%2Fweb%2Fwiklou.git Use /* */ style comments instead of # for multiline commented out entries. Allows copy-paste from SpecialAllmessages to Language??.php --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 30b17411a4..4ef0bcc1c1 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -32,7 +32,12 @@ $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'] == '<'.$key.'>'){ $m['msg'] = ''; $comment = ' #empty';