forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
31
src/locale/I18n.h
Executable file
31
src/locale/I18n.h
Executable file
@@ -0,0 +1,31 @@
|
||||
#ifndef NET_MINECRAFT_LOCALE__I18n_H__
|
||||
#define NET_MINECRAFT_LOCALE__I18n_H__
|
||||
|
||||
//package net.minecraft.locale;
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class AppPlatform;
|
||||
class ItemInstance;
|
||||
|
||||
class I18n
|
||||
{
|
||||
typedef std::map<std::string, std::string> Map;
|
||||
public:
|
||||
static void loadLanguage(AppPlatform* platform, const std::string& languageCode);
|
||||
|
||||
static bool get(const std::string& id, std::string& out);
|
||||
static std::string get(const std::string& id);
|
||||
|
||||
//static std::string get(const std::string& id, Object... args) {
|
||||
// return lang.getElement(id, args);
|
||||
//}
|
||||
static std::string getDescriptionString( const ItemInstance& item );
|
||||
|
||||
private:
|
||||
static void fillTranslations(AppPlatform* platform, const std::string& filename, bool overwrite);
|
||||
static Map _strings;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_LOCALE__I18n_H__*/
|
||||
Reference in New Issue
Block a user