Internationalize EPD messages
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 27 Mar 2016 10:02:01 +0000 (12:02 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Mar 2016 14:51:35 +0000 (16:51 +0200)
backend.c

index 7919587..c61649f 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8952,10 +8952,10 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h
         }
         if(appData.epd) {
            if(solvingTime >= 0) {
         }
         if(appData.epd) {
            if(solvingTime >= 0) {
-              snprintf(buf1, MSG_SIZ, "%d. solved %4.2fs\n", matchGame, solvingTime/100.);
+              snprintf(buf1, MSG_SIZ, _("%d. solved %4.2fs\n"), matchGame, solvingTime/100.);
               totalTime += solvingTime; first.matchWins++; solvingTime = -1;
            } else {
               totalTime += solvingTime; first.matchWins++; solvingTime = -1;
            } else {
-              snprintf(buf1, MSG_SIZ, "%d. wrong (%s)\n", matchGame, parseList[backwardMostMove]);
+              snprintf(buf1, MSG_SIZ, _("%d. wrong (%s)\n"), matchGame, parseList[backwardMostMove]);
               second.matchWins++;
            }
            OutputKibitz(2, buf1);
               second.matchWins++;
            }
            OutputKibitz(2, buf1);
@@ -11842,11 +11842,11 @@ GameEnds (ChessMove result, char *resultDetails, int whosays)
        } else {
            gameMode = nextGameMode;
            if(appData.epd) {
        } else {
            gameMode = nextGameMode;
            if(appData.epd) {
-               snprintf(buf, MSG_SIZ, "-------------------------------- ");
+               snprintf(buf, MSG_SIZ, "-------------------------------------- ");
                OutputKibitz(2, buf);
                OutputKibitz(2, buf);
-               snprintf(buf, MSG_SIZ, "Average solving time %4.2f sec ", totalTime/(100.*first.matchWins));
+               snprintf(buf, MSG_SIZ, _("Average solving time %4.2f sec "), totalTime/(100.*first.matchWins));
                OutputKibitz(2, buf);
                OutputKibitz(2, buf);
-               snprintf(buf, MSG_SIZ, "Solved %d of %d (%3.1f%%) ", first.matchWins, nextGame, first.matchWins*100./nextGame);
+               snprintf(buf, MSG_SIZ, _("Solved %d of %d (%3.1f%%) "), first.matchWins, nextGame, first.matchWins*100./nextGame);
                OutputKibitz(2, buf);
            }
            snprintf(buf, MSG_SIZ, _("Match %s vs. %s: final score %d-%d-%d"),
                OutputKibitz(2, buf);
            }
            snprintf(buf, MSG_SIZ, _("Match %s vs. %s: final score %d-%d-%d"),