Author: silene
Date: Mon Apr 13 18:06:09 2009
New Revision: 34876

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34876&view=rev
Log:
Fixed localization on MacOSX. It seems like Apple is now using the LANG 
variable, as most other systems do.

Modified:
    trunk/src/language.cpp

Modified: trunk/src/language.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/language.cpp?rev=34876&r1=34875&r2=34876&view=diff
==============================================================================
--- trunk/src/language.cpp (original)
+++ trunk/src/language.cpp Mon Apr 13 18:06:09 2009
@@ -196,13 +196,9 @@
 #endif
 #endif
 
-#ifdef __BEOS__
-       if (category == LC_MESSAGES && setenv ("LANG", locale, 1) == -1)
+#if defined(__BEOS__) || defined(__APPLE__)
+       if (category == LC_MESSAGES && setenv("LANG", locale, 1) == -1)
                std::cerr << "setenv LANG failed: " << strerror(errno);
-#endif
-#ifdef __APPLE__
-       if (category == LC_MESSAGES && setenv ("LANGUAGE", locale, 1) == -1)
-               std::cerr << "setenv LANGUAGE failed: " << strerror(errno);
 #endif
 
 #ifdef _WIN32


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to