X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/src/_intl.i diff --git a/wxPython/src/_intl.i b/wxPython/src/_intl.i index e1b7b7444e..22f868cf08 100644 --- a/wxPython/src/_intl.i +++ b/wxPython/src/_intl.i @@ -308,8 +308,15 @@ class wxLocale 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(); @@ -433,8 +440,8 @@ wxLocale* wxGetLocale(); // 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