Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php |
— | — | @@ -338,7 +338,7 @@ |
339 | 339 | $disabled = array( 'disabled' => 'disabled' ); |
340 | 340 | } |
341 | 341 | |
342 | | - // Get user's language |
| 342 | + // Get the language to display the banner preview and messages in |
343 | 343 | $wpUserLang = $wgRequest->getVal( 'wpUserLanguage', $wgLanguageCode ); |
344 | 344 | |
345 | 345 | // Get current banner |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | wfMsg ( 'centralnotice-number-uses' ) ); |
416 | 416 | $htmlOut .= Html::element( 'th', array( 'width' => '40%' ), |
417 | 417 | wfMsg ( 'centralnotice-english' ) ); |
418 | | - $languages = Language::getLanguageNames(); |
| 418 | + $languages = Language::getTranslatedLanguageNames( $wgLang->getCode() ); |
419 | 419 | $htmlOut .= Html::element( 'th', array( 'width' => '40%' ), |
420 | 420 | $languages[$wpUserLang] ); |
421 | 421 | |