Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/236427

Change subject: Make language names go through proper fallback chain
......................................................................

Make language names go through proper fallback chain

Why doesn't cldr make this the default?

Bug: T111643
Change-Id: If3c9cacd221fc7947bbfd3949bb22d33859c954a
---
M SpecialSiteMatrix.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SiteMatrix 
refs/changes/27/236427/1

diff --git a/SpecialSiteMatrix.php b/SpecialSiteMatrix.php
index 9a3dc88..98e022d 100644
--- a/SpecialSiteMatrix.php
+++ b/SpecialSiteMatrix.php
@@ -13,7 +13,7 @@
        public static function getLocalLanguageNames() {
                if ( class_exists( 'LanguageNames' ) ) {
                        global $wgLang;
-                       return LanguageNames::getNames( $wgLang->getCode() );
+                       return LanguageNames::getNames( $wgLang->getCode(), 
LanguageNames::FALLBACK_NORMAL );
                }
                return array();
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/236427
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3c9cacd221fc7947bbfd3949bb22d33859c954a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SiteMatrix
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to