Use ngettext() instead of gettext() for a string to allow better translation.
authorByrial Jensen <byrial@vip.cybercity.dk>
Thu, 16 Feb 2012 17:42:10 +0000 (18:42 +0100)
committerByrial Jensen <byrial@vip.cybercity.dk>
Thu, 16 Feb 2012 17:42:10 +0000 (18:42 +0100)
engineoutput.c

index a409f19..caf8f8b 100644 (file)
@@ -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;