UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_language.h File Reference

Go to the source code of this file.

Functions

void CL_ParseLanguages (const char *name, const char **text)
 Parse all language definitions from the script files. More...
 
void CL_LanguageInit (void)
 Fills the options language menu node with the parsed language mappings. More...
 
void CL_LanguageInitMenu (void)
 
void CL_LanguageShutdown (void)
 
bool CL_LanguageTryToSet (const char *localeID)
 Cycle through all parsed locale mappings and try to set one after another. More...
 
void CL_ParseMessageIDs (void)
 
const char * CL_Translate (const char *t)
 

Function Documentation

void CL_LanguageInit ( void  )

Fills the options language menu node with the parsed language mappings.

See also
CL_InitAfter
CL_LocaleSet

Definition at line 376 of file cl_language.cpp.

References CL_GetLocaleID(), Com_DPrintf(), Com_Printf(), Cvar_Get(), DEBUG_CLIENT, language_s::localeID, MAX_VAR, Q_strncpyz(), Q_strvalid, s_language, cvar_s::string, and Sys_GetLocale().

Referenced by CL_InitAfter().

void CL_LanguageShutdown ( void  )

Definition at line 341 of file cl_language.cpp.

References languageCount, Mem_DeletePool, msgIDText, numMsgIDs, and OBJZERO.

Referenced by CL_Shutdown().

bool CL_LanguageTryToSet ( const char *  localeID)

Cycle through all parsed locale mappings and try to set one after another.

Parameters
[in]localeIDthe locale id parsed from scriptfiles (e.g. en or de [the short id])
See also
CL_LocaleSet

Definition at line 413 of file cl_language.cpp.

References CL_NewLanguage(), Com_DPrintf(), Com_Printf(), Cvar_Set(), DEBUG_CLIENT, i, languageCount, language_s::localeID, localeMapping_s::localeMapping, language_s::localeMapping, cvar_s::modified, localeMapping_s::next, language_s::next, Q_streq, s_language, and Sys_SetLocale().

Referenced by CL_LanguageInitMenu(), and CL_SlowFrame().