From: Byrial Jensen Date: Thu, 16 Feb 2012 17:42:10 +0000 (+0100) Subject: Use ngettext() instead of gettext() for a string to allow better translation. X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=ebee58348a2cadbc1596f6bdd60f12386b93874a Use ngettext() instead of gettext() for a string to allow better translation. --- diff --git a/engineoutput.c b/engineoutput.c index a409f19..caf8f8b 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -107,7 +107,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;