X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=35f3c690b0c17d03af189fa7ba9773396b63ff04;hb=464c6c9802bdf2b1637a343467a6c85280b5e721;hp=a409f1924f375de64e7c042f6a365356fa936fa5;hpb=4e062d14429ed3a3a251c971690bade4c8cba946;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index a409f19..35f3c69 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -53,7 +53,13 @@ # define _(s) gettext (s) # define N_(s) gettext_noop (s) #else -# define _(s) (s) +# ifdef WIN32 +# define _(s) T_(s) +# undef ngettext +# define ngettext(s,p,n) T_(p) +# else +# define _(s) (s) +# endif # define N_(s) s #endif @@ -107,7 +113,7 @@ MakeEngineOutputTitle () count = currentMove - count; if(!rule) rule = 100; if(count >= rule - 40 && (!appData.icsActive || gameMode == IcsObserving)) { - snprintf(buf, MSG_SIZ, _("%s (%d reversible plies)"), title, count); + snprintf(buf, MSG_SIZ, ngettext("%s (%d reversible ply)", "%s (%d reversible plies)", count), title, count); safeStrCpy(title, buf, MSG_SIZ); } if(!strcmp(oldTitle, title)) return;