added English and English US for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,10 +84,14 @@ IMPLEMENT_APP(MyApp)
|
|||||||
// `Main program' equivalent, creating windows and returning main app frame
|
// `Main program' equivalent, creating windows and returning main app frame
|
||||||
bool MyApp::OnInit()
|
bool MyApp::OnInit()
|
||||||
{
|
{
|
||||||
wxString langs[] = {"(System default)","French","German"};
|
wxString langs[] = {_T("(System default)"),
|
||||||
|
_T("French"),
|
||||||
|
_T("German"),
|
||||||
|
_T("English"),
|
||||||
|
_T("English (U.S.)")};
|
||||||
SetExitOnFrameDelete(FALSE);
|
SetExitOnFrameDelete(FALSE);
|
||||||
int lng = wxGetSingleChoiceIndex("Please choose language:", "Language",
|
int lng = wxGetSingleChoiceIndex(_T("Please choose language:"), _T("Language"),
|
||||||
3, langs);
|
5, langs);
|
||||||
SetExitOnFrameDelete(TRUE);
|
SetExitOnFrameDelete(TRUE);
|
||||||
|
|
||||||
switch (lng)
|
switch (lng)
|
||||||
@@ -95,6 +99,8 @@ bool MyApp::OnInit()
|
|||||||
case 0 : m_locale.Init(wxLANGUAGE_DEFAULT); break;
|
case 0 : m_locale.Init(wxLANGUAGE_DEFAULT); break;
|
||||||
case 1 : m_locale.Init(wxLANGUAGE_FRENCH); break;
|
case 1 : m_locale.Init(wxLANGUAGE_FRENCH); break;
|
||||||
case 2 : m_locale.Init(wxLANGUAGE_GERMAN); break;
|
case 2 : m_locale.Init(wxLANGUAGE_GERMAN); break;
|
||||||
|
case 3 : m_locale.Init(wxLANGUAGE_ENGLISH); break;
|
||||||
|
case 4 : m_locale.Init(wxLANGUAGE_ENGLISH_US); break;
|
||||||
default:
|
default:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user