Bug #191 Error on every start in en locale if en_US is not installed
This commit is contained in:
parent
ef4c10ce0b
commit
7b9701f75b
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue