Bug #191 Error on every start in en locale if en_US is not installed

This commit is contained in:
Zane U. Ji 2013-10-16 00:17:24 +08:00
parent ef4c10ce0b
commit 7b9701f75b
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ MyPropertySheet::MyPropertySheet (
wxID_ANY ); wxID_ANY );
languageBox->SetExtraStyle ( languageBox->GetExtraStyle() | wxCB_SORT ); languageBox->SetExtraStyle ( languageBox->GetExtraStyle() | wxCB_SORT );
languageBox->Append ( _ ( "Default" ), ( void* ) wxLANGUAGE_ENGLISH_US ); languageBox->Append ( _ ( "Default" ), ( void* ) wxLANGUAGE_DEFAULT );
languageBox->SetSelection ( 0 ); languageBox->SetSelection ( 0 );
int index; int index;
@ -278,7 +278,7 @@ void MyPropertySheet::OnOk ( wxCommandEvent& e )
if ( languageChoice != wxNOT_FOUND ) if ( languageChoice != wxNOT_FOUND )
lang = (wxIntPtr)languageBox->GetClientData(languageChoice); lang = (wxIntPtr)languageBox->GetClientData(languageChoice);
else else
lang = wxLANGUAGE_ENGLISH_US; lang = wxLANGUAGE_DEFAULT;
e.Skip(); e.Skip();
} }

View File

@ -299,7 +299,7 @@ bool MyApp::OnInit()
systemLocale = wxLANGUAGE_DUTCH; systemLocale = wxLANGUAGE_DUTCH;
break; break;
default: default:
systemLocale = wxLANGUAGE_ENGLISH_US; systemLocale = wxLANGUAGE_DEFAULT;
break; break;
} }