From: H.G. Muller Date: Mon, 11 Oct 2010 19:06:41 +0000 (+0200) Subject: Disable some very verbose debug printing X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b2918562aae79be5117ea7e9e01af1ad17afbd97;p=xboard.git Disable some very verbose debug printing The internationalization seems debugged enough to do without them. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index e92a265..50102ca 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -383,7 +383,7 @@ T_(char *s) { // return the translation of the given string // efficiency can be improved a lot... int i=0; -if(appData.debugMode) fprintf(debugFP, "T_(%s)\n", s); +//if(appData.debugMode) fprintf(debugFP, "T_(%s)\n", s); if(!barbaric) return s; if(!s) return ""; // sanity while(english[i]) { @@ -404,7 +404,7 @@ Translate(HWND hDlg, int dialogID) if(dialogItems[i][0] != dialogID) return; // unknown dialog, should not happen GetWindowText( hDlg, buf, MSG_SIZ ); s = T_(buf); -if(appData.debugMode) fprintf(debugFP, "WindowText '%s' -> '%s'\n", buf, s); +//if(appData.debugMode) fprintf(debugFP, "WindowText '%s' -> '%s'\n", buf, s); if(strcmp(buf, s)) SetWindowText(hDlg, s); // replace by translated string (if different) for(j=1; k=dialogItems[i][j]; j++) { // translate all listed dialog items GetDlgItemText(hDlg, k, buf, MSG_SIZ);