Get lang attribute value
@param string $sName
@param string $sLangCode
@return mixed|null
172665
public function getLangAttribute($sName, $sLangCode = null)
    {
        if (empty($sName)) {
            return null;
        }

        if (empty($sLangCode)) {
            $sLangCode = self::$sActiveLang;
        }

        if (empty($sLangCode)) {
            return $this->getAttribute($sName);
        }

        $sLangName = $sName.'|'.$sLangCode;
        if (!empty($this->arModelData) && isset($this->arModelData[$sLangName])) {
            return $this->arModelData[$sLangName];
        }

        return $this->getAttribute($sName);
    }
1000756
def get_abbreviation_of(self, name):
        """"""
        for language in self.user_data.languages:
            if language['language_string'] == name:
                return language['language']
        return None
39972
public static function getMonth($month, $langCode, $style = self::STYLE_LONG)
    {
        $langCode = static::checkLanguageCode($langCode);

        return self::$i18n[$langCode]['month'][$style][$month];
    }
1203453
public function getStoreIdFromLangcode($langcode = '') {
    if (empty($langcode)) {
      $langcode = $this->languageManager->getCurrentLanguage()->getId();
    }
    $mapping = $this->getStoreLanguageMapping();
    return !empty($mapping[$langcode]) ? $mapping[$langcode] : NULL;
  }
775567
function findLanguageNameFromCode( languageCode ) {
  var a = 0;
  var b = LANGUAGES.length;
  var m = b;
  var item, code, name;

  languageCode = languageCode.toLowerCase();

  while( b - a > 1 ) {
    m = Math.floor( (a + b) / 2 );
    item = LANGUAGES[m];
    code = item[0];
    name = item[1];
    if( code == languageCode ) return name;
    if( languageCode < code ) b = m;
    else a = m;
  }
  return null;
}
334252
public function getLanguageCode($lang = null)
    {
        $parts = $this->_callInternalLocale('parseLocale', null, $lang, false);
        return isset($parts['language']) ? $parts['language'] : null;
    }
1202681
public function getLanguageIdByName($sName)
    {
        return array_search($sName, \OxidEsales\Eshop\Core\Registry::getLang()->getLanguageNames());
    }
389058
public static function &GetRootCategoryList($sLanguageID = null)
    {
        if (null === $sLanguageID) {
            $sLanguageID = self::getMyLanguageService()->getActiveLanguageId();
        }
        $sRestriction = "(`shop_category`.`shop_category_id` = '0' OR `shop_category`.`shop_category_id` = '')";
        $sCategoryRestriction = TdbShopCategoryList::GetActiveCategoryQueryRestriction();
        if (!empty($sCategoryRestriction)) {
            $sRestriction = $sRestriction.' AND '.$sCategoryRestriction;
        }
        $sQuery = self::GetDefaultQuery($sLanguageID, $sRestriction);

        return TdbShopCategoryList::GetList($sQuery, $sLanguageID);
    }
327637
public function language($code, $locale = null)
    {
        $codes = explode('_', $code);

        $name = Intl::getLanguageBundle()->getLanguageName(
            $codes[0],
            $codes[1] ?? null,
            $locale ?: $this->localeDetector->getLocale()
        );

        return $name ? $this->fixCharset($name) : '';
    }
45850
public function getLanguageName(string $languageCode): string
    {
        $posixLanguageCode = $this->localeConverter->convertToPOSIX($languageCode);
        if ($posixLanguageCode === null) {
            return '';
        }

        $posixLanguageCode = mb_substr($posixLanguageCode, 0, 2);
        $languageName = Intl::getLanguageBundle()->getLanguageName($posixLanguageCode, null, $posixLanguageCode);

        return ucwords($languageName);
    }
1034719
public function getNativeOfficialName($languageCode = null): ?string
    {
        $languageCode = $languageCode ? mb_strtolower($languageCode) : null;

        return $this->get("name.native.{$languageCode}.official")
            ?: (current($this->get('name.native', []))['official'] ?: $this->get('native_official_name'));
    }
534790
public static function GetNewInstance($sData = null, $sLanguage = null)
    {
        $oInstance = parent::GetNewInstance($sData, $sLanguage);
        if (false !== $oInstance->sqlData) {
            $sClass = trim($oInstance->fieldClassname);
            if ('' !== $sClass) {
                /** @var TdbShopPaymentHandlerGroup $oNewClass */
                $oNewClass = new $sClass();
                if (null !== $sLanguage) {
                    $oNewClass->SetLanguage($sLanguage);
                }
                $oNewClass->LoadFromRow($oInstance->sqlData);
                $oInstance = $oNewClass;
            }
        }

        return $oInstance;
    }
267977
public function getLanguagesAsHash($langlist,$name = true) {
		$hash = array();
		
		foreach ($langlist as $lang) {
			$hash[$lang['code']] = ($name)?$lang['name']:$lang['origname'];
		}
		
		return $hash;
	}
60966
public function get($name, $languageCode, $default = null)
    {
        if (isset($this->data[$name]) && isset($this->data[$name][$languageCode])) {
            return $this->data[$name][$languageCode];
        }

        return $default;
    }
1211742
public static String getLanguageCode(String name) {
    if (!isI18n(name)) return null;
    return name.substring(name.indexOf('-') + 1, name.length());
  }
1266692
private function getLanguage(array $languageCodes, $mainLanguageCode, $alwaysAvailable)
    {
        $languageCodesSet = array_flip($languageCodes);

        foreach ($this->settings->prioritizedLanguages as $languageCode) {
            if (isset($languageCodesSet[$languageCode])) {
                return $languageCode;
            }
        }

        if ($this->settings->useAlwaysAvailable && $alwaysAvailable) {
            return $mainLanguageCode;
        }

        return null;
    }
1317509
protected function _getConfigLanguageValues($sLanguageParameterName, $iShopId = null)
    {
        $aConfigDecodedValues = [];
        $aConfigValues = $this->_selectLanguageParamValues($sLanguageParameterName, $iShopId);

        foreach ($aConfigValues as $sConfigValue) {
            $aConfigLanguages = unserialize($sConfigValue['oxvarvalue']);

            $aLanguages = [];
            if ($sLanguageParameterName == 'aLanguageParams') {
                $aLanguages = $this->_getLanguageIdsFromLanguageParamsArray($aConfigLanguages);
            } elseif ($sLanguageParameterName == 'aLanguages') {
                $aLanguages = $this->_getLanguageIdsFromLanguagesArray($aConfigLanguages);
            }

            $aConfigDecodedValues = array_unique(array_merge($aConfigDecodedValues, $aLanguages));
        }

        return $aConfigDecodedValues;
    }