Index: trunk/phase3/includes/Parser.php |
— | — | @@ -579,12 +579,18 @@ |
580 | 580 | } |
581 | 581 | |
582 | 582 | function internalParse( $text, $linestart, $args = array(), $isMain=true ) { |
| 583 | + global $wgLanguageCode, $wgLang; |
| 584 | + |
583 | 585 | $fname = 'Parser::internalParse'; |
584 | 586 | wfProfileIn( $fname ); |
585 | 587 | |
586 | 588 | $text = $this->removeHTMLtags( $text ); |
587 | 589 | $text = $this->replaceVariables( $text, $args ); |
588 | 590 | |
| 591 | + if($wgLanguageCode == "zh") { |
| 592 | + $text = $wgLang->convert($text); |
| 593 | + } |
| 594 | + |
589 | 595 | $text = preg_replace( '/(^|\n)-----*/', '\\1<hr />', $text ); |
590 | 596 | |
591 | 597 | $text = $this->doHeadings( $text ); |