mirror of https://github.com/axmolengine/axmol.git
23 lines
427 B
C
23 lines
427 B
C
|
#ifndef __TRANSLATIONHELPER_H_
|
||
|
#define __TRANSLATIONHELPER_H_
|
||
|
|
||
|
#include "FairyGUIMacros.h"
|
||
|
#include "cocos2d.h"
|
||
|
|
||
|
NS_FGUI_BEGIN
|
||
|
|
||
|
class PackageItem;
|
||
|
|
||
|
class TranslationHelper
|
||
|
{
|
||
|
public:
|
||
|
static std::unordered_map<std::string, std::unordered_map<std::string, std::string>> strings;
|
||
|
|
||
|
static void loadFromXML(const char *xmlString, size_t nBytes);
|
||
|
static void translateComponent(PackageItem* item);
|
||
|
};
|
||
|
|
||
|
NS_FGUI_END
|
||
|
|
||
|
#endif
|