Author: silene
Date: Mon Apr 13 18:07:37 2009
New Revision: 34877
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34877&view=rev
Log:
Fixed localization on MacOSX. It seems like Apple is now using the LANG
variable, as most other systems do.
Modified:
branches/1.6/src/language.cpp
Modified: branches/1.6/src/language.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/language.cpp?rev=34877&r1=34876&r2=34877&view=diff
==============================================================================
--- branches/1.6/src/language.cpp (original)
+++ branches/1.6/src/language.cpp Mon Apr 13 18:07:37 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