english/libraries/joomla/language/language.php
/**
	 * Loads a language file.
	 *
	 * This method will not note the successful loading of a file - use load() instead.
	 *
	 * @param   string   $filename   The name of the file.
	 * @param   string   $extension  The name of the extension.
	 * @param   boolean  $overwrite  Not used??
	 *
	 * @return  boolean  True if new strings have been added to the language
	 *
	 * @see     JLanguage::load()
	 * @since   11.1
	 */
Loads a language file.
This method will not note the successful loading of a file - use load() instead.

@param   string   $filename   The name of the file.
@param   string   $extension  The name of the extension.

@return  boolean  True if new strings have been added to the language


Loads a language file . This method will not note the successful loading of a file - use load () instead . @param string $filename The name of the file . @param string $extension The name of the extension . @return boolean True if new strings have been added to the language
protected function loadLanguage($filename, $extension = 'unknown', $overwrite = true)
	{
		$this->counter++;
		$result	= false;
		$strings = false;
		if (file_exists($filename)) {
			$strings = $this->parse($filename);
		}
		if ($strings) {
			if (is_array($strings)) {
				$this->strings = array_merge($this->strings, $strings);
			}
			if (is_array($strings) && count($strings)) {
				$this->strings = array_merge($this->strings, $this->override);
				$result = true;
			}
		}
		if (! isset($this->paths[$extension])) {
			$this->paths[$extension] = array();
		}
		$this->paths[$extension][$filename] = $result;
		return $result;
	}
protected function loadLanguage ( $ filename , $ extension = 'unknown' , $ overwrite = true ) { $ this -> counter ++ ; $ result = false ; $ strings = false ; if ( file_exists ( $ filename ) ) { $ strings = $ this -> parse ( $ filename ) ; } if ( $ strings ) { if ( is_array ( $ strings ) ) { $ this -> strings = array_merge ( $ this -> strings , $ strings ) ; } if ( is_array ( $ strings ) && count ( $ strings ) ) { $ this -> strings = array_merge ( $ this -> strings , $ this -> override ) ; $ result = true ; } } if ( ! isset ( $ this -> paths [ $ extension ] ) ) { $ this -> paths [ $ extension ] = array ( ) ; } $ this -> paths [ $ extension ] [ $ filename ] = $ result ; return $ result ; }
Loads a language file.
Loads a language file .
// Record the result of loading the extension's file.