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:
@@ -678,8 +678,8 @@ bool wxLocale::Init(int language, int flags)
|
|||||||
buffer[0] = wxT('\0');
|
buffer[0] = wxT('\0');
|
||||||
GetLocaleInfo(lcid, LOCALE_SENGLANGUAGE, buffer, 256);
|
GetLocaleInfo(lcid, LOCALE_SENGLANGUAGE, buffer, 256);
|
||||||
locale << buffer;
|
locale << buffer;
|
||||||
buffer[0] = wxT('\0');
|
if (GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256) > 0)
|
||||||
GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256);
|
locale << wxT("_") << buffer;
|
||||||
}
|
}
|
||||||
if (locale.IsEmpty())
|
if (locale.IsEmpty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user