UFO: Alien Invasion
|
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) |
Fills the options language menu node with the parsed language mappings.
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().
Definition at line 352 of file cl_language.cpp.
References CL_LanguageTest(), CL_LanguageTryToSet(), uiNode_t::disabled, languageList, language_s::localeID, language_s::nativeString, language_s::next, OPTION_LANGUAGES, Q_streq, s_language, cvar_s::string, UI_AddOption(), UI_RegisterOption(), and UI_SortOptions().
Referenced by CLMN_Init().
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.
[in] | localeID | the locale id parsed from scriptfiles (e.g. en or de [the short id]) |
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().
void CL_ParseLanguages | ( | const char * | name, |
const char ** | text | ||
) |
Parse all language definitions from the script files.
Definition at line 211 of file cl_language.cpp.
References cl_genericPool, Com_EParse(), Com_Error(), Com_ParseList(), Com_Printf(), ERR_DROP, ERR_FATAL, languageCount, languageList, LIST_Delete(), language_s::localeID, localeMapping_s::localeMapping, language_s::localeMapping, language_s::localeString, Mem_PoolAllocType, Mem_PoolStrDup, language_s::nativeString, linkedList_t::next, localeMapping_s::next, language_s::next, and Q_streq.
Referenced by CL_ParseClientData().
Definition at line 137 of file cl_language.cpp.
References CL_ParseMessageID(), Com_Printf(), FS_BuildFileList(), FS_NextScriptHeader(), Mem_CreatePool, Mem_FreePool, Mem_PoolAllocTypeN, MSGIDSIZE, msgIDText, name, numMsgIDs, OBJZERO, Q_streq, msgid_s::text, and type.
Referenced by CL_NewLanguage().
const char* CL_Translate | ( | const char * | t | ) |
Definition at line 123 of file cl_language.cpp.
References _, CL_GetMessageID(), and Q_strstart().
Referenced by uiOptionTreeNode::draw(), uiSelectBoxNode::draw(), uiOptionListNode::draw(), uiTabNode::draw(), uiTextNode::draw(), uiSelectBoxNode::drawOverWindow(), uiTextNode::drawText(), uiTabNode::drawTooltip(), GAME_GetImportData(), Irc_Proto_ProcessServerMsg(), SEQ_Render2D(), UI_ExecuteSetAction(), UI_GetReferenceString(), UI_GetText(), UI_OptionNodeRemoveHigherOption(), UI_TabNodeTabAtPosition(), UI_TextNodeGenerateLineSplit(), and uiTextNode::updateCache().