From 2f4d8129aa4ed94c478bba3c9429abe5473180aa Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Sun, 29 Jan 2012 20:59:25 +0000 Subject: [PATCH] -reverted language detection for gametdb from r42 --- source/menu/menu_main.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index 314c2c93..b67d9c54 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -175,29 +175,7 @@ int CMenu::main(void) SetupInput(); MusicPlayer::Instance()->Play(); - const char* lang; - switch (CONF_GetLanguage()) - { - case CONF_LANG_GERMAN: - lang="DE"; - break; - case CONF_LANG_FRENCH: - lang="FR"; - break; - case CONF_LANG_SPANISH: - lang="ES"; - break; - case CONF_LANG_ITALIAN: - lang="IT"; - break; - case CONF_LANG_DUTCH: - lang="NL"; - break; - default: - lang="EN"; - break; - } - m_gameList.SetLanguage(lang); + m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str()); if (m_cfg.getBool("GENERAL", "update_cache", false)) UpdateCache(); _loadList();