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
326979
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;
	}
542133
public function getLanguage()
    {
        if ($this->_language === null) {
            $this->_language = strtolower(Yii::$app->language);
        }
        return $this->_language;
    }
984191
def language_obj
      @language_obj ||= begin
        lookup = self.language_code || self.language_str
        LanguageList::LanguageInfo.find( lookup.dup ) if lookup
      end
    end
54636
public com.google.api.ads.admanager.axis.v201811.BrowserLanguageTargeting getBrowserLanguageTargeting() {
        return browserLanguageTargeting;
    }
296795
public static function lang()
    {
        if (!\Mmi\App\FrontController::getInstance()->getRequest()->lang) {
            return new self;
        }
        return (new self)
                ->whereLang()->equals(\Mmi\App\FrontController::getInstance()->getRequest()->lang)
                ->orFieldLang()->equals(null)
                ->orderDescLang();
    }
22445
function object()
    {
        if ( $this->hasContentObject() )
        {
            return $this->ContentObject;
        }
        $contentobject_id = $this->attribute( 'contentobject_id' );
        $obj = eZContentObject::fetch( $contentobject_id );
        if ( $this->CurrentLanguage )
        {
            $obj->setCurrentLanguage( $this->CurrentLanguage );
        }
        $this->ContentObject = $obj;
        return $obj;
    }
1277738
public function getLanguage() : ?string 
    {
        if ( ! $this->hasLanguage()) {
            $this->setLanguage($this->getDefaultLanguage());
        }
        return $this->language;
    }
1048486
public function getLanguages()
    {
        if ($this->_languages === null) {
            $this->_languages = Lang::getQuery();
        }
    
        return $this->_languages;
    }
961335
def get_lang_class(lang):
    
    global LANGUAGES
    # Check if an entry point is exposed for the language code
    entry_point = get_entry_point("spacy_languages", lang)
    if entry_point is not None:
        LANGUAGES[lang] = entry_point
        return entry_point
    if lang not in LANGUAGES:
        try:
            module = importlib.import_module(".lang.%s" % lang, "spacy")
        except ImportError as err:
            raise ImportError(Errors.E048.format(lang=lang, err=err))
        LANGUAGES[lang] = getattr(module, module.__all__[0])
    return LANGUAGES[lang]
905189
public function getLanguage()
    {
        if ($this->_iLanguage === null) {
            $this->_iLanguage = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        }

        return $this->_iLanguage;
    }
739322
public function getLanguage()
    {
        if ($this->project->getEmailMultiLanguage() && $this->language) {
            return $this->language;
        } else {
            return $this->project->getLocaleDefault();
        }
    }
426966
public String getLanguage(boolean bCheckLocaleAlso)
    {
        Record recUserInfo = (Record)this.getUserInfo();
        String strLanguage = null;
        if (recUserInfo != null)
            strLanguage = ((PropertiesField)recUserInfo.getField(UserInfoModel.PROPERTIES)).getProperty(DBParams.LANGUAGE);
        if ((strLanguage == null) || (strLanguage.length() == 0))
            strLanguage = super.getLanguage(bCheckLocaleAlso);
        return strLanguage;
    }
248795
private function getLL()
    {
        if ($this->ll === null) {
            $this->ll = $GLOBALS['LANG']->includeLLFile(
                $this->getExtPath() . 'Resources/Private/Language/' . $this->langFile,
                false
            );
        }

        return $this->ll;
    }
99233
public static function getInstance($lang = null, $debug = false)
	{
		if (!isset(self::$languageFactory))
		{
			self::$languageFactory = new LanguageFactory;
		}

		return self::$languageFactory->getLanguage($lang, null, $debug);
	}
1024019
public String getLanguage() {
    if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_language == null)
      jcasType.jcas.throwFeatMissing("language", "de.julielab.jules.types.Header");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Header_Type)jcasType).casFeatCode_language);}
205020
public function get_user_language()
    {
        if (is_object($this->user)) {
            return $this->user->language;
        }
        else if (isset($_SESSION['language'])) {
            return $_SESSION['language'];
        }
    }
765895
protected function getCurrentLanguage()
    {
        $request = $this->requestStack->getCurrentRequest();

        return $this->localeConverter->convertToEz($request->get('_locale'));
    }