// ----------------------------------------------------------------------------
// # adjust if necessary
-typedef unsigned char uint8;
-typedef unsigned long uint32;
+typedef unsigned char size_t8;
+typedef unsigned long size_t32;
// ----------------------------------------------------------------------------
// macros
{
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();
// ----------------------------------------------------------------------------
// global functions
// ----------------------------------------------------------------------------
-
WXDLLEXPORT wxLocale* wxGetLocale();
// get the translation of the string in the current locale
}
#endif
- // __INTLH__
+ // _WX_INTLH__