Index: trunk/phase3/includes/SpecialUserlogin.php |
— | — | @@ -457,6 +457,11 @@ |
458 | 458 | $wgUser->setCookies(); |
459 | 459 | |
460 | 460 | if( $this->hasSessionCookie() ) { |
| 461 | + /* Replace the language object to provide user interface in correct |
| 462 | + * language immediately on this first page load. |
| 463 | + */ |
| 464 | + global $wgLang; |
| 465 | + $wgLang = Language::factory( $wgUser->getOption( 'language' ) ); |
461 | 466 | return $this->successfulLogin( wfMsg( 'loginsuccess', $wgUser->getName() ) ); |
462 | 467 | } else { |
463 | 468 | return $this->cookieRedirectCheck( 'login' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -152,6 +152,7 @@ |
153 | 153 | * (bug 13441) Allow Special:Recentchanges to show bots only |
154 | 154 | * (bug 13431) Show true message source in Special:Allmessages&ot=php / xml |
155 | 155 | * (bug 13616) Replace underscores in search terms by spaces |
| 156 | +* (bug 13463) Login successful page doesn't use user's preferred interface language |
156 | 157 | |
157 | 158 | === API changes in 1.13 === |
158 | 159 | |