english/libraries/joomla/language/language.php
/**
	 * Searches for language directories within a certain base dir.
	 *
	 * @param   string  $dir  directory of files.
	 *
	 * @return  array  Array holding the found languages as filename => real name pairs.
	 *
	 * @since   11.1
	 */
Searches for language directories within a certain base dir.
@param   string  $dir  directory of files.

@return  array  Array holding the found languages as filename => real name pairs.


Searches for language directories within a certain base dir . @param string $dir directory of files . @return array Array holding the found languages as filename = > real name pairs .
public static function parseLanguageFiles($dir = null)
	{
		jimport('joomla.filesystem.folder');
		$languages = array ();
		$subdirs = JFolder::folders($dir);
		foreach ($subdirs as $path)
		{
			$langs = self::parseXMLLanguageFiles("$dir/$path");
			$languages = array_merge($languages, $langs);
		}
		return $languages;
	}
public static function parseLanguageFiles ( $ dir = null ) { jimport ( 'joomla.filesystem.folder' ) ; $ languages = array ( ) ; $ subdirs = JFolder :: folders ( $ dir ) ; foreach ( $ subdirs as $ path ) { $ langs = self :: parseXMLLanguageFiles ( " $ dir / $ path " ) ; $ languages = array_merge ( $ languages , $ langs ) ; } return $ languages ; }
Searches for language directories within a certain base dir.
Searches for language directories within a certain base dir .