// ----------------------------------------------------------------------------
// gettext() style macros (notice that xgettext should be invoked with
-// --keyword="_" --keyword="ngettext:1,2" options
+// --keyword="_" --keyword="wxGetTranslation:1,2" options
// to extract the strings from the sources)
#ifndef WXINTL_NO_GETTEXT_MACRO
#define _(s) wxGetTranslation(_T(s))
- #define ngettext(s1, s2, n) wxGetTranslation(_T(s1), _T(s2), n)
#endif
// another one which just marks the strings for extraction, but doesn't
#if !defined(_)
#define _(s) (_T(s))
#endif
- #if !defined(ngettext)
- #define ngettext(s1, s2, n) ((n) == 1 ? _T(s1) : _T(s2))
- #endif
#endif
#define wxTRANSLATE(str) _T(str)
for (int n = first; n <= last; ++n)
{
s << n << _T(" ") <<
- ngettext("file deleted", "files deleted", n) << _T("\n");
+ wxGetTranslation("file deleted", "files deleted", n) << _T("\n");
}
wxMessageBox(s);
}