27 $fallbacks = Language::getFallbacksFor( $code );
30 $names = array_merge( self::loadLanguage(
$fallback ), $names );
43 if ( !isset( self::$cache[$code] ) ) {
46 if ( Language::isValidBuiltInCode( $code ) && file_exists( $override ) ) {
56 if ( Language::isValidBuiltInCode( $code ) && file_exists( $filename ) ) {
61 if ( isset( self::$cache[$code] ) ) {
70 wfDebug( __METHOD__ .
": Unable to load currency names for $filename\n" );
74 return self::$cache[$code] ?? [];
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
A base class for querying translated names from CLDR data.
static getOverrideFileName( $code)
Get the name for the file that contains the local override data for a given language.
static getFileName( $code)
Get the name for the file that contains the CLDR data for a given language.
A class for querying translated currency names from CLDR data.
static getNames( $code)
Get localized currency names for a particular language, using fallback languages for missing items.
static loadLanguage( $code)
Load currency names localized for a particular language.