HomePhabricator

Split some Language methods to LanguageNameUtils

Authored by Simetrical on May 2 2019, 2:23 PM.

Description

Split some Language methods to LanguageNameUtils

These are static methods that have to do with processing language names
and codes. I didn't include fallback behavior, because that would mean a
circular dependency with LocalisationCache.

In the new class, I renamed AS_AUTONYMS to AUTONYMS, and added a class
constant DEFINED for 'mw' to match the existing SUPPORTED and ALL. I
also renamed fetchLanguageName(s) to getLanguageName(s).

There is 100% test coverage for the code in the new class.

Change-Id: I245ae94bfc1f62b6af75ea57525139adf2539fe6

Details

Committed
SimetricalAug 23 2019, 9:52 AM
Parents
rMWe4ce770cbd89: Merge "Make LocalisationCache a service"
Branches
Unknown
Tags
Unknown
ChangeId
I245ae94bfc1f62b6af75ea57525139adf2539fe6