Actions

API16

JFactory/getLanguage

< 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

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


Advertisement