|
From: Stefano A. <xa...@us...> - 2010-01-10 00:12:38
|
Module: performous
Branch: master
Commit: b347043c3cc5da2bcbfa1a1b8b2a7a082e7354e4
Author: Xaldyz <xa...@us...>
Date: Sun Jan 10 01:10:55 2010 +0100
Added language support to Visual Studio
---
game/main.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/game/main.cc b/game/main.cc
index 05b36cd..605c8f6 100644
--- a/game/main.cc
+++ b/game/main.cc
@@ -203,7 +203,11 @@ template <typename Container> void confOverride(Container const& c, std::string
int main(int argc, char** argv) {
#ifdef USE_GETTEXT
// initialize gettext
+#ifdef _MSC_VER
+ setlocale(LC_ALL, "");//only untill we don't have a better solution. This because LC_MESSAGES cause crash under Visual Studio
+#else
setlocale (LC_MESSAGES, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
bind_textdomain_codeset (PACKAGE, "UTF-8");
|