public static function getAvailableLanguages($checkStatus = true)
    {
        $languages = array();

        // Get available languages
        foreach (self::$_languages as $key => $language) {
            if (self::isLanguageEnabled($key) || ($checkStatus === false && isset($language['handle']))) {
                $languages[$key] = $language['name'];
            }
        }

        // Return languages codes
        return $languages;
    }
public static function getAvailableLanguages($checkStatus = true)
    {
        $languages = array();

        // Get available languages
        foreach (self::$_languages as $key => $language) {
            if (self::isLanguageEnabled($key) || ($checkStatus === false && isset($language['handle']))) {
                $languages[$key] = $language['name'];
            }
        }

        // Return languages codes
        return $languages;
    }
public static function getAvailableLanguages ( $ checkStatus = true ) { $ languages = array ( ) ; // Get available languages foreach ( self :: $ _languages as $ key => $ language ) { if ( self :: isLanguageEnabled ( $ key ) || ( $ checkStatus === false && isset ( $ language [ 'handle' ] ) ) ) { $ languages [ $ key ] = $ language [ 'name' ] ; } } // Return languages codes return $ languages ; }
Get an array of the codes and names of all languages that are available system wide.

Note: Beginning with Symphony 2.2 language files are only available
when the language extension is explicitly enabled.

@param boolean $checkStatus (optional)
If false, retrieves a list a languages that support core translation.
@return array
Returns an associative array of language codes and names, e. g. 'en' => 'English'
Get an array of the codes and names of all languages that are available system wide .