Moved obstackpp.hpp to util/
[supertux.git] / src / lisp / parser.cpp
index b921003..86609a6 100644 (file)
 
 #include <sstream>
 #include <stdexcept>
+#include <tinygettext/tinygettext.hpp>
 
 #include "lisp/lisp.hpp"
 #include "lisp/parser.hpp"
-#include "obstack/obstackpp.hpp"
+#include "util/obstackpp.hpp"
 #include "physfs/ifile_stream.hpp"
 #include "physfs/ifile_streambuf.hpp"
-#include "tinygettext/tinygettext.hpp"
+#include "supertux/globals.hpp"
 
 #include "supertux/gameconfig.hpp"
 
@@ -37,10 +38,10 @@ Parser::Parser(bool translate) :
   obst()
 {
   if(translate) {
-    dictionary_manager = new TinyGetText::DictionaryManager();
+    dictionary_manager = new tinygettext::DictionaryManager();
     dictionary_manager->set_charset("UTF-8");
     if (g_config && (g_config->locale != "")) 
-      dictionary_manager->set_language(g_config->locale);
+      dictionary_manager->set_language(tinygettext::Language::from_name(g_config->locale));
   }
 
   obstack_init(&obst);