public:
// ctor & dtor
// -----------
- wxLocale(int language = wxLANGUAGE_DEFAULT,
- int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
+ %extend {
+ wxLocale(int language = -1,
+ int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING) {
+ if (language == -1)
+ return new wxLocale();
+ else
+ return new wxLocale(language, flags);
+ }
+ }
// restores old locale
~wxLocale();
// get the translation of the string in the current locale
%nokwargs wxGetTranslation;
-wxString wxGetTranslation(const wxString& sz);
-wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n);
+wxString wxGetTranslation(const wxString& str);
+wxString wxGetTranslation(const wxString& str, const wxString& strPlural, size_t n);
//---------------------------------------------------------------------------
%newgroup