Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14133/src
Modified Files:
supertux.cpp
Log Message:
we only want localisation for mesages (otherwise parsing of floats in german expectes , instead of . for example)
Index: supertux.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/supertux.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- supertux.cpp 20 Nov 2004 22:14:39 -0000 1.30
+++ supertux.cpp 23 Nov 2004 15:34:45 -0000 1.31
@@ -23,6 +23,7 @@
#include <cctype>
#include <iostream>
#include <exception>
+#include <locale.h>
#include "utils/exceptions.h"
#include "defines.h"
@@ -48,7 +49,11 @@
try {
#endif
config = new MyConfig;
- setlocale(LC_ALL, "");
+
+ // we want translations only on messages
+ setlocale(LC_ALL, "C");
+ setlocale(LC_MESSAGES, "");
+
(void) bindtextdomain(PACKAGE, LOCALEDIR);
(void) textdomain(PACKAGE);
(void) bind_textdomain_codeset(PACKAGE, "ISO-8859-1");
|