| 192 | * In AtlasUI, you should prefer the wxWidgets API and construct strings like this (see the [http://wiki.wxwidgets.org/Converting_everything_to_and_from_wxString wxWiki] for more examples): |
| 193 | {{{ |
| 194 | #!cpp |
| 195 | wxString str = _T("SomeUnicodeSTRING"); // Don't use wxT() directly because it breaks OS X build |
| 196 | wxString translatedStr = _("A string that may be translated"); // Translated string for UI purposes |
| 197 | |
| 198 | // Sometimes you have to pass messages to the engine and need C++ strings: |
| 199 | std::string cppStr = str.c_str(); |
| 200 | std::wstring cppWStr = str.wc_str(); // Don't use c_str() because it breaks OS X build |
| 201 | }}} |