From a671a79bf5c33fa2883bdd1fccfde88d74e39d06 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 3 Jan 2011 13:04:56 +0100 Subject: [PATCH] Fix chat window title The title was using the engine name, rather than the ICS handle, which did not work outside zippy mode. Now it only uses the engine name when no ICS handle is known. The titleis now also subjected to translation. --- winboard/language.txt | 6 +++++- winboard/wchat.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winboard/language.txt b/winboard/language.txt index 699b6be..ed3a29b 100644 --- a/winboard/language.txt +++ b/winboard/language.txt @@ -782,7 +782,11 @@ wsettings.c "%s Engine Settings (%s)" === "" "OK" === "" -"Cancel" === "" +"Cancel" === """Chat Window %s" + +wchat.c + +"Cancel" === """Chat Window %s" backend.c diff --git a/winboard/wchat.c b/winboard/wchat.c index 1da04b7..322fc6f 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -62,6 +62,7 @@ extern HWND ChatDialog; extern HINSTANCE hInst; extern HWND hwndConsole; +extern char ics_handle[]; extern WindowPlacement wpChat[MAX_CHAT]; extern WindowPlacement wpConsole; @@ -193,7 +194,7 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam if(partner<0) { for(i=0; i