set m_language even when wxstd.mo wasn't loaded

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-11-26 20:03:17 +00:00
parent 4bdce112bf
commit 549a7c375f

View 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;