JFactory/getLanguage
From Joomla! Documentation
< API16:JFactory
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Get a language object
<! removed transcluded page call, red link never existed >
Syntax[edit]
static getLanguage()
Returns[edit]
object
Defined in[edit]
libraries/joomla/factory.php
Importing[edit]
jimport( 'joomla.factory' );
Source Body[edit]
public static function getLanguage()
{
if (!is_object(JFactory::$language))
{
//get the debug configuration setting
$conf = &JFactory::getConfig();
$debug = $conf->getValue('config.debug_lang');
JFactory::$language = JFactory::_createLanguage();
JFactory::$language->setDebug($debug);
}
return JFactory::$language;
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]