LocaleBundle
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()
No description
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 LocaleDataProvider at line line 44
__construct(string $path, BundleEntryReaderInterface $reader)
Creates a data provider that reads locale-related data from .res files.
at line line 29
getLocales()
in LocaleDataProvider at line line 55
getAliases()
in LocaleDataProvider at line line 66
getName($locale, $displayLocale = null)
in LocaleDataProvider at line line 75
getNames($displayLocale = null)
at line line 41
string|null
getLocaleName(string $locale, string $displayLocale = null)
Returns the name of a locale.
at line line 53
string[]
getLocaleNames(string $displayLocale = null)
Returns the names of all known locales.