fixed stupid bug in LCID->locale string translation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-01-13 12:56:30 +00:00
parent 4a377e1375
commit 88961c3eca

View File

@ -678,8 +678,8 @@ bool wxLocale::Init(int language, int flags)
buffer[0] = wxT('\0');
GetLocaleInfo(lcid, LOCALE_SENGLANGUAGE, buffer, 256);
locale << buffer;
buffer[0] = wxT('\0');
GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256);
if (GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256) > 0)
locale << wxT("_") << buffer;
}
if (locale.IsEmpty())
{