*
* settings:
* $wgUseTex*, $wgUseDynamicDates*, $wgInterwikiMagic*,
- * $wgNamespacesWithSubpages, $wgLanguageCode, $wgAllowExternalImages*,
+ * $wgNamespacesWithSubpages, $wgAllowExternalImages*,
* $wgLocaltimezone
*
* * only within ParserOptions
}
function internalParse( $text, $linestart, $args = array(), $isMain=true ) {
- global $wgLanguageCode, $wgLang;
+ global $wgLang;
$fname = 'Parser::internalParse';
wfProfileIn( $fname );
$text = $this->removeHTMLtags( $text );
$text = $this->replaceVariables( $text, $args );
- if($wgLanguageCode == "zh") {
- $text = $wgLang->convert($text);
- }
+ $text = $wgLang->convert($text);
$text = preg_replace( '/(^|\n)-----*/', '\\1<hr />', $text );
# The wikilinks [[ ]] are procedeed here.
/* private */ function replaceInternalLinks( $s ) {
global $wgLang, $wgLinkCache;
- global $wgNamespacesWithSubpages, $wgLanguageCode;
+ global $wgNamespacesWithSubpages;
static $fname = 'Parser::replaceInternalLinks' ;
wfProfileIn( $fname );
function convertGrammar( $word, $case ) {
return $word;
}
+
+ # Hook for Chinese traditional/simplified conversion
+ function convert( $text ) {
+ return $text;
+ }
}
# This should fail gracefully if there's not a localization available