};
// ----------------------------------------------------------------------------
-// wxWindows macros
+// wxWidgets macros
// ----------------------------------------------------------------------------
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
MyFrame::MyFrame(wxLocale& locale)
: wxFrame(NULL,
-1,
- _("International wxWindows App"),
+ _("International wxWidgets App"),
wxPoint(50, 50),
wxSize(350, 60)),
m_locale(locale)
{
const wxChar* title = _("Testing _N() (ngettext)");
wxTextEntryDialog d(this,
- _("Please enter range for plural forms of \"n files deleted\""
- "phrase"),
+ _("Please enter range for plural forms of \"n files deleted\" phrase"),
title, _T("0-10"));
if (d.ShowModal() == wxID_OK)
{
s << _T("\n");
for (int n = first; n <= last; ++n)
{
- s << n << _T(" ") <<
- ngettext("file deleted", "files deleted", n) << _T("\n");
+ s << n << _T(" ") <<
+ wxGetTranslation(_T("file deleted"), _T("files deleted"), n) <<
+ _T("\n");
}
wxMessageBox(s);
}