Back to FileAdapter class

Method loadLanguage

public void
loadLanguage
(mixed $path)
Custom loadLanguage method
Parameters
  • string $path The path on which to find language files.
Returns
  • void
Since
  • 3.1
Class: FileAdapter
Project: Joomla

Method loadLanguage - Source code

/**
 * Custom loadLanguage method
 *
 * @param   string  $path  The path on which to find language files.
 *
 * @return  void
 *
 * @since   3.1
 */
public function loadLanguage($path)
{
    $extension = 'files_' . strtolower(str_replace('files_', '', $this->getElement()));
    $this->doLoadLanguage($extension, $path, JPATH_SITE);
}