From: H.G.Muller Date: Sun, 27 Mar 2016 10:02:01 +0000 (+0200) Subject: Internationalize EPD messages X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=76051fad679b9cc3665ad39e57b4ebbd8c140294;p=xboard.git Internationalize EPD messages --- diff --git a/backend.c b/backend.c index 7919587..c61649f 100644 --- 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) { - 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 { - 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); @@ -11842,11 +11842,11 @@ GameEnds (ChessMove result, char *resultDetails, int whosays) } else { gameMode = nextGameMode; if(appData.epd) { - snprintf(buf, MSG_SIZ, "-------------------------------- "); + snprintf(buf, MSG_SIZ, "-------------------------------------- "); 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); - 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"),