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