diff --git a/wxPython/src/_intl.i b/wxPython/src/_intl.i index 0bdca6fa44..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();