One more string marked for translation
authorByrial Jensen <byrial@vip.cybercity.dk>
Thu, 22 Dec 2011 14:01:31 +0000 (15:01 +0100)
committerByrial Jensen <byrial@vip.cybercity.dk>
Thu, 22 Dec 2011 14:01:31 +0000 (15:01 +0100)
And it is moved inside the if statement that uses it.

engineoutput.c

index 59bff2f..9cd7548 100644 (file)
@@ -102,10 +102,11 @@ void MakeEngineOutputTitle()
        while( (signed char)boards[count][EP_STATUS] <= EP_NONE && count > backwardMostMove ) count--;
        if( count == backwardMostMove ) count -= initialRulePlies;
        count = currentMove - count;
-       snprintf(buf, MSG_SIZ, "%s (%d reversible plies)", title, count);
        if(!rule) rule = 100;
-       if(count >= rule - 40 && (!appData.icsActive || gameMode == IcsObserving)) 
-         safeStrCpy(title, buf, MSG_SIZ);
+       if(count >= rule - 40 && (!appData.icsActive || gameMode == IcsObserving)) {
+               snprintf(buf, MSG_SIZ, _("%s (%d reversible plies)"), title, count);
+               safeStrCpy(title, buf, MSG_SIZ);
+       }
        if(!strcmp(oldTitle, title)) return;
        safeStrCpy(oldTitle, title, MSG_SIZ);
        SetEngineOutputTitle(title);