MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Enumerations | Functions

The language code specifies the content language. More...

Enumerations

enum  LanguageCode {
  LANGCODE_unknown = 0xFF, LANGCODE_aa = 0, LANGCODE_ab, LANGCODE_af,
  LANGCODE_am, LANGCODE_ar, LANGCODE_as, LANGCODE_ay,
  LANGCODE_az, LANGCODE_ba, LANGCODE_be, LANGCODE_bg,
  LANGCODE_bh, LANGCODE_bi, LANGCODE_bn, LANGCODE_bo,
  LANGCODE_br, LANGCODE_ca, LANGCODE_co, LANGCODE_cs,
  LANGCODE_cy, LANGCODE_da, LANGCODE_de, LANGCODE_dv,
  LANGCODE_dz, LANGCODE_el, LANGCODE_en, LANGCODE_eo,
  LANGCODE_es, LANGCODE_et, LANGCODE_eu, LANGCODE_fa,
  LANGCODE_fi, LANGCODE_fj, LANGCODE_fo, LANGCODE_fr,
  LANGCODE_fy, LANGCODE_ga, LANGCODE_gd, LANGCODE_gl,
  LANGCODE_gn, LANGCODE_gu, LANGCODE_ha, LANGCODE_hi,
  LANGCODE_he, LANGCODE_hr, LANGCODE_hu, LANGCODE_hy,
  LANGCODE_ia, LANGCODE_id, LANGCODE_ie, LANGCODE_ik,
  LANGCODE_in, LANGCODE_is, LANGCODE_it, LANGCODE_iu,
  LANGCODE_iw, LANGCODE_ja, LANGCODE_ji, LANGCODE_jw,
  LANGCODE_ka, LANGCODE_kk, LANGCODE_kl, LANGCODE_km,
  LANGCODE_kn, LANGCODE_ko, LANGCODE_ks, LANGCODE_ku,
  LANGCODE_ky, LANGCODE_la, LANGCODE_ln, LANGCODE_lo,
  LANGCODE_lt, LANGCODE_lv, LANGCODE_mg, LANGCODE_mi,
  LANGCODE_mk, LANGCODE_ml, LANGCODE_mn, LANGCODE_mo,
  LANGCODE_mr, LANGCODE_ms, LANGCODE_mt, LANGCODE_my,
  LANGCODE_na, LANGCODE_ne, LANGCODE_nl, LANGCODE_no,
  LANGCODE_oc, LANGCODE_om, LANGCODE_or, LANGCODE_pa,
  LANGCODE_pl, LANGCODE_ps, LANGCODE_pt, LANGCODE_qu,
  LANGCODE_rm, LANGCODE_rn, LANGCODE_ro, LANGCODE_ru,
  LANGCODE_rw, LANGCODE_sa, LANGCODE_sd, LANGCODE_sg,
  LANGCODE_sh, LANGCODE_si, LANGCODE_sk, LANGCODE_sl,
  LANGCODE_sm, LANGCODE_sn, LANGCODE_so, LANGCODE_sq,
  LANGCODE_sr, LANGCODE_ss, LANGCODE_st, LANGCODE_su,
  LANGCODE_sv, LANGCODE_sw, LANGCODE_ta, LANGCODE_te,
  LANGCODE_tg, LANGCODE_th, LANGCODE_ti, LANGCODE_tk,
  LANGCODE_tl, LANGCODE_tn, LANGCODE_to, LANGCODE_tr,
  LANGCODE_ts, LANGCODE_tt, LANGCODE_tw, LANGCODE_ug,
  LANGCODE_uk, LANGCODE_ur, LANGCODE_uz, LANGCODE_vi,
  LANGCODE_vo, LANGCODE_wo, LANGCODE_xh, LANGCODE_yi,
  LANGCODE_yo, LANGCODE_za, LANGCODE_zh, LANGCODE_zu
}
 

Functions

MG_EXPORT LanguageCode GUIAPI LanguageCodeFromISO639s1 (Uint16 iso639_1)
 Get MiniGUI language code from an encoded ISO639-1 language code. More...
 
static LanguageCode GUIAPI LanguageCodeFromISO639s1Code (const char *iso639_1)
 Get MiniGUI language code from an ISO639-1 language code string. More...
 
const MG_EXPORT char *GUIAPI LanguageCodeToISO639s1 (LanguageCode lc)
 
MG_EXPORT LanguageCode GUIAPI GetSampleLanguageForScript (ScriptType st)
 
const MG_EXPORT ScriptType *GUIAPI GetScriptsForLang (const char *lang_name, LanguageCode *lang_code, int *nr_scripts)
 
MG_EXPORT ScriptType GUIAPI NormalizeScriptType (LanguageCode cl, ScriptType ws)
 

Detailed Description

The language code specifies the content language.

Enumeration Type Documentation

◆ LanguageCode

The language code.

Enumerator
LANGCODE_unknown 

Unknown language code

LANGCODE_aa 

Language code for Afar

LANGCODE_ab 

Language code for Abkhazian

LANGCODE_af 

Language code for Afrikaans

LANGCODE_am 

Language code for Amharic

LANGCODE_ar 

Language code for Arabic

LANGCODE_as 

Language code for Assamese

LANGCODE_ay 

Language code for Aymara

LANGCODE_az 

Language code for Azerbaijani

LANGCODE_ba 

Language code for Bashkir

LANGCODE_be 

Language code for Byelorussian

LANGCODE_bg 

Language code for Bulgarian

LANGCODE_bh 

Language code for Bihari

LANGCODE_bi 

Language code for Bislama

LANGCODE_bn 

Language code for Bengali

LANGCODE_bo 

Language code for Tibetan

LANGCODE_br 

Language code for Breton

LANGCODE_ca 

Language code for Catalan

LANGCODE_co 

Language code for Corsican

LANGCODE_cs 

Language code for Czech

LANGCODE_cy 

Language code for Welch

LANGCODE_da 

Language code for Danish

LANGCODE_de 

Language code for German

LANGCODE_dv 

Language code for Divehi

LANGCODE_dz 

Language code for Bhutani

LANGCODE_el 

Language code for Greek

LANGCODE_en 

Language code for English

LANGCODE_eo 

Language code for Esperanto

LANGCODE_es 

Language code for Spanish

LANGCODE_et 

Language code for Estonian

LANGCODE_eu 

Language code for Basque

LANGCODE_fa 

Language code for Persian

LANGCODE_fi 

Language code for Finnish

LANGCODE_fj 

Language code for Fiji

LANGCODE_fo 

Language code for Faeroese

LANGCODE_fr 

Language code for French

LANGCODE_fy 

Language code for Frisian

LANGCODE_ga 

Language code for Irish

LANGCODE_gd 

Language code for Scots Gaelic

LANGCODE_gl 

Language code for Galician

LANGCODE_gn 

Language code for Guarani

LANGCODE_gu 

Language code for Gujarati

LANGCODE_ha 

Language code for Hausa

LANGCODE_hi 

Language code for Hindi

LANGCODE_he 

Language code for Hebrew

LANGCODE_hr 

Language code for Croatian

LANGCODE_hu 

Language code for Hungarian

LANGCODE_hy 

Language code for Armenian

LANGCODE_ia 

Language code for Interlingua

LANGCODE_id 

Language code for Indonesian

LANGCODE_ie 

Language code for Interlingue

LANGCODE_ik 

Language code for Inupiak

LANGCODE_in 

Language code for former Indonesian

LANGCODE_is 

Language code for Icelandic

LANGCODE_it 

Language code for Italian

LANGCODE_iu 

Language code for Inuktitut (Eskimo)

LANGCODE_iw 

Language code for former Hebrew

LANGCODE_ja 

Language code for Japanese

LANGCODE_ji 

Language code for former Yiddish

LANGCODE_jw 

Language code for Javanese

LANGCODE_ka 

Language code for Georgian

LANGCODE_kk 

Language code for Kazakh

LANGCODE_kl 

Language code for Greenlandic

LANGCODE_km 

Language code for Cambodian

LANGCODE_kn 

Language code for Kannada

LANGCODE_ko 

Language code for Korean

LANGCODE_ks 

Language code for Kashmiri

LANGCODE_ku 

Language code for Kurdish

LANGCODE_ky 

Language code for Kirghiz

LANGCODE_la 

Language code for Latin

LANGCODE_ln 

Language code for Lingala

LANGCODE_lo 

Language code for Laothian

LANGCODE_lt 

Language code for Lithuanian

LANGCODE_lv 

Language code for Latvian, Lettish

LANGCODE_mg 

Language code for Malagasy

LANGCODE_mi 

Language code for Maori

LANGCODE_mk 

Language code for Macedonian

LANGCODE_ml 

Language code for Malayalam

LANGCODE_mn 

Language code for Mongolian

LANGCODE_mo 

Language code for Moldavian

LANGCODE_mr 

Language code for Marathi

LANGCODE_ms 

Language code for Malay

LANGCODE_mt 

Language code for Maltese

LANGCODE_my 

Language code for Burmese

LANGCODE_na 

Language code for Nauru

LANGCODE_ne 

Language code for Nepali

LANGCODE_nl 

Language code for Dutch

LANGCODE_no 

Language code for Norwegian

LANGCODE_oc 

Language code for Occitan

LANGCODE_om 

Language code for (Afan) Oromo

LANGCODE_or 

Language code for Oriya

LANGCODE_pa 

Language code for Punjabi

LANGCODE_pl 

Language code for Polish

LANGCODE_ps 

Language code for Pashto, Pushto

LANGCODE_pt 

Language code for Portuguese

LANGCODE_qu 

Language code for Quechua

LANGCODE_rm 

Language code for Rhaeto-Romance

LANGCODE_rn 

Language code for Kirundi

LANGCODE_ro 

Language code for Romanian

LANGCODE_ru 

Language code for Russian

LANGCODE_rw 

Language code for Kinyarwanda

LANGCODE_sa 

Language code for Sanskrit

LANGCODE_sd 

Language code for Sindhi

LANGCODE_sg 

Language code for Sangro

LANGCODE_sh 

Language code for Serbo-Croatian

LANGCODE_si 

Language code for Singhalese

LANGCODE_sk 

Language code for Slovak

LANGCODE_sl 

Language code for Slovenian

LANGCODE_sm 

Language code for Samoan

LANGCODE_sn 

Language code for Shona

LANGCODE_so 

Language code for Somali

LANGCODE_sq 

Language code for Albanian

LANGCODE_sr 

Language code for Serbian

LANGCODE_ss 

Language code for Siswati

LANGCODE_st 

Language code for Sesotho

LANGCODE_su 

Language code for Sudanese

LANGCODE_sv 

Language code for Swedish

LANGCODE_sw 

Language code for Swahili

LANGCODE_ta 

Language code for Tamil

LANGCODE_te 

Language code for Tegulu

LANGCODE_tg 

Language code for Tajik

LANGCODE_th 

Language code for Thai

LANGCODE_ti 

Language code for Tigrinya

LANGCODE_tk 

Language code for Turkmen

LANGCODE_tl 

Language code for Tagalog

LANGCODE_tn 

Language code for Setswana

LANGCODE_to 

Language code for Tonga

LANGCODE_tr 

Language code for Turkish

LANGCODE_ts 

Language code for Tsonga

LANGCODE_tt 

Language code for Tatar

LANGCODE_tw 

Language code for Twi

LANGCODE_ug 

Language code for Uigur

LANGCODE_uk 

Language code for Ukrainian

LANGCODE_ur 

Language code for Urdu

LANGCODE_uz 

Language code for Uzbek

LANGCODE_vi 

Language code for Vietnamese

LANGCODE_vo 

Language code for Volapuk

LANGCODE_wo 

Language code for Wolof

LANGCODE_xh 

Language code for Xhosa

LANGCODE_yi 

Language code for Yiddish

LANGCODE_yo 

Language code for Yoruba

LANGCODE_za 

Language code for Zhuang

LANGCODE_zh 

Language code for Chinese

LANGCODE_zu 

Language code for Zulu

Definition at line 7209 of file gdi.h.

Function Documentation

◆ GetSampleLanguageForScript()

MG_EXPORT LanguageCode GUIAPI GetSampleLanguageForScript ( ScriptType  st)

Get the sample language code (ISO639-1) from the specific script type

◆ GetScriptsForLang()

const MG_EXPORT ScriptType* GUIAPI GetScriptsForLang ( const char *  lang_name,
LanguageCode lang_code,
int *  nr_scripts 
)

Get language code and scripts for ISO639 language name.

◆ LanguageCodeFromISO639s1()

LanguageCode GUIAPI LanguageCodeFromISO639s1 ( Uint16  iso639_1)

Get MiniGUI language code from an encoded ISO639-1 language code.

Looks up the language code for ISO639-1. ISO639-1 assigns two-letter codes to languages. For example, the code for Arabic is 'ar'. This function accepts two letter codes encoded as a Uint16 in a big-endian fashion. That is, the code expected for Arabic is 0x6172 (0x61 is ASCII code for 'a', 0x72 is ASCII code for 'r', etc).

Parameters
iso639_1An encoded language code in ISO639-1.
Returns
The language code for iso639_1, or LANGCODE_unknown if iso639_1 is invalid.

Since: 4.0.0

◆ LanguageCodeFromISO639s1Code()

LanguageCode GUIAPI LanguageCodeFromISO639s1Code ( const char *  iso639_1)
inlinestatic

Get MiniGUI language code from an ISO639-1 language code string.

Looks up the language code for ISO639-1. ISO639-1 assigns two-letter codes to languages. For example, the code for Arabic is 'ar'.

Parameters
iso639_1A language code in ISO639-1.
Returns
The language code for iso639_1, or LANGCODE_unknown if iso639_1 is invalid.

Since: 4.0.0

Definition at line 7531 of file gdi.h.

◆ LanguageCodeToISO639s1()

const MG_EXPORT char* GUIAPI LanguageCodeToISO639s1 ( LanguageCode  lc)

Get ISO639-1 language code from the native language code.

◆ NormalizeScriptType()

MG_EXPORT ScriptType GUIAPI NormalizeScriptType ( LanguageCode  cl,
ScriptType  ws 
)

Normalize script type according to language code