r69019 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69018‎ | r69019 | r69020 >
Date:21:13, 4 July 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Only show languages from Names.php and wgExtraLanguageNames to avoid unneeded "Specified language was invalid." and general confusion. Thanks for noticing, Hans.
Modified paths:
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateUtils.php
@@ -171,7 +171,7 @@
172172 if ( is_callable( array( 'LanguageNames', 'getNames' ) ) ) {
173173 $languages = LanguageNames::getNames( $language,
174174 LanguageNames::FALLBACK_NORMAL,
175 - LanguageNames::LIST_MW_AND_CLDR
 175+ LanguageNames::LIST_MW
176176 );
177177 } else {
178178 $languages = Language::getLanguageNames( false );

Status & tagging log