From: H.G. Muller Date: Mon, 3 Jan 2011 12:04:56 +0000 (+0100) Subject: Fix chat window title X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a671a79bf5c33fa2883bdd1fccfde88d74e39d06;p=xboard.git 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. --- 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