ScummVM API documentation
Language

Description

API for managing game language.

Classes

struct  Common::LanguageDescription
 

Enumerations

enum  Common::Language : int8 {
  AR_ARB, BG_BUL, CA_ESP, CS_CZE,
  DA_DNK, DE_DEU, EL_GRC, EN_ANY,
  EN_GRB, EN_USA, ES_ESP, EU_ESP,
  ET_EST, FA_IRN, FI_FIN, FR_FRA,
  HE_ISR, HR_HRV, HU_HUN, IT_ITA,
  JA_JPN, KO_KOR, LT_LTU, LV_LVA,
  NL_BEL, NL_NLD, NB_NOR, PL_POL,
  PT_BRA, PT_PRT, RU_RUS, SE_SWE,
  SK_SVK, SR_SRB, TR_TUR, UA_UKR,
  ZH_ANY, ZH_CHN, ZH_TWN, UNK_LANG = -1
}
 

Functions

Language Common::parseLanguage (const String &str)
 
Language Common::parseLanguageFromLocale (const char *locale)
 
const char * Common::getLanguageCode (Language id)
 
const char * Common::getLanguageLocale (Language id)
 
const char * Common::getLanguageDescription (Language id)
 
const String Common::getGameGUIOptionsDescriptionLanguage (Common::Language lang)
 
bool Common::checkGameGUIOptionLanguage (Common::Language lang, const String &str)
 
List< StringCommon::getLanguageList ()
 

Variables

const LanguageDescription Common::g_languages []
 
const LanguageDescription Common::g_obsoleteLanguages []
 

Enumeration Type Documentation

◆ Language

enum Common::Language : int8

List of game language.

Function Documentation

◆ parseLanguage()

Language Common::parseLanguage ( const String str)

Convert a string containing a language name into a Language enum value.