From: Zheng Zhu Date: Thu, 16 Sep 2004 20:25:12 +0000 (+0000) Subject: Added entry point to call the Traditional/Simplified Chinese conversion code in Langu... X-Git-Tag: 1.5.0alpha1~2000 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=6ab460a57845e6a87d5baf3419b1ae8b005d9b9d;p=lhc%2Fweb%2Fwiklou.git Added entry point to call the Traditional/Simplified Chinese conversion code in LanguageZh.php --- diff --git a/includes/Parser.php b/includes/Parser.php index d2af6df51c..2703fe4b26 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -579,12 +579,18 @@ class Parser } function internalParse( $text, $linestart, $args = array(), $isMain=true ) { + global $wgLanguageCode, $wgLang; + $fname = 'Parser::internalParse'; wfProfileIn( $fname ); $text = $this->removeHTMLtags( $text ); $text = $this->replaceVariables( $text, $args ); + if($wgLanguageCode == "zh") { + $text = $wgLang->convert($text); + } + $text = preg_replace( '/(^|\n)-----*/', '\\1
', $text ); $text = $this->doHeadings( $text );