UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_language.h File Reference
This graph shows which files directly or indirectly include this file:

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.
void CL_LanguageInit (void)
 Fills the options language menu node with the parsed language mappings.
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.
void CL_ParseMessageIDs (void)
const char * CL_Translate (const char *t)

Function Documentation

◆ CL_LanguageInit()

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, fs_i18ndir, MAX_VAR, Q_strncpyz(), Q_strvalid, s_language, and Sys_GetLocale().

Referenced by CL_InitAfter().

◆ CL_LanguageInitMenu()

◆ CL_LanguageShutdown()

void CL_LanguageShutdown ( void )

Definition at line 341 of file cl_language.cpp.

References cl_msgidPool, languageCount, languageList, Mem_DeletePool, msgIDHash, msgIDText, numMsgIDs, and OBJZERO.

Referenced by CL_Shutdown().

◆ CL_LanguageTryToSet()

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, languageList, language_t::localeID, language_t::localeMapping, localeMapping_t::localeMapping, language_t::next, localeMapping_t::next, Q_streq, s_language, and Sys_SetLocale().

Referenced by CL_LanguageInitMenu(), and CL_SlowFrame().

◆ CL_ParseLanguages()

◆ CL_ParseMessageIDs()

◆ CL_Translate()