]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed stupid bug in LCID->locale string translation
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 13 Jan 2001 12:56:30 +0000 (12:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 13 Jan 2001 12:56:30 +0000 (12:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 7b9eb1135c2f799018221a4e553436f98312a7af..cba698cb80c678f2eed2ff7cef4a2ce7d673e278 100644 (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())
             {