{
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
{
} // namespace supertux_apple
#endif
+#include "tinygettext/log.hpp"
+
#include "addon/addon_manager.hpp"
#include "audio/sound_manager.hpp"
#include "binreloc/binreloc.h"
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");
Console::instance = new Console();
init_physfs(argv[0]);
- dictionary_manager.set_filesystem(std::auto_ptr<tinygettext::FileSystem>(new PhysFSFileSystem));
init_sdl();
timelog("controller");