- Language is now an option at startup
- "text" line translation for cards made easier, check Res/lang/xx_cards.txt
- TODO: test on PSP/Linux, performance issues ? Allow possibility to change language in options menu
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-13 16:10:06 +00:00
parent 3b49f65958
commit 8390a94440
15 changed files with 13549 additions and 10923 deletions

View File

@@ -14,8 +14,12 @@ using namespace std;
class Translator{
protected:
static Translator * mInstance;
bool initDone;
void load(string filename, map<string,string> * dictionary);
public:
map<string,string> values;
map<string,string> tempValues;
#if defined DEBUG_TRANSLATE
map<string,int> missingValues;
map<string,int> dontCareValues;
@@ -25,6 +29,8 @@ public:
Translator();
~Translator();
int Add(string from, string to);
void initCards();
void init();
static Translator * GetInstance();
static void EndInstance();
};