Index: trunk/phase3/includes/installer/CoreInstaller.php |
— | — | @@ -242,7 +242,7 @@ |
243 | 243 | } |
244 | 244 | |
245 | 245 | $this->parserTitle = Title::newFromText( 'Installer' ); |
246 | | - $this->parserOptions = new ParserOptions; |
| 246 | + $this->parserOptions = new ParserOptions; // language will be wrong :( |
247 | 247 | $this->parserOptions->setEditSection( false ); |
248 | 248 | } |
249 | 249 | |
— | — | @@ -259,6 +259,14 @@ |
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
| 263 | + * ParserOptions are constructed before we determined the language, so fix it |
| 264 | + */ |
| 265 | + public function setParserLanguage( $lang ) { |
| 266 | + $this->parserOptions->setTargetLanguage( $lang ); |
| 267 | + $this->parserOptions->setUserLang( $lang ); |
| 268 | + } |
| 269 | + |
| 270 | + /** |
263 | 271 | * Extension tag hook for a documentation link. |
264 | 272 | */ |
265 | 273 | public function docLink( $linkText, $attribs, $parser ) { |
Index: trunk/phase3/config/index.php |
— | — | @@ -39,6 +39,8 @@ |
40 | 40 | } |
41 | 41 | $wgLang = Language::factory( $langCode ); |
42 | 42 | |
| 43 | + $installer->setParserLanguage( $wgLang->getCode() ); |
| 44 | + |
43 | 45 | $wgMetaNamespace = $wgCanonicalNamespaceNames[NS_PROJECT]; |
44 | 46 | |
45 | 47 | $session = $installer->execute( $session ); |