From: Matthias Braun Date: Tue, 23 Nov 2004 15:34:45 +0000 (+0000) Subject: we only want localisation for mesages (otherwise parsing of floats in german expectes... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a5862668b88a59063765ed7717a850dc7a531f0e;p=supertux.git we only want localisation for mesages (otherwise parsing of floats in german expectes , instead of . for example) SVN-Revision: 2150 --- diff --git a/data/levels/test/forest1-grumbel.stl b/data/levels/test/forest1-grumbel.stl index c739fcd63..b8d4e2def 100644 --- a/data/levels/test/forest1-grumbel.stl +++ b/data/levels/test/forest1-grumbel.stl @@ -13,7 +13,7 @@ (background (image "forest1.jpg") (speed 0.5)) (background (image "leaves.png") - (speed 0.8) + (speed 1.2) (layer 400)) (tilemap diff --git a/src/supertux.cpp b/src/supertux.cpp index 088222ff2..6470a4210 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "utils/exceptions.h" #include "defines.h" @@ -48,7 +49,11 @@ int main(int argc, char * argv[]) 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");