Bartosz Dziewoński has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/371737 )
Change subject: Sort names in the language dropdown according to user's language ...................................................................... Sort names in the language dropdown according to user's language Bug: T171978 Change-Id: I35313fc3e41a4b26634f7c13bfb708bd04995100 --- M UploadWizard.config.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard refs/changes/37/371737/1 diff --git a/UploadWizard.config.php b/UploadWizard.config.php index 79fc662..e7c329a 100644 --- a/UploadWizard.config.php +++ b/UploadWizard.config.php @@ -64,7 +64,9 @@ } // Sort the list by the language name - natcasesort( $uwLanguages ); + // (If a specific collation is not available for the user's language, this falls back to a generic 'root' one.) + $collator = Collator::create( $userLangCode ); + $collator->sort( $uwLanguages ); // Cache the list for 1 day $wgMemc->set( $cacheKey, $uwLanguages, 60 * 60 * 24 ); } -- To view, visit https://gerrit.wikimedia.org/r/371737 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I35313fc3e41a4b26634f7c13bfb708bd04995100 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UploadWizard Gerrit-Branch: master Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits