fteqw/engine/common/translate.h
Spoike 87564c9d79 stripped out my ancient form of in-engine translation. Implemented gettext style translation instead. Automatically determine language from environment settings.
try to imitate cyrillic chars if the charset doesn't support them using koi8 mappings, so russian-speaking users don't get so easily pissed about not knowing how to select a font that actually contains chars for their language.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4544 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-11-29 14:36:47 +00:00

19 lines
338 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;
} languages[MAX_LANGUAGES];
#define langtext(t,l) PO_GetText(languages[l].po, t)
int TL_FindLanguage(const char *lang);
#endif