From 6ab460a57845e6a87d5baf3419b1ae8b005d9b9d Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Thu, 16 Sep 2004 20:25:12 +0000 Subject: [PATCH] Added entry point to call the Traditional/Simplified Chinese conversion code in LanguageZh.php --- includes/Parser.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ); -- 2.20.1