original_string: public function getLangForNumberText($langCode = null) {
  		$cachePath = 'lang_code_number_name_' . md5(serialize(func_get_args()));
  		$cached = Cache::read($cachePath, CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE);
  		if (!empty($cached)) {
  			return $cached;
  		}
  
  		if (!empty($langCode)) {
  			$langUI = $this->convertLangCode($langCode, 'iso639-1');
  		} else {
  			$langUI = $this->getCurrentUiLang(true);
  		}
  
  		$result = 'en_US';
  		$locales = [
  			'af' => 'af_ZA',
  			'ca' => 'ca_ES',
  			'cs' => 'cs_CZ',
  			'da' => 'da_DK',
  			'de' => 'de_DE',
  			'el' => 'el_EL',
  			'en' => 'en_US',
  			'es' => 'es_ES',
  			'fi' => 'fi_FI',
  			'fr' => 'fr_FR',
  			'he' => 'he_IL',
  			'hu' => 'hu_HU',
  			'id' => 'id_ID',
  			'it' => 'it_IT',
  			'ja' => 'ja_JP',
  			'ko' => 'ko_KR',
  			'lb' => 'lb_LU',
  			'lt' => 'lt_LT',
  			'lv' => 'lv_LV',
  			'nl' => 'nl_NL',
  			'pl' => 'pl_PL',
  			'pt' => 'pt_PT',
  			'ro' => 'ro_RO',
  			'ru' => 'ru_RU',
  			'sh' => 'sh_RS',
  			'sl' => 'sl_SI',
  			'sr' => 'sr_RS',
  			'sv' => 'sv_SE',
  			'th' => 'th_TH',
  			'tr' => 'tr_TR',
  			'vi' => 'vi_VN',
  			'zh' => 'zh_ZH',
  		];
  		if (isset($locales[$langUI])) {
  			$result = $locales[$langUI];
  		}
  
  		Cache::write($cachePath, $result, CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE);
  
  		return $result;
  	}
code: public function getLangForNumberText($langCode = null) {
  		$cachePath = 'lang_code_number_name_' . md5(serialize(func_get_args()));
  		$cached = Cache::read($cachePath, CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE);
  		if (!empty($cached)) {
  			return $cached;
  		}
  
  		if (!empty($langCode)) {
  			$langUI = $this->convertLangCode($langCode, 'iso639-1');
  		} else {
  			$langUI = $this->getCurrentUiLang(true);
  		}
  
  		$result = 'en_US';
  		$locales = [
  			'af' => 'af_ZA',
  			'ca' => 'ca_ES',
  			'cs' => 'cs_CZ',
  			'da' => 'da_DK',
  			'de' => 'de_DE',
  			'el' => 'el_EL',
  			'en' => 'en_US',
  			'es' => 'es_ES',
  			'fi' => 'fi_FI',
  			'fr' => 'fr_FR',
  			'he' => 'he_IL',
  			'hu' => 'hu_HU',
  			'id' => 'id_ID',
  			'it' => 'it_IT',
  			'ja' => 'ja_JP',
  			'ko' => 'ko_KR',
  			'lb' => 'lb_LU',
  			'lt' => 'lt_LT',
  			'lv' => 'lv_LV',
  			'nl' => 'nl_NL',
  			'pl' => 'pl_PL',
  			'pt' => 'pt_PT',
  			'ro' => 'ro_RO',
  			'ru' => 'ru_RU',
  			'sh' => 'sh_RS',
  			'sl' => 'sl_SI',
  			'sr' => 'sr_RS',
  			'sv' => 'sv_SE',
  			'th' => 'th_TH',
  			'tr' => 'tr_TR',
  			'vi' => 'vi_VN',
  			'zh' => 'zh_ZH',
  		];
  		if (isset($locales[$langUI])) {
  			$result = $locales[$langUI];
  		}
  
  		Cache::write($cachePath, $result, CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE);
  
  		return $result;
  	}
code_tokens: public function getLangForNumberText ( $ langCode = null ) { $ cachePath = 'lang_code_number_name_' . md5 ( serialize ( func_get_args ( ) ) ) ; $ cached = Cache :: read ( $ cachePath , CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE ) ; if ( ! empty ( $ cached ) ) { return $ cached ; } if ( ! empty ( $ langCode ) ) { $ langUI = $ this -> convertLangCode ( $ langCode , 'iso639-1' ) ; } else { $ langUI = $ this -> getCurrentUiLang ( true ) ; } $ result = 'en_US' ; $ locales = [ 'af' => 'af_ZA' , 'ca' => 'ca_ES' , 'cs' => 'cs_CZ' , 'da' => 'da_DK' , 'de' => 'de_DE' , 'el' => 'el_EL' , 'en' => 'en_US' , 'es' => 'es_ES' , 'fi' => 'fi_FI' , 'fr' => 'fr_FR' , 'he' => 'he_IL' , 'hu' => 'hu_HU' , 'id' => 'id_ID' , 'it' => 'it_IT' , 'ja' => 'ja_JP' , 'ko' => 'ko_KR' , 'lb' => 'lb_LU' , 'lt' => 'lt_LT' , 'lv' => 'lv_LV' , 'nl' => 'nl_NL' , 'pl' => 'pl_PL' , 'pt' => 'pt_PT' , 'ro' => 'ro_RO' , 'ru' => 'ru_RU' , 'sh' => 'sh_RS' , 'sl' => 'sl_SI' , 'sr' => 'sr_RS' , 'sv' => 'sv_SE' , 'th' => 'th_TH' , 'tr' => 'tr_TR' , 'vi' => 'vi_VN' , 'zh' => 'zh_ZH' , ] ; if ( isset ( $ locales [ $ langUI ] ) ) { $ result = $ locales [ $ langUI ] ; } Cache :: write ( $ cachePath , $ result , CAKE_BASIC_FUNC_CACHE_KEY_LANG_CODE ) ; return $ result ; }
docstring: Return current UI language name for library Tools.NumberTextLib in format RFC5646.
  
  @param string $langCode Languge code in format `ISO 639-1` or `ISO 639-2`
  @return string Return language name in format RFC5646.
  @link http://numbertext.org/ Universal number to text conversion languag
docstring_tokens: Return current UI language name for library Tools . NumberTextLib in format RFC5646 .