X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46dc76ba3573649a9ed7c7aff6dc677f533eee11..26ac5fadeaa4081fb0e19909d6152f75c64090bb:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index 3bbdd43355..1c33a3ab4e 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -28,8 +28,8 @@ // ---------------------------------------------------------------------------- // # adjust if necessary -typedef unsigned char uint8; -typedef unsigned long uint32; +typedef unsigned char size_t8; +typedef unsigned long size_t32; // ---------------------------------------------------------------------------- // macros @@ -57,11 +57,19 @@ class WXDLLEXPORT wxLocale { public: // ctor & dtor + // call Init() if you use this ctor + wxLocale(); // the ctor has a side effect of changing current locale wxLocale(const char *szName, // name (for messages) const char *szShort = NULL, // dir prefix (for msg files) const char *szLocale = NULL, // locale (for setlocale) - bool bLoadDefault = TRUE); // preload wxstd.mo? + bool bLoadDefault = TRUE) // preload wxstd.mo? + { Init(szName, szShort, szLocale, bLoadDefault); } + // the same as a function (returns TRUE on success) + bool Init(const char *szName, + const char *szShort = NULL, + const char *szLocale = NULL, + bool bLoadDefault = TRUE); // restores old locale ~wxLocale(); @@ -107,7 +115,6 @@ private: // ---------------------------------------------------------------------------- // global functions // ---------------------------------------------------------------------------- - WXDLLEXPORT wxLocale* wxGetLocale(); // get the translation of the string in the current locale @@ -118,4 +125,4 @@ inline WXDLLEXPORT const char *wxGetTranslation(const char *sz) } #endif - // __INTLH__ + // _WX_INTLH__