Skip to content

Language::getNativeName

James Cobban edited this page Jul 22, 2019 · 4 revisions

$language->getNativeName()

Up: class Language

This returns the name of the Language in that Language. For example it returns 'français' when called for French.

It overloads the base implementation as follows: if the constructor was invoked with a country-qualified language code, where the supplied country code is defined, then this returns the native name of the language qualified by the name of the country, for example "français(Canada)" or "Español(México)". Note that if available the name of the country is given in that language. For example "Español(España)" or "Deutsch(Osterreich)"

Next: $language->getCountry()

Clone this wiki locally