}
$wgLang = Language::factory( $langCode );
+ $installer->setParserLanguage( $wgLang->getCode() );
+
$wgMetaNamespace = $wgCanonicalNamespaceNames[NS_PROJECT];
$session = $installer->execute( $session );
}
$this->parserTitle = Title::newFromText( 'Installer' );
- $this->parserOptions = new ParserOptions;
+ $this->parserOptions = new ParserOptions; // language will be wrong :(
$this->parserOptions->setEditSection( false );
}
return true;
}
+ /**
+ * ParserOptions are constructed before we determined the language, so fix it
+ */
+ public function setParserLanguage( $lang ) {
+ $this->parserOptions->setTargetLanguage( $lang );
+ $this->parserOptions->setUserLang( $lang );
+ }
+
/**
* Extension tag hook for a documentation link.
*/