mirror of https://github.com/BOINC/boinc.git
MGR: Store the ISO language ID for future use.
Usage: wxString strLang = wxGetApp().GetISOLanguageID();
This commit is contained in:
parent
6ceb36b07a
commit
7a4d5fafee
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue