MediaWiki fundraising/REL1_35
|
A class for querying translated country names from CLDR data. More...
Static Public Member Functions | |
static | getNames ( $code) |
Get localized country names for a particular language, using fallback languages for missing items. | |
Static Public Member Functions inherited from CldrNames | |
static | getFileName ( $code) |
Get the name for the file that contains the CLDR data for a given language. | |
static | getOverrideFileName ( $code) |
Get the name for the file that contains the local override data for a given language. | |
Static Private Member Functions | |
static | loadLanguage ( $code) |
Load country names localized for a particular language. | |
Static Private Attributes | |
static | $cache = [] |
A class for querying translated country names from CLDR data.
Definition at line 11 of file CountryNames.php.
|
static |
Get localized country names for a particular language, using fallback languages for missing items.
string | $code | The language to return the list in |
Definition at line 22 of file CountryNames.php.
References $fallback, and loadLanguage().
Referenced by Gateway_Form_Mustache\getData(), and EmailPreferences\paramsForPreferencesForm().
|
staticprivate |
Load country names localized for a particular language.
Helper function for getNames.
string | $code | The language to return the list in |
Definition at line 42 of file CountryNames.php.
References $countryNames, CldrNames\getFileName(), CldrNames\getOverrideFileName(), and wfDebug().
Referenced by getNames().
|
staticprivate |
Definition at line 13 of file CountryNames.php.