LanguageBundle::getLanguageName()

string|null getLanguageName(string $language, string|null $region = null, string $displayLocale = null)

Returns the name of a language.

Parameters

string $language A language code (e.g. "en")
string|null $region Optional. A region code (e.g. "US")
string $displayLocale Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}.

Return Value

string|null The name of the language or NULL if not found
doc_Symfony
2016-10-28 06:22:14
Comments
Leave a Comment

Please login to continue.