API16:JFactory/getLanguage
From Joomla! Documentation
Description
Get a language object
<! removed transcluded page call, red link never existed >
Syntax
static getLanguage()
Returns
object
Defined in
libraries/joomla/factory.php
Importing
jimport( 'joomla.factory' );
Source Body
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
Code Examples