english/libraries/joomla/language/language.php
/**
	 * Parse XML file for language information.
	 *
	 * @param   string  $path  Path to the XML files.
	 *
	 * @return  array  Array holding the found metadata as a key => value pair.
	 *
	 * @since   11.1
	 */
Parse XML file for language information.
@param   string  $path  Path to the XML files.

@return  array  Array holding the found metadata as a key => value pair.


Parse XML file for language information . @param string $path Path to the XML files . @return array Array holding the found metadata as a key = > value pair .
public static function parseXMLLanguageFile($path)
	{
		if (!$xml = JFactory::getXML($path)) {
			return null;
		}
		if ((string)$xml->getName() != 'metafile') {
			return null;
		}
		$metadata = array();
		foreach ($xml->metadata->children() as $child) {
			$metadata[$child->getName()] = (string) $child;
		}
		return $metadata;
	}
public static function parseXMLLanguageFile ( $ path ) { if ( ! $ xml = JFactory :: getXML ( $ path ) ) { return null ; } if ( ( string ) $ xml -> getName ( ) != 'metafile' ) { return null ; } $ metadata = array ( ) ; foreach ( $ xml -> metadata -> children ( ) as $ child ) { $ metadata [ $ child -> getName ( ) ] = ( string ) $ child ; } return $ metadata ; }
Parse XML file for language information.
Parse XML file for language information .
// Try to load the file // Check that it's a metadata file