Upped tinygettext to r177
authorIngo Ruhnke <grumbel@gmx.de>
Wed, 18 Nov 2009 21:31:44 +0000 (21:31 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Wed, 18 Nov 2009 21:31:44 +0000 (21:31 +0000)
Disabled info level messages from tinygettext

SVN-Revision: 6035

src/supertux/language_menu.cpp
src/supertux/main.cpp

index ed13ada..57f2709 100644 (file)
@@ -52,15 +52,15 @@ LanguageMenu::menu_action(MenuItem* item)
 {
   if (item->id == MNID_LANGUAGE_AUTO_DETECT) // auto detect
   {
-      FL_Locale *locale;
-      FL_FindLocale(&locale, FL_MESSAGES);
-      tinygettext::Language language = tinygettext::Language::from_spec(locale->lang, locale->country, locale->variant);
-      FL_FreeLocale(&locale);
+    FL_Locale *locale;
+    FL_FindLocale(&locale, FL_MESSAGES);
+    tinygettext::Language language = tinygettext::Language::from_spec(locale->lang, locale->country, locale->variant);
+    FL_FreeLocale(&locale);
 
-      dictionary_manager.set_language(language);
-      g_config->locale = language.str();
-      g_config->save();
-      Menu::pop_current();
+    dictionary_manager.set_language(language);
+    g_config->locale = language.str();
+    g_config->save();
+    Menu::pop_current();
   }
   else if (item->id == MNID_LANGUAGE_ENGLISH) // english
   {
index 6bab732..4979871 100644 (file)
@@ -27,6 +27,8 @@ namespace supertux_apple {
 } // namespace supertux_apple
 #endif
 
+#include "tinygettext/log.hpp"
+
 #include "addon/addon_manager.hpp"
 #include "audio/sound_manager.hpp"
 #include "binreloc/binreloc.h"
@@ -60,6 +62,9 @@ static void init_config()
 
 static void init_tinygettext()
 {
+  tinygettext::Log::set_log_info_callback(0);
+  dictionary_manager.set_filesystem(std::auto_ptr<tinygettext::FileSystem>(new PhysFSFileSystem));
+
   dictionary_manager.add_directory("locale");
   dictionary_manager.set_charset("UTF-8");
 
@@ -537,7 +542,6 @@ int supertux_main(int argc, char** argv)
 
     Console::instance = new Console();
     init_physfs(argv[0]);
-    dictionary_manager.set_filesystem(std::auto_ptr<tinygettext::FileSystem>(new PhysFSFileSystem));
     init_sdl();
 
     timelog("controller");