class LanguageBundle extends LanguageDataProvider implements LanguageBundleInterface
Default implementation of {@link LanguageBundleInterface}.
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider, ScriptDataProvider $scriptProvider) Creates a new language bundle. | ||
getLanguages() | from LanguageDataProvider | |
getAliases() | from LanguageDataProvider | |
getName($language, $displayLocale = null) | from LanguageDataProvider | |
getNames($displayLocale = null) | from LanguageDataProvider | |
getAlpha3Code($language) | from LanguageDataProvider | |
string|null | getLanguageName(string $language, string|null $region = null, string $displayLocale = null) Returns the name of a language. | |
string[] | getLanguageNames(string $displayLocale = null) Returns the names of all known languages. | |
string|null | getScriptName(string $script, string $language = null, string $displayLocale = null) Returns the name of a script. | |
string[] | getScriptNames(string $displayLocale = null) Returns the names of all known scripts. | |
string[] | getLocales() Returns the list of locales that this bundle supports. |
Creates a new language bundle.
Returns the name of a language.
Returns the names of all known languages.
Returns the name of a script.
Returns the names of all known scripts.
Returns the list of locales that this bundle supports.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Intl/ResourceBundle/LanguageBundle.html