Returns current models' language. If null, will return app's configured language.
@return string
542133
public function getLanguage()
    {
        if ($this->_language === null) {
            $this->_language = strtolower(Yii::$app->language);
        }
        return $this->_language;
    }
271831
private function getLang()
    {
        $path = $this->_config->get('langpath')
        .$this->_config->get('lang');

        if (file_exists($path.'/validation.php')) {
            $this->_lang = require_once $path.'/validation.php';
        } else {
            $this->_lang = require_once $this->_config->get('langpath').'/en_US/validation.php';
        }

        // Handle any custom language validation values
        // by parser
        $this->_parser = new ValidationParser($this->_lang, $this->_config->get('validation'));
    }
439218
public function getSiteDefaultLanguage()
    {
        if (is_null($this->currentLanguage)) {
            $this->currentLanguage = $this->getSite()['defaultLanguage'];
        }

        return $this->currentLanguage;
    }
252254
public function getLanguage() {
		if ($this->languageDetection === null) {
			$this->languageDetection = new BrowserLanguageDetection();
		}
		$language = $this->languageDetection->getLanguage();
		if (file_exists(ROOT_PATH.$this->i18nMessagePath.'message_'.$language.'.php')) {
			return $language;
		} else {
			return "default";
		}
	}
526229
public function getLanguage($languageCode = null): ?string
    {
        $languageCode = $languageCode ? mb_strtoupper($languageCode) : null;

        return $this->get("languages.{$languageCode}") ?: (current($this->get('languages', [])) ?: null);
    }
1032602
public function getLang()
    {
        if (is_null($this->lang)) {
            $this->lang = $this->getPayPalConfig()->getLang();
        }

        return $this->lang;
    }
855229
public function currentLocale()
    {
        $langCode = $this->translator()->getLocale();
        $locales  = $this->translator()->locales();
        if (isset($locales[$langCode])) {
            $locale = $locales[$langCode];
            if (isset($locale['locale'])) {
                return $locale['locale'];
            } else {
                return $langCode;
            }
        }

        return null;
    }
1012227
public function getLanguage()
    {
        if ($this->_language === null) {
            if ($this->defaultLanguageAttribute) {
                $this->_language = $this->owner->{$this->defaultLanguageAttribute};
            }
            //Try find best language from available
            $availableLanguages = $this->getAvailableLanguages();
            if ($availableLanguages) {
                if (in_array(Yii::$app->language, $availableLanguages)) {
                    $this->_language = Yii::$app->language;
                } elseif (Yii::$app->has('request')) {
                    $this->_language = Yii::$app->request->getPreferredLanguage($availableLanguages);
                }
            }
            //Use application language, because we don`t have any translation yet
            if (!$this->_language) {
                $this->_language = Yii::$app->language;
            }
        }
        return $this->_language;
    }
905189
public function getLanguage()
    {
        if ($this->_iLanguage === null) {
            $this->_iLanguage = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        }

        return $this->_iLanguage;
    }
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();
    }
756325
function getLanguage() {
        $lang = strtolower($this->manager->getLanguage());
        
        switch($lang) {
            case 'russian':
                return 'ru_RU';
            case 'english':
                return 'en_EN';
            case 'german':
                return 'de_DE';
            default:
                return $this->manager->getLanguage();
        }
    }
205020
public function get_user_language()
    {
        if (is_object($this->user)) {
            return $this->user->language;
        }
        else if (isset($_SESSION['language'])) {
            return $_SESSION['language'];
        }
    }
1040489
private function lang()
    {
        $lang = Yii::$app->language;
        if (Yii::$app->id === 'app-backend') {
            $lang = Yii::$app->wavecms->editedLanguage;
        }

        return $lang;
    }
790056
public function getLanguage() {
        if (!isset($this->respondentLanguage)) {
            $this->respondentLanguage = $this->_gemsData['grs_iso_lang'];
        }
        return $this->respondentLanguage;
    }
91610
public function getRespondentLanguage()
    {
        if (! isset($this->_respTrackData['grs_iso_lang'])) {
            $this->_ensureRespondentData();

            if (! isset($this->_respTrackData['grs_iso_lang'])) {
                // Still not set in a project? The it is single language
                $this->_respTrackData['grs_iso_lang'] = $this->locale->getLanguage();
            }
        }

        return $this->_respTrackData['grs_iso_lang'];
    }
534920
public function getLanguage()
    {
        if ($this->sessionManager) {
            $this->sessionManager->start();
        }
        if (!isset($_SESSION['_fine_I18n_language'])){
            return null;
        }
        return $_SESSION['_fine_I18n_language'];
    }
1272480
protected function getLanguages()
    {
        // Check if we have the data in the cache.
        if (null !== $this->languageCache) {
            return $this->languageCache;
        }

        $loadedLanguage = $this->getMetaModel()->getActiveLanguage();
        $languageValues = $this->getLanguageNames($loadedLanguage);
        $languages      = $this->getRealLanguages();
        $keys           = \array_keys($languages);
        $aux            = [];
        $real           = [];

        // Fetch real language values.
        foreach ($keys as $key) {
            if (isset($languageValues[$key])) {
                $aux[$key]  = \utf8_romanize($languageValues[$key]);
                $real[$key] = $languageValues[$key];
            }
        }

        // Add needed fallback values.
        $keys = \array_diff($keys, \array_keys($aux));
        if ($keys) {
            $this->addNeededFallbackLanguages($keys, $aux, $real);
        }

        $keys = \array_diff($keys, \array_keys($aux));
        if ($keys) {
            foreach ($keys as $key) {
                $aux[$key]  = \utf8_romanize($languages[$key]);
                $real[$key] = $languages[$key];
            }
        }

        \asort($aux);
        $return = [];
        foreach (\array_keys($aux) as $key) {
            $return[$key] = $real[$key];
        }

        // Switch back to the original FE language to not disturb the frontend.
        if ($loadedLanguage != $GLOBALS['TL_LANGUAGE']) {
            $event = new LoadLanguageFileEvent('languages', null, true);
            $this->eventDispatcher->dispatch(ContaoEvents::SYSTEM_LOAD_LANGUAGE_FILE, $event);
        }

        return $this->languageCache = $return;
    }