]> git.saurik.com Git - wxWidgets.git/commitdiff
set m_language even when wxstd.mo wasn't loaded
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 26 Nov 2003 20:03:17 +0000 (20:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 26 Nov 2003 20:03:17 +0000 (20:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 753dfcb11e65743e4a08bf07963dc5abe8fd8781..fb90e08538e949bec4e3b35bc5e9e88ada40e149 100644 (file)
@@ -1659,7 +1659,7 @@ bool wxLocale::Init(int language, int flags)
                     (flags & wxLOCALE_CONV_ENCODING) != 0);
     free(szLocale);
 
-    if ( ret )
+    if (IsOk()) // setlocale() succeeded
         m_language = lang;
 
     return ret;