Connect signal for language change in PreferencesPanel

This commit is contained in:
2012-02-11 12:48:19 +01:00
parent 1675b9abee
commit b533ac0578
4 changed files with 12 additions and 6 deletions

View File

@@ -128,6 +128,8 @@ bool wxUI::SetLanguage(QString language)
// res = false;
// }
_language = language;
months[0] = _("january");
months[1] = _("february");
months[2] = _("march");
@@ -203,6 +205,8 @@ void wxUI::LoadUser()
if (user->_preferences["language"].size())
SetLanguage(user->GetLanguage());
else
SetLanguage(SupportedLanguages::languages[0].name);
LoadPanels();