Nikerabbit has uploaded a new change for review.

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

Change subject: MessageGroupStats: use TranslateUtils::getLanguageNames
......................................................................

MessageGroupStats: use TranslateUtils::getLanguageNames

For consistency with other code, causes bugs with qqq for example.

Bug: T105856
Change-Id: Ic0160e23a6240ec8b1b426c31f2340af5e284735
---
M utils/MessageGroupStats.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/14/226314/1

diff --git a/utils/MessageGroupStats.php b/utils/MessageGroupStats.php
index b813eaa..dde1cfc 100644
--- a/utils/MessageGroupStats.php
+++ b/utils/MessageGroupStats.php
@@ -276,7 +276,7 @@
                $stats = self::extractResults( $res, $stats );
 
                # Go over each language filling missing entries
-               $languages = array_keys( Language::fetchLanguageNames() );
+               $languages = array_keys( TranslateUtils::getLanguageNames( 'en' 
) );
                // This is for calculating things in correct order
                sort( $languages );
                foreach ( $languages as $code ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0160e23a6240ec8b1b426c31f2340af5e284735
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

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

Reply via email to