Back to Language class

Method parse

protected array
parse
(mixed $fileName)
Parses a language file.
Parameters
  • string $fileName The name of the file.
Returns
  • array The array of parsed strings.
Since
  • 1.7.0
Class: Language
Project: Joomla

Method parse - Source code

/**
 * Parses a language file.
 *
 * @param   string  $fileName  The name of the file.
 *
 * @return  array  The array of parsed strings.
 *
 * @since   1.7.0
 */
protected function parse($fileName)
{
    $strings = LanguageHelper::parseIniFile($fileName, $this->debug);
    // Debug the ini file if needed.
    if ($this->debug === true && is_file($fileName)) {
        $this->debugFile($fileName);
    }
    return $strings;
}