]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_intl.i
the #ifdef around BROWSEINFO.lpszTitle assignment is bogus; should be c_str() everywhere
[wxWidgets.git] / wxPython / src / _intl.i
index 0bdca6fa44d1af6214a7f17c669e6ebda1aba84c..9f8f54fe62b0947f5d2748164e96cb9bd8b54673 100644 (file)
@@ -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();
@@ -317,8 +324,8 @@ public:
     %name(Init1)bool Init(const wxString& szName,
                           const wxString& szShort = wxPyEmptyString,
                           const wxString& szLocale = wxPyEmptyString,
-                          bool bLoadDefault = True,
-                          bool bConvertEncoding = False);
+                          bool bLoadDefault = true,
+                          bool bConvertEncoding = false);
 
     %name(Init2) bool Init(int language = wxLANGUAGE_DEFAULT,
                            int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);