From dbccf44e1ccfcff70b8848bf00375ff3a15c41f9 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Thu, 12 Aug 2004 09:52:32 +0000 Subject: [PATCH] Use /* */ style comments instead of # for multiline commented out entries. Allows copy-paste from SpecialAllmessages to Language??.php --- includes/SpecialAllmessages.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'; -- 2.20.1