Back to SiteApplication class

Method loadLibraryLanguage

protected void
loadLibraryLanguage
()
Load the library language files for the application
Returns
  • void
Since
  • 3.6.3

Method loadLibraryLanguage - Source code

/**
 * Load the library language files for the application
 *
 * @return  void
 *
 * @since   3.6.3
 */
protected function loadLibraryLanguage()
{
    /*
     * Try the lib_joomla file in the current language (without allowing the loading of the file in the default language)
     * Fallback to the default language if necessary
     */
    $this->getLanguage()->load('lib_joomla', JPATH_SITE) || $this->getLanguage()->load('lib_joomla', JPATH_ADMINISTRATOR);
}