src/Factory.php
public static function getLanguage()
	{
		if (!self::$language)
		{
			$locale = Config::get()->get('language.language');
			$debug = Config::get()->get('language.debug');
			self::$language = Language::getInstance($locale, $debug);

			Text::setLanguage(self::$language);
		}
		return self::$language;
	}
public static function getLanguage()
	{
		if (!self::$language)
		{
			$locale = Config::get()->get('language.language');
			$debug = Config::get()->get('language.debug');
			self::$language = Language::getInstance($locale, $debug);

			Text::setLanguage(self::$language);
		}
		return self::$language;
	}
public static function getLanguage ( ) { if ( ! self :: $ language ) { $ locale = Config :: get ( ) -> get ( 'language.language' ) ; $ debug = Config :: get ( ) -> get ( 'language.debug' ) ; self :: $ language = Language :: getInstance ( $ locale , $ debug ) ; Text :: setLanguage ( self :: $ language ) ; } return self :: $ language ; }
Get a language object.

Returns the global {@link JLanguage} object, only creating it if it doesn't already exist.

@return  Language object

@see     Language
@since   11.1
Get a language object .