7#ifndef MYGUI_LANGUAGE_MANAGER_H_
8#define MYGUI_LANGUAGE_MANAGER_H_
31 void setCurrentLanguage(
const std::string& _name);
33 const std::string& getCurrentLanguage()
const;
51 bool loadUserTags(
const std::string& _file);
70 bool loadLanguage(
const std::string& _file,
bool _user =
false);
71 void _loadLanguage(
IDataStream* _stream,
bool _user);
72 void _loadLanguageXML(
IDataStream* _stream,
bool _user);
74 UString replaceTagsPass(
const UString& _line,
bool& _replaceResult);
77 typedef std::map<UString, UString> MapLanguageString;
79 MapLanguageString mMapLanguage;
80 MapLanguageString mUserMapLanguage;
82 std::string mCurrentLanguageName;
84 typedef std::map<std::string, VectorString> MapListString;
85 MapListString mMapFile;
88 std::string mXmlLanguageTagName;
#define MYGUI_SINGLETON_DECLARATION(ClassName)
delegates::CDelegate2< const UString &, UString & > eventRequestTag
delegates::CMultiDelegate1< const std::string & > eventChangeLanguage
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
std::vector< std::string > VectorString