Game Develop Core: Localization.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
Localization.h
Go to the documentation of this file.
1
5 #ifndef GDCORE_LOCALIZATION_H
6 #define GDCORE_LOCALIZATION_H
7
8 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
9 #include <wx/intl.h>
10 //Ensure the wxWidgets macro "_" returns a std::string
11 #if defined(_)
12 #undef _
13 #endif
14 #define _(s) std::string(wxGetTranslation((s)).mb_str())
15 #else
16 //Ensure the internationalization macro is still defined as code rely on it:
17 #define _(x) x
18 #endif
19
20 #endif // GDCORE_LOCALIZATION_H