dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2e817
)
Use /* */ style comments instead of # for multiline commented out entries.
author
Domas Mituzas
<midom@users.mediawiki.org>
Thu, 12 Aug 2004 09:52:32 +0000
(09:52 +0000)
committer
Domas 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
patch
|
blob
|
history
diff --git
a/includes/SpecialAllmessages.php
b/includes/SpecialAllmessages.php
index
30b1741
..
4ef0bcc
100644
(file)
--- 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';