]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct misleading error message in locale mismatch assert.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 May 2013 00:07:05 +0000 (00:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 May 2013 00:07:05 +0000 (00:07 +0000)
Don't advise people to use non-existent (or at least not publicly accessible)
wxSetLocale(), they should just create wxLocale objects instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 5d7cb3e38d388e9d88ca33fac88237edd1999694..ee790a5c07989cff76e7ac0a9d0e1c3b4830a544 100644 (file)
@@ -1444,10 +1444,10 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
         // this were not the case.
         wxASSERT_MSG( strcmp(setlocale(LC_ALL, NULL), "C") == 0,
                       wxS("You probably called setlocale() directly instead ")
-                      wxS("of calling wxSetLocale() and now there is a ")
+                      wxS("of using wxLocale and now there is a ")
                       wxS("mismatch between C/C++ and Windows locale.\n")
-                      wxS("Things are going to break, use wxSetLocale() to ")
-                      wxS("avoid this!") );
+                      wxS("Things are going to break, please only change ")
+                      wxS("locale by creating wxLocale objects to avoid this!") );
 
 
         // Return the hard coded values for C locale. This is really the right