Make system open command configurable
[xboard.git] / engineoutput.c
index a409f19..35f3c69 100644 (file)
 # 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;