mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
744b9a25db
attempt to provide some better gettext support for engine strings (especially cvar/command descriptions). still no translations available though. try to optimise hldml rendering a little. fix issue with menuqc models rendering as black when fog is active. use threads to try to reduce stalls from player-skin switches. add sys_clocktype cvar to linux builds too, with CLOCK_MONOTONIC by default. enable dtls certificate pinning log stuff. fix r_viewmodel_fov being used instead of fov cvar. fix possible segfault when egl driver fails. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5742 fc73d0e0-1445-4013-8a0c-d673dee63da5
23 lines
476 B
C
23 lines
476 B
C
#ifndef TRANSLATE_H
|
|
#define TRANSLATE_H
|
|
typedef const char* translation_t;
|
|
|
|
#define MAX_LANGUAGES 64
|
|
|
|
void TranslateInit(void);
|
|
|
|
void SV_InitLanguages(void);
|
|
|
|
struct language_s
|
|
{
|
|
char *name;
|
|
struct po_s *po;
|
|
};
|
|
extern struct language_s languages[MAX_LANGUAGES];
|
|
extern int com_language;
|
|
extern cvar_t language;
|
|
#define langtext(t,l) PO_GetText(languages[l].po, t)
|
|
#define localtext(t) PO_GetText(languages[com_language].po, t)
|
|
int TL_FindLanguage(const char *lang);
|
|
|
|
#endif
|