By gábor hojtsy on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Language configuration does not store or ask for the native name of a language anymore, and the English name was changed to just name. If you need the name of a language in any language, you can use configuration translation (for configured languages) or t() for predefined languages using the language code.
// Assuming German interface translations are loaded, this will translate to native name.
$deutsch = t('German', array(), array('langcode' => 'de'));