Returns the language object.

@return oxLang
439245
public function getLanguage()
    {
        if ($this->_oLanguageObject === null) {
            $this->_oLanguageObject = oxRegistry::getLang();
        }

        return $this->_oLanguageObject;
    }
1325951
static public function getInstance()
	{
		if (!self::$instance)
		{
			self::$instance = new I18n(Eresus_Kernel::app()->getFsRoot() . '/lang');
		}

		return self::$instance;
	}
1082035
public function getLanguage() {
		if($this->language)
			return $this->language;
			
		// getting http instruction if not provided
		$str=(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])?$_SERVER['HTTP_ACCEPT_LANGUAGE']:"");
		// exploding accepted languages
		$langs=explode(',',$str);
		// creating output list
		$accepted=array();
		foreach ($langs as $lang) {
			// parsing language preference instructions
			// 2_digit_code[-longer_code][;q=coefficient]
			preg_match('/([a-z]{1,2})(-([a-z0-9]+))?(;q=([0-9\.]+))?/',$lang,$found);
			//ereg('([a-z]{1,2})(-([a-z0-9]+))?(;q=([0-9\.]+))?',$lang,$found);
			// 2 digit lang code
			$code=isset($found[1])?$found[1]:null;
			// lang code complement
			$morecode=isset($found[3])?$found[3]:null;
			// full lang code
			$fullcode=$morecode?$code.'-'.$morecode:$code;
			// coefficient
			$coef=sprintf('%3.1f',isset($found[5])?$found[5]:'1');
			// for sorting by coefficient
			// adding
			$accepted[]=array('code'=>$code,'coef'=>$coef,'morecode'=>$morecode,'fullcode'=>$fullcode);
		}
		// sorting the list by coefficient desc
		krsort($accepted);
		if (isset($accepted[0])) {
			$this->language = $accepted[0]['code'];
		}
		
		return $this->language;
	}
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();
        }
    }
1228785
public static function getLanguage()
    {
        if (! self::$language) {
            self::$language = Language::findByCode(App::getLocale());
        }

        if (! self::$language) {
            abort(404, 'Language could not be found');
        }

        return self::$language;
    }
193008
function languages()
    {
        $defaults = array('en');
        $langs = array();

        // get aspell dictionaries
        exec('aspell dump dicts', $dicts);
        if (!empty($dicts)) {
            $seen = array();
            foreach ($dicts as $lang) {
                $lang = preg_replace('/-.*$/', '', $lang);
                $langc = strlen($lang) == 2 ? $lang.'_'.strtoupper($lang) : $lang;
                if (!$seen[$langc]++)
                    $langs[] = $lang;
            }
            $langs = array_unique($langs);
        }
        else {
            $langs = $defaults;
        }

        return $langs;
    }
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";
		}
	}
151908
public function getLanguageManager()
    {
        if ($this->languageManager != null) {
            return $this->languageManager;
        }

        $this->languageManager = new LanguageManager($this->getLanguageService());

        if ($this->logger) {
            $this->languageManager->setLogger($this->logger);
        }

        return $this->languageManager;
    }
28061
public function getOrderLanguage()
    {
        if ($this->_iOrderLang === null) {
            if (isset($this->oxorder__oxlang->value)) {
                $this->_iOrderLang = \OxidEsales\Eshop\Core\Registry::getLang()->validateLanguage($this->oxorder__oxlang->value);
            } else {
                $this->_iOrderLang = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
            }
        }

        return $this->_iOrderLang;
    }
1185649
public function getSelectedLanguage()
    {
        if (!class_exists(Locale::class) || !$this->hasMethod('Locales')) {
            return '';
        }

        /** @var ArrayData $information */
        $information = $this->LocaleInformation(FluentState::singleton()->getLocale());

        return $information->LanguageNative;
    }
585376
public function getLangClient() {
        if (!array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER) || !$_SERVER['HTTP_ACCEPT_LANGUAGE']) {
            return Config::config()['user']['output']['lang'];
        }
        else {
            $langcode = (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
            $langcode = (!empty($langcode)) ? explode(";", $langcode) : $langcode;
            $langcode = (!empty($langcode['0'])) ? explode(",", $langcode['0']) : $langcode;
            $langcode = (!empty($langcode['0'])) ? explode("-", $langcode['0']) : $langcode;

            return $langcode['0'];
        }
    }
323693
public function getActiveLangAbbr()
    {
        if (!isset($this->_sActiveLangAbbr)) {
            $languageService = \OxidEsales\Eshop\Core\Registry::getLang();
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('bl_perfLoadLanguages')) {
                $languages = $languageService->getLanguageArray();
                foreach ($languages as $language) {
                    if ($language->selected) {
                        $this->_sActiveLangAbbr = $language->abbr;
                        break;
                    }
                }
            } else {
                // Performance
                // use oxid shop internal languageAbbr, this might be correct in the most cases but not guaranteed to be that
                // configured in the admin backend for that language
                $this->_sActiveLangAbbr = $languageService->getLanguageAbbr();
            }
        }

        return $this->_sActiveLangAbbr;
    }
660730
public function getOxMessage()
    {
        $translatedMessage = \OxidEsales\Eshop\Core\Registry::getLang()->translateString($this->_sMessage);
        if (!empty($this->_aFormatParameters)) {
            $translatedMessage = vsprintf($translatedMessage, $this->_aFormatParameters);
        }

        return $translatedMessage;
    }
215025
public function getLanguage()
    {
        if (!$this->language) {
            $langs = $this->getBrowserLanguage();
            // creating output list
            $accepted = array();
            foreach ($langs as $lang) {
                $accepted[] = $this->extractDataOfLanguage($lang);
            }
            // sorting the list by coefficient desc
            krsort($accepted);
            if (isset($accepted[0])) {
                $this->language = $accepted[0]['code'];
            }
        }

        return $this->language;
    }
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);}
1252538
public function getTranslator()
    {
        if (!$this->_translator instanceof ComActivitiesActivityTranslatorInterface)
        {
            $translator = $this->getObject('translator');

            if (!$translator instanceof ComActivitiesActivityTranslatorInterface) {
                $translator = $translator->decorate($this->_translator);
                $this->getObject('manager')->setObject('translator', $translator);
            }

            $this->setTranslator($translator);
        }

        return $this->_translator;
    }
896772
public function getLanguage()
    {
        foreach ($this->languageDetectionServices as $languageDetectionService) {
            /* @var languageDetectionService LanguageDetectionInterface */
            $language = $languageDetectionService->getLanguage();
            if ($language === null || empty($language)) {
                continue;
            } else {
                return $language;
            }
        }

        return;
    }