]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxLanguageInfo::GetLocaleName() instead of Desscription which can't be passed...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 Feb 2008 00:06:52 +0000 (00:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 Feb 2008 00:06:52 +0000 (00:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/xlocale.cpp

index 24d1a3f443e61ca9752c667b9083e82872dbacf6..6adb86b8d996cb5a4baf1e5bbd8c451c81d3cf51 100644 (file)
@@ -88,14 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
     }
     else
     {
-        wxString loc;
-#ifdef __WXMSW__
-        loc = info->Description;
-#else
-        loc = info->CanonicalName;
-#endif
-
-        Init(loc.c_str());
+        Init(info->GetLocaleName().c_str());
     }
 }