From 47b84d7023fd7405ec1cec9b14f49ac8be13f891 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 25 Nov 2010 19:26:34 +0100 Subject: [PATCH] Display error for wrong use of Machine Match --- winboard/language.txt | 4 +++- winboard/winboard.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winboard/language.txt b/winboard/language.txt index 16ce894..e63e74f 100644 --- a/winboard/language.txt +++ b/winboard/language.txt @@ -60,6 +60,7 @@ MENUS: "Cop&y Position To Clipboard\tCtrl+Shift+C" === "" "Pas&te Position From Clipboard\tCtrl+Shift+V" === "" "E&xit" === "" +"&Quit" === "" "Machine &White\tCtrl+W" === "" "Machine &Black\tCtrl+B" === "" @@ -901,7 +902,8 @@ backend.c "Bad FEN position in clipboard" === "" "No response from ICS" === "" "You cannot do this while you are playing or observing" === "" -"Click in holdings to choose piece" === "" +"Click in holdings to choose piece" === "" +"You can only start a match from the initial position." === "" END-OF-GAME MESSAGES (should they be translated?) ## I think that only for visualization and not for PGN, as PGN files are shared all around the world diff --git a/winboard/winboard.c b/winboard/winboard.c index 36f7ca6..08cafb9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4828,7 +4828,9 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case IDM_Match: // [HGM] match: flows into next case, after setting Match Mode and nr of Games - if(gameMode != BeginningOfGame) break; // allow menu item to remain enabled for better mode highligting + if(gameMode != BeginningOfGame) { // allow menu item to remain enabled for better mode highligting + DisplayError(_("You can only start a match from the initial position."), 0); break; + } matchMode = 2;// distinguish from command-line-triggered case (matchMode=1) appData.matchGames = appData.defaultMatchGames; matchGame = 1; -- 1.7.0.4