Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv24520/src/gui

Modified Files:
        wxMApp.cpp 
Log Message:
avoid using GetLanguageInfo() for now

Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.246
retrieving revision 1.247
diff -b -u -2 -r1.246 -r1.247
--- wxMApp.cpp  7 Sep 2002 22:49:32 -0000       1.246
+++ wxMApp.cpp  7 Sep 2002 23:16:24 -0000       1.247
@@ -759,7 +759,4 @@
       wxLogNull noLog;
 
-      wxString nameShort,
-               nameLong;
-
       if ( locale.empty() )
       {
@@ -793,19 +790,14 @@
 
             default:
-               const wxLanguageInfo *info = wxLocale::GetLanguageInfo(lang);
-               nameLong = info->Description;
-               nameShort = info->CanonicalName;
+               m_Locale = new wxLocale(lang);
          }
       }
       else // we have locale
       {
-         nameLong =
-         nameShort = locale;
+         m_Locale = new wxLocale(locale, locale);
       }
 
-      if ( !nameShort.empty() )
+      if ( m_Locale )
       {
-         m_Locale = new wxLocale(nameShort, nameLong);
-
          if ( !m_Locale->IsOk() )
          {



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to