Made wx.Locale() make an unitialized locale while still allowing
wx.Locale(language) to still work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -308,8 +308,15 @@ class wxLocale
|
|||||||
public:
|
public:
|
||||||
// ctor & dtor
|
// ctor & dtor
|
||||||
// -----------
|
// -----------
|
||||||
wxLocale(int language = wxLANGUAGE_DEFAULT,
|
%extend {
|
||||||
int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
|
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
|
// restores old locale
|
||||||
~wxLocale();
|
~wxLocale();
|
||||||
|
Reference in New Issue
Block a user