summaryrefslogtreecommitdiff
path: root/x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp
blob: f8e465e4cbc3b82b28a96fb731ff001320f0187e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/common/intl.cpp.orig	Sat Oct  4 23:10:24 2003
+++ src/common/intl.cpp	Sun Oct  5 21:35:30 2003
@@ -743,8 +742,18 @@
     }
     if ( !retloc )
     {
+        wxString langFull;
+        if (wxGetEnv(wxT("LC_ALL"), &langFull)|| 
+            wxGetEnv(wxT("LC_MESSAGES"), &langFull) ||
+            wxGetEnv(wxT("LANG"), &langFull))
+	{
+	    retloc = wxSetlocale(LC_ALL, langFull);
+	}
+    }
+    if ( !retloc )
+    {
         wxLogError(wxT("Cannot set locale to '%s'."), locale.c_str());
-        return FALSE;
+        //return FALSE;
     }
 #elif defined(__WIN32__)