From 7b9701f75b8c7a25de41df0d527e499a6029c2c0 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Wed, 16 Oct 2013 00:17:24 +0800 Subject: [PATCH] Bug #191 Error on every start in en locale if en_US is not installed --- src/mypropertysheet.cpp | 4 ++-- src/xmlcopyeditor.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mypropertysheet.cpp b/src/mypropertysheet.cpp index 1dfc4ea..1ea032b 100755 --- a/src/mypropertysheet.cpp +++ b/src/mypropertysheet.cpp @@ -167,7 +167,7 @@ MyPropertySheet::MyPropertySheet ( wxID_ANY ); languageBox->SetExtraStyle ( languageBox->GetExtraStyle() | wxCB_SORT ); - languageBox->Append ( _ ( "Default" ), ( void* ) wxLANGUAGE_ENGLISH_US ); + languageBox->Append ( _ ( "Default" ), ( void* ) wxLANGUAGE_DEFAULT ); languageBox->SetSelection ( 0 ); int index; @@ -278,7 +278,7 @@ void MyPropertySheet::OnOk ( wxCommandEvent& e ) if ( languageChoice != wxNOT_FOUND ) lang = (wxIntPtr)languageBox->GetClientData(languageChoice); else - lang = wxLANGUAGE_ENGLISH_US; + lang = wxLANGUAGE_DEFAULT; e.Skip(); } diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index a56c8d2..2c19b05 100755 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -299,7 +299,7 @@ bool MyApp::OnInit() systemLocale = wxLANGUAGE_DUTCH; break; default: - systemLocale = wxLANGUAGE_ENGLISH_US; + systemLocale = wxLANGUAGE_DEFAULT; break; }