diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 8a023c0d73..ee09b48855 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -140,6 +140,7 @@ bool CBOINCGUIApp::OnInit() { m_strPasswordArg = wxEmptyString; m_iRPCPortArg = GUI_RPC_PORT; m_strBOINCArguments = wxEmptyString; + m_strISOLanguageID = wxEmptyString; m_bGUIVisible = true; m_bDebugSkins = false; m_bMultipleInstancesOK = false; @@ -277,6 +278,7 @@ bool CBOINCGUIApp::OnInit() { m_pLocale = new wxLocale(); wxASSERT(m_pLocale); + m_strISOLanguageID = m_pLocale->GetCanonicalName(); // Look for the localization files by absolute and relative locations. // preference given to the absolute location. diff --git a/clientgui/BOINCGUIApp.h b/clientgui/BOINCGUIApp.h index 411044e8cf..926f06a996 100644 --- a/clientgui/BOINCGUIApp.h +++ b/clientgui/BOINCGUIApp.h @@ -85,6 +85,7 @@ protected: wxString m_strHostNameArg; wxString m_strPasswordArg; wxString m_strBOINCArguments; + wxString m_strISOLanguageID; int m_iRPCPortArg; bool m_bBOINCMGRAutoStarted; @@ -156,6 +157,7 @@ public: wxArrayString& GetSupportedLanguages() { return m_astrLanguages; } + wxString GetISOLanguageID() { return m_strISOLanguageID; } void DisplayEventLog(bool bShowWindow = true); void OnEventLogClose();