Properly init the screen on startup with the stored configuration values
[supertux.git] / src / lisp / parser.cpp
index 52e87b2..a558adc 100644 (file)
@@ -30,6 +30,8 @@
 #include "lisp.hpp"
 #include "obstack/obstackpp.hpp"
 
+#include "gameconfig.hpp"
+
 namespace lisp
 {
 
@@ -39,6 +41,7 @@ Parser::Parser(bool translate)
   if(translate) {
     dictionary_manager = new TinyGetText::DictionaryManager();
     dictionary_manager->set_charset("UTF-8");
+    if (config && (config->locale != "")) dictionary_manager->set_language(config->locale);
   }
 
   obstack_init(&obst);