MGR: Store the ISO language ID for future use.

Usage: wxString strLang = wxGetApp().GetISOLanguageID();
This commit is contained in:
Rom Walton 2013-12-01 15:15:43 -05:00
parent 6ceb36b07a
commit 7a4d5fafee
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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();