|
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. | |
| 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) |
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, fs_i18ndir, MAX_VAR, Q_strncpyz(), Q_strvalid, s_language, 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_t::localeID, language_t::nativeString, language_t::next, OPTION_LANGUAGES, Q_streq, s_language, UI_AddOption(), UI_RegisterOption(), and UI_SortOptions().
Referenced by CLMN_Init().
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().
| 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, 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().
| 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_t::localeID, language_t::localeMapping, localeMapping_t::localeMapping, language_t::localeString, Mem_PoolAllocType, Mem_PoolStrDup, name, language_t::nativeString, language_t::next, linkedList_t::next, localeMapping_t::next, and Q_streq.
Referenced by CL_ParseClientData().
Definition at line 137 of file cl_language.cpp.
References cl_msgidPool, CL_ParseMessageID(), Com_Printf(), FS_BuildFileList(), FS_NextScriptHeader(), Mem_CreatePool, Mem_FreePool, Mem_PoolAllocTypeN, msgIDHash, MSGIDSIZE, msgIDText, name, numMsgIDs, OBJZERO, Q_streq, 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 uiOptionListNode::draw(), uiOptionTreeNode::draw(), uiSelectBoxNode::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().