- Added translation mechanism, and basic french translation as an example
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-16 15:23:26 +00:00
parent 94bebd795c
commit f94df3862b
23 changed files with 242 additions and 60 deletions

View File

@@ -0,0 +1,23 @@
#ifndef _TRANSLATE_H_
#define _TRANSLATE_H_
#include <string>
#include <map>
using namespace std;
class Translator{
protected:
static Translator * mInstance;
public:
map<string,string> values;
string translate(string toTranslate);
Translator();
int Add(string from, string to);
static Translator * GetInstance();
static void EndInstance();
};
string _(string toTranslate);
#endif