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:
deba2f9
)
Allow simple comments for each translation rule in MW:Zhconversiontable
author
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Thu, 27 Jan 2005 21:59:40 +0000
(21:59 +0000)
committer
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Thu, 27 Jan 2005 21:59:40 +0000
(21:59 +0000)
languages/LanguageZh.php
patch
|
blob
|
history
diff --git
a/languages/LanguageZh.php
b/languages/LanguageZh.php
index
9b65a82
..
a5b1315
100644
(file)
--- a/
languages/LanguageZh.php
+++ b/
languages/LanguageZh.php
@@
-189,7
+189,9
@@
class LanguageZh extends LanguageZh_cn {
$m = explode( '=>', $t );
if( count( $m ) != 2)
continue;
- $ret[trim($m[0])] = trim($m[1]);
+ // trim any trailling comments starting with '//'
+ $tt = explode('//', $m[1], 2);
+ $ret[trim($m[0])] = trim($tt[0]);
}
}
$parsed[$key] = true;