interface LocaleBundleInterface implements ResourceBundleInterface

Gives access to locale-related ICU data.

Methods

string[]
getLocales()

Returns the list of locales that this bundle supports.

string|null
getLocaleName(string $locale, string $displayLocale = null)

Returns the name of a locale.

string[]
getLocaleNames(string $displayLocale = null)

Returns the names of all known locales.

Details

in ResourceBundleInterface at line line 26
string[] getLocales()

Returns the list of locales that this bundle supports.

Return Value

string[] A list of locale codes

at line line 30
string|null getLocaleName(string $locale, string $displayLocale = null)

Returns the name of a locale.

Parameters

string $locale The locale to return the name of (e.g. "de_AT")
string $displayLocale Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}.

Return Value

string|null The name of the locale or NULL if not found

at line line 40
string[] getLocaleNames(string $displayLocale = null)

Returns the names of all known locales.

Parameters

string $displayLocale Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}.

Return Value

string[] A list of locale names indexed by locale codes