#if wxUSE_UNICODE
wxLANGUAGE_GEORGIAN,
wxLANGUAGE_ENGLISH,
- wxLANGUAGE_ENGLISH_US
+ wxLANGUAGE_ENGLISH_US,
+ wxLANGUAGE_ARABIC,
+ wxLANGUAGE_ARABIC_EGYPT
#endif
};
#if wxUSE_UNICODE
_T("Georgian"),
_T("English"),
- _T("English (U.S.)")
+ _T("English (U.S.)"),
+ _T("Arabic"),
+ _T("Arabic (Egypt)")
#endif
};
}
}
- // if the message catalogs are installed in non-default locations you can
- // use this function to let wxLocale know about them
- // wxLocale::AddCatalogLookupPathPrefix(wxT("message_catalogs_subdir"));
+ // normally this wouldn't be necessary as the catalog files would be found
+ // 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("."));
// Initialize the catalogs we'll be using
m_locale.AddCatalog(wxT("internat"));
_("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) )