LocaleBundleInterface
extends
ResourceBundleInterface
in
Gives access to locale-related ICU data.
Tags
Table of Contents
- getLocaleName() : string|null
- Returns the name of a locale.
- getLocaleNames() : array<string|int, string>
- Returns the names of all known locales.
- getLocales() : array<string|int, string>
- Returns the list of locales that this bundle supports.
Methods
getLocaleName()
Returns the name of a locale.
public
getLocaleName(string $locale[, string $displayLocale = null ]) : string|null
Parameters
- $locale : string
-
The locale to return the name of (e.g. "de_AT")
- $displayLocale : string = null
-
Return values
string|null —The name of the locale or NULL if not found
getLocaleNames()
Returns the names of all known locales.
public
getLocaleNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
Return values
array<string|int, string> —A list of locale names indexed by locale codes
getLocales()
Returns the list of locales that this bundle supports.
public
getLocales() : array<string|int, string>
Return values
array<string|int, string> —A list of locale codes