public static function languagesList($full = false, $sort = true)
    {
        $languages = [];
        if ($full) {
            foreach (static::$_catalog as $code => $info) {
                $languages[$code] = $info['language'];
            }
        } else {
            foreach (quickapps('languages') as $code => $data) {
                $languages[$code] = $data['name'];
            }
        }

        if ($sort) {
            asort($languages);
        }

        return $languages;
    }
public static function languagesList($full = false, $sort = true)
    {
        $languages = [];
        if ($full) {
            foreach (static::$_catalog as $code => $info) {
                $languages[$code] = $info['language'];
            }
        } else {
            foreach (quickapps('languages') as $code => $data) {
                $languages[$code] = $data['name'];
            }
        }

        if ($sort) {
            asort($languages);
        }

        return $languages;
    }
public static function languagesList ( $ full = false , $ sort = true ) { $ languages = [ ] ; if ( $ full ) { foreach ( static :: $ _catalog as $ code => $ info ) { $ languages [ $ code ] = $ info [ 'language' ] ; } } else { foreach ( quickapps ( 'languages' ) as $ code => $ data ) { $ languages [ $ code ] = $ data [ 'name' ] ; } } if ( $ sort ) { asort ( $ languages ) ; } return $ languages ; }
Gets a list of languages suitable for select boxes.

@param bool $full Set to true to return the entire list of languages
(from catalog). Set to false (by default) to get a list of installed languages
@param bool $sort Sort languages alphabetically if set to true (by default).
@return void
Gets a list of languages suitable for select boxes .