Method returns language for Amazon GUI elements

@return string
763034
public function getAmazonLanguage()
    {
        //Get all languages from module settings
        $aLanguages = $this->getConfig()->getConfigParam('aAmazonLanguages');
        $sLanguageAbbr = $this->getLanguage()->getLanguageAbbr();

        //Return Amazon Lang string if it exists in array else return null
        return isset($aLanguages[$sLanguageAbbr]) ? $aLanguages[$sLanguageAbbr] : $sLanguageAbbr;
    }
246449
private function getI18nStats()
	{
		$selected_instance   = $this->filter_post->getString( 'instance' );
		$selected_raw_locale = $this->filter_post->getString( 'locale' );

		list( $file_type, $language_code, $country_code_and_extension ) = explode( '_', $selected_raw_locale );
		$this->assign( 'language', $language_code );
		$locale = $language_code . '_' . $country_code_and_extension[0] . $country_code_and_extension[1];

		$literals = $this->getLiterals( $selected_instance );
		$this->assign( 'literals', $literals );

		try
		{
			\Sifo\I18N::setDomain( $file_type, $locale, $selected_instance );
			$translations_i18 = \Sifo\I18N::$translations;

			$missing_messages  = array_diff_key( $literals, $translations_i18[$file_type . '_' . $locale] );
			$leftover_messages = array_diff_key( $translations_i18[$file_type . '_' . $locale], $literals );

			$this->assign( 'selected_instance', $selected_instance );
			$this->assign( 'missing_messages', $missing_messages );
			$this->assign( 'leftover_messages', $leftover_messages );
			$this->assign( 'selected_locale', $selected_raw_locale );
			$this->assign( 'selected_charset', $this->filter_post->getString( 'charset' ) );
		}
		catch ( \Sifo\Exception_500 $exception )
		{
			$this->assign( 'error', $exception->getMessage() );
		}
	}
1040489
private function lang()
    {
        $lang = Yii::$app->language;
        if (Yii::$app->id === 'app-backend') {
            $lang = Yii::$app->wavecms->editedLanguage;
        }

        return $lang;
    }
469913
public function htmlLang()
    {
        $request = $this->requestStack->getCurrentRequest();
        $locale = $request ? $request->getLocale() : $this->locale;

        return str_replace('_', '-', $locale);
    }
465749
public function get_primaries_langs(){
    $uid_languages =  self::get_appui_option_id('languages');
    $languages = options::get_instance()->full_tree($uid_languages);
    $primaries = array_values(array_filter($languages['items'], function($v) {
      return !empty($v['primary']);
    }));
    return $primaries;
  }
739322
public function getLanguage()
    {
        if ($this->project->getEmailMultiLanguage() && $this->language) {
            return $this->language;
        } else {
            return $this->project->getLocaleDefault();
        }
    }
1371555
public function getTplLanguage()
    {
        if ($this->_iTplLanguageId === null) {
            $iSessLang = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('tpllanguage');
            $this->_iTplLanguageId = $this->isAdmin() ? $this->setTplLanguage($iSessLang) : $this->getBaseLanguage();
        }

        return $this->_iTplLanguageId;
    }
203536
public function getAmazonChangePaymentLink()
    {
        $oClient = $this->_getContainer()->getClient();
        //Main part of the link related to selected locale in config
        $sLink = $oClient->getAmazonProperty('sAmazonPayChangeLink', true);

        //Send GetOrderReferenceDetails request to Amazon to get OrderLanguage string
        $oData = $oClient->getOrderReferenceDetails($this, array(), true);

        //If we have language string add it to link
        if (!empty($oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage)) {
            $sAmazonLanguageString = (string)$oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderLanguage;
            $sLink .= str_replace('-', '_', $sAmazonLanguageString);
        }

        return $sLink;
    }
734396
public function getBackOfficeLanguage()
    {
        $currentLanguage = $this->session->get(self::KEY_LOCALE);

        if (!$currentLanguage) {
            $currentLanguage = $this->defaultLocale;
            $token = $this->tokenStorage->getToken();
            if ($token && ($user = $token->getUser()) instanceof UserInterface) {
                if (null !== $user->getLanguage()) {
                    $currentLanguage = $user->getLanguage();
                }
                $this->setBackOfficeLanguage($currentLanguage);
            }
        }

        return $currentLanguage;

    }
534920
public function getLanguage()
    {
        if ($this->sessionManager) {
            $this->sessionManager->start();
        }
        if (!isset($_SESSION['_fine_I18n_language'])){
            return null;
        }
        return $_SESSION['_fine_I18n_language'];
    }
1138388
public function getSessionLg()
    {

        $sessionLang = \common_session_SessionManager::getSession()->getDataLanguage();
        if (empty($sessionLang)) {
            throw new Exception('the data language of the user cannot be found in session');
        }

        return (string)$sessionLang;
    }
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;
	}
648260
public function getLang()
    {
        if ($this->lang === null) {
            $this->lang = $this->getPayPalConfig()->getLang();
        }

        return $this->lang;
    }
364028
public function getLanguage()
    {
        if (!is_array($this->languages)) {
            LanguageDetector::detect($this, $this->getAcceptLanguage());
        }

        return strtolower(substr(reset($this->languages), 0, 2));
    }
589644
public function lang_menu() {
        global $CFG;

        if (empty($CFG->langmenu)) {
            return '';
        }

        if ($this->page->course != SITEID and !empty($this->page->course->lang)) {
            // do not show lang menu if language forced
            return '';
        }

        $currlang = current_language();
        $langs = get_string_manager()->get_list_of_translations();

        if (count($langs) < 2) {
            return '';
        }

        $s = new single_select($this->page->url, 'lang', $langs, $currlang, null);
        $s->label = get_accesshide(get_string('language'));
        $s->class = 'langmenu';
        return $this->render($s);
    }
791510
public function getLangRepoList()
    {
        $data = json_decode(
            $this->getRemoteContents($this->translationsInfoUrl)
        );

        $content = $data->encoding === 'base64' ? base64_decode($data->content) : [];
        return json_decode($content);
    }
1278050
public function getActLanguageId()
    {
        if (($sValue = $this->getViewConfigParam('lang')) === null) {
            $iLang = $this->getConfig()->getRequestParameter('lang');
            $sValue = ($iLang !== null) ? $iLang : \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
            $this->setViewConfigParam('lang', $sValue);
        }

        return $sValue;
    }