class LocaleBundle extends LocaleDataProvider implements LocaleBundleInterface
Default implementation of {@link LocaleBundleInterface}.
Methods
__construct(string $path, BundleEntryReaderInterface $reader) Creates a data provider that reads locale-related data from .res files. | from LocaleDataProvider | |
getLocales() | ||
getAliases() | from LocaleDataProvider | |
getName($locale, $displayLocale = null) | from LocaleDataProvider | |
getNames($displayLocale = null) | from LocaleDataProvider | |
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
__construct(string $path, BundleEntryReaderInterface $reader)
Creates a data provider that reads locale-related data from .res files.
getLocales()
getAliases()
getName($locale, $displayLocale = null)
getNames($displayLocale = null)
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.
Please login to continue.