Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Translation Namespace Reference

Translation related stuff. More...


Functions

void init_translation ()
 Loats talk.scp and parsers it.

char * translate (char *str)
 Translates a sz string into another sz string if avaiable in talk.scp.


Variables

std::map< std::string, std::string > s_mapTranslation
char s_szTBuffer [512+10][2048]
int s_nTBPtr = 0


Detailed Description

Translation related stuff.

Author:
Xanathar
We use a circular buffer of 512 strings. This should avoid *all* reentrancy probs unless we do a printf with 512 s in it!


Function Documentation

void Translation::init_translation  
 

Loats talk.scp and parsers it.

Author:
Elcabesa, Xanathar

char * Translation::translate char *    str
 

Translates a sz string into another sz string if avaiable in talk.scp.

Parameters:
str  the untranslated string
Returns:
the translated string
Author:
Elcabesa, Xanathar


Variable Documentation

std::map<std::string, std::string> Translation::s_mapTranslation [static]
 

int Translation::s_nTBPtr = 0 [static]
 

char Translation::s_szTBuffer[ 512 +10][2048] [static]
 

SourceForge.net Logo