Exemple #1
0
 /**
  * Returns a list of known languages for an area
  *
  * @access	public
  * @param	string	$basePath 	The basepath to use
  * @return	array	key/value pair with the language file and real name
  * @since	1.5
  */
 function getKnownLanguages($basePath = JPATH_BASE)
 {
     $dir = JLanguage::getLanguagePath($basePath);
     $knownLanguages = JLanguage::_parseLanguageFiles($dir);
     return $knownLanguages;
 }