r111481 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111480‎ | r111481 | r111482 >
Date:20:24, 14 February 2012
Author:kaldari
Status:ok
Tags:
Comment:
display message language name in the users language, not the language of the message. correcting comment.
Modified paths:
  • /trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php
@@ -338,7 +338,7 @@
339339 $disabled = array( 'disabled' => 'disabled' );
340340 }
341341
342 - // Get user's language
 342+ // Get the language to display the banner preview and messages in
343343 $wpUserLang = $wgRequest->getVal( 'wpUserLanguage', $wgLanguageCode );
344344
345345 // Get current banner
@@ -414,7 +414,7 @@
415415 wfMsg ( 'centralnotice-number-uses' ) );
416416 $htmlOut .= Html::element( 'th', array( 'width' => '40%' ),
417417 wfMsg ( 'centralnotice-english' ) );
418 - $languages = Language::getLanguageNames();
 418+ $languages = Language::getTranslatedLanguageNames( $wgLang->getCode() );
419419 $htmlOut .= Html::element( 'th', array( 'width' => '40%' ),
420420 $languages[$wpUserLang] );
421421

Status & tagging log