跳转至

localization


localization_get_system_language

int native.localization.localization_get_system_language()

Same return values as GET_CURRENT_LANGUAGE

get_current_language

int native.localization.get_current_language()

0 = american (en-US)
1 = french (fr-FR)
2 = german (de-DE)
3 = italian (it-IT)
4 = spanish (es-ES)
5 = brazilian (pt-BR)
6 = polish (pl-PL)
7 = russian (ru-RU)
8 = korean (ko-KR)
9 = chinesetrad (zh-TW)
10 = japanese (ja-JP)
11 = mexican (es-MX)
12 = chinesesimp (zh-CN)

_does_current_language_support_condensed_style

bool native.localization._does_current_language_support_condensed_style()

Returns true if the current language is american, french, german, italian, spanish, brazilian or mexican.
_DOES_*

localization_get_system_date_type

int native.localization.localization_get_system_date_type()

0 = DATE_FORMAT_DMY
1 = DATE_FORMAT_MDY
2 = DATE_FORMAT_YMD

Old name: _LOCALIZATION_GET_SYSTEM_DATE_FORMAT