models/Language.php
public static function getLanguageNames($active = false)
    {
        $languageNames = [];
        foreach (self::getLanguages($active, true) as $language) {
            $languageNames[$language['language_id']] = $language['name'];
        }

        return $languageNames;
    }
public static function getLanguageNames($active = false)
    {
        $languageNames = [];
        foreach (self::getLanguages($active, true) as $language) {
            $languageNames[$language['language_id']] = $language['name'];
        }

        return $languageNames;
    }
public static function getLanguageNames ( $ active = false ) { $ languageNames = [ ] ; foreach ( self :: getLanguages ( $ active , true ) as $ language ) { $ languageNames [ $ language [ 'language_id' ] ] = $ language [ 'name' ] ; } return $ languageNames ; }
Returns the list of languages stored in the database in an array.

@param bool $active True/False according to the status of the language.

@return array

@deprecated since version 1.5.2
Returns the list of languages stored in the database in an array .