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. | |
qboolean | CL_LanguageTryToSet (const char *localeID) |
Cycle through all parsed locale mappings and try to set one after another. |
Definition in file cl_language.h.
void CL_LanguageInit | ( | void | ) |
Fills the options language menu node with the parsed language mappings.
Definition at line 219 of file cl_language.c.
References CL_GetLocaleID(), CL_LanguageTest(), CL_LanguageTryToSet(), Com_DPrintf(), Com_Printf(), DEBUG_CLIENT, i, languageCount, language_s::localeID, language_s::localeString, MAX_VAR, language_s::next, OPTION_LANGUAGES, Q_strncpyz(), s_language, cvar_s::string, Sys_GetLocale(), UI_AddOption(), UI_RegisterOption(), and UI_SortOptions().
Referenced by CL_InitAfter().
qboolean CL_LanguageTryToSet | ( | const char * | localeID | ) |
Cycle through all parsed locale mappings and try to set one after another.
[in] | localeID | the locale id parsed from scriptfiles (e.g. en or de [the short id]) |
Definition at line 281 of file cl_language.c.
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, qfalse, qtrue, s_language, and Sys_SetLocale().
Referenced by CL_LanguageInit(), and CL_SlowFrame().
void CL_ParseLanguages | ( | const char * | name, | |
const char ** | text | |||
) |
Parse all language definitions from the script files.
Definition at line 83 of file cl_language.c.
References cl_genericPool, Com_EParse(), Com_Printf(), languageCount, language_s::localeID, language_s::localeMapping, localeMapping_s::localeMapping, language_s::localeString, Mem_PoolAlloc, Mem_PoolStrDup, language_s::next, and localeMapping_s::next.
Referenced by CL_ParseClientData().