Erwan
- Fixed a few tranlsation issues in the code - Updated French translation
This commit is contained in:
@@ -39,6 +39,7 @@ class SimpleMenu:public JGuiController{
|
||||
void drawVertPole(int x, int y, int height);
|
||||
|
||||
public:
|
||||
bool autoTranslate;
|
||||
SimpleMenu(int id, JGuiListener* listener, JLBFont* font, int x, int y, const char * _title = "", int _maxItems = 7);
|
||||
void Render();
|
||||
void Update(float dt);
|
||||
|
||||
@@ -25,7 +25,7 @@ class SimpleMenuItem: public JGuiObject
|
||||
|
||||
public:
|
||||
string desc;
|
||||
SimpleMenuItem(SimpleMenu* _parent, int id, JLBFont *font, string text, int x, int y, bool hasFocus = false);
|
||||
SimpleMenuItem(SimpleMenu* _parent, int id, JLBFont *font, string text, int x, int y, bool hasFocus = false, bool autoTranslate = false);
|
||||
|
||||
int mX;
|
||||
int mY;
|
||||
|
||||
@@ -1,23 +1,34 @@
|
||||
#ifndef _TRANSLATE_H_
|
||||
#define _TRANSLATE_H_
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Translator{
|
||||
#ifndef _TRANSLATE_H_
|
||||
#define _TRANSLATE_H_
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
|
||||
#if defined WIN32
|
||||
#define DEBUG_TRANSLATE
|
||||
#endif
|
||||
|
||||
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 * mInstance;
|
||||
public:
|
||||
map<string,string> values;
|
||||
#if defined DEBUG_TRANSLATE
|
||||
map<string,int> missingValues;
|
||||
map<string,int> dontCareValues;
|
||||
int checkMisses;
|
||||
#endif
|
||||
string translate(string toTranslate);
|
||||
Translator();
|
||||
~Translator();
|
||||
int Add(string from, string to);
|
||||
static Translator * GetInstance();
|
||||
static void EndInstance();
|
||||
};
|
||||
|
||||
string _(string toTranslate);
|
||||
|
||||
static void EndInstance();
|
||||
};
|
||||
|
||||
string _(string toTranslate);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user