X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/346f42313b4b540124a53091f861468cd7cc6e15..e6113e3a52d1c1c486b3a31cb22b59e2d9555b2d:/samples/internat/internat.cpp diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index dd1fe4bbd8..089ed4b3d0 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -102,7 +102,9 @@ static const wxLanguage langIds[] = #if wxUSE_UNICODE wxLANGUAGE_GEORGIAN, wxLANGUAGE_ENGLISH, - wxLANGUAGE_ENGLISH_US + wxLANGUAGE_ENGLISH_US, + wxLANGUAGE_ARABIC, + wxLANGUAGE_ARABIC_EGYPT #endif }; @@ -124,7 +126,9 @@ const wxString langNames[] = #if wxUSE_UNICODE _T("Georgian"), _T("English"), - _T("English (U.S.)") + _T("English (U.S.)"), + _T("Arabic"), + _T("Arabic (Egypt)") #endif }; @@ -191,12 +195,10 @@ bool MyApp::OnInit() } // normally this wouldn't be necessary as the catalog files would be found - // in the default locations, but under Windows then the program is not - // installed the catalogs are in the parent directory (because the binary - // is in a subdirectory of samples/internat) where we wouldn't find them by + // in the default locations, but when the program is not installed the + // catalogs are in the build directory where we wouldn't find them by // default wxLocale::AddCatalogLookupPathPrefix(wxT(".")); - wxLocale::AddCatalogLookupPathPrefix(wxT("..")); // Initialize the catalogs we'll be using m_locale.AddCatalog(wxT("internat")); @@ -255,7 +257,13 @@ MyFrame::MyFrame(wxLocale& locale) _("International wxWidgets App")), m_locale(locale) { - // Empty + // this demonstrates RTL layout mirroring for Arabic locales + wxSizer *sizer = new wxBoxSizer(wxHORIZONTAL); + sizer->Add(new wxStaticText(this, wxID_ANY, _("First")), + wxSizerFlags().Border()); + sizer->Add(new wxStaticText(this, wxID_ANY, _("Second")), + wxSizerFlags().Border()); + SetSizer(sizer); } void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )