From e340b786a8830d79beac196f452f1380143e5df7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 12 Feb 2008 00:06:52 +0000 Subject: [PATCH] use wxLanguageInfo::GetLocaleName() instead of Desscription which can't be passed to _create_locale() (except that it works for a few standard languages by random coincidence) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/xlocale.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/common/xlocale.cpp b/src/common/xlocale.cpp index 24d1a3f443..6adb86b8d9 100644 --- a/src/common/xlocale.cpp +++ b/src/common/xlocale.cpp @@ -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()); } } -- 2.45.2