{ DLG_Sound, IDC_Event, OPT_NoSound, OPT_DefaultBeep, OPT_BuiltInSound,\r
OPT_WavFile, OPT_BrowseSound, OPT_DefaultSounds, IDOK, IDCANCEL, OPT_PlaySound }, \r
{ DLG_GeneralOptions, IDOK, IDCANCEL, OPT_AlwaysOnTop, OPT_HighlightLastMove,\r
- OPT_AlwaysQueen, OPT_PeriodicUpdates, OPT_AnimateDragging, OPT_PonderNextMove, OPT_AnimateMoving, OPT_PopupExitMessage, OPT_AutoFlag, OPT_PopupMoveErrors,\r
+ OPT_AlwaysQueen, OPT_PeriodicUpdates, OPT_AnimateDragging, OPT_PonderNextMove,\r
+ OPT_AnimateMoving, OPT_PopupExitMessage, OPT_AutoFlag, OPT_PopupMoveErrors,\r
OPT_AutoFlipView, OPT_ShowButtonBar, OPT_AutoRaiseBoard, OPT_ShowCoordinates,\r
OPT_Blindfold, OPT_ShowThinking, OPT_HighlightDragging, OPT_TestLegality,\r
OPT_SaveExtPGN, OPT_HideThinkFromHuman, OPT_ExtraInfoInMoveHistory,\r
if(j >= sizeof(english)) { DisplayError("Too many translated strings", 0); return; }\r
english[j] = languageBuf + n + 1; *p = 0;\r
foreign[j++] = p + 7; languageBuf[i-1] = 0;\r
-if(appData.debugMode) fprintf(debugFP, "translation: replace '%s' by '%s'\n", english[j-1], foreign[j-1]);\r
+//if(appData.debugMode) fprintf(debugFP, "translation: replace '%s' by '%s'\n", english[j-1], foreign[j-1]);\r
}\r
}\r
}\r
}\r
fclose(f);\r
barbaric = (j != 0);\r
- if(barbaric) strcpy(oldLanguage, name); else oldLanguage[0] = NULLCHAR;\r
+ strcpy(oldLanguage, buf);\r
}\r
\r
char *\r
}\r
\r
void\r
-Translate(HANDLE hDlg, int dialogID)\r
+Translate(HWND hDlg, int dialogID)\r
{ // translate all text items in the given dialog\r
int i=0, j, k;\r
char buf[MSG_SIZ], *s;\r
number = NULL;\r
}\r
CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
+ Translate(hDlg, 1536);\r
return FALSE; /* Allow for further processing */\r
\r
case WM_COMMAND:\r
OFNOTIFY *ofnot;\r
switch (uiMsg) {\r
case WM_INITDIALOG:\r
+ Translate(hdlg, DLG_IndexNumber);\r
ofname = (OPENFILENAME *)lParam;\r
number = (UINT *)(ofname->lCustData);\r
break;\r
SendMessage(hwndCombo, CB_RESETCONTENT, 0, 0);\r
\r
while (*cd != NULL) {\r
- SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) *cd);\r
+ SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) T_(*cd));\r
cd++;\r
}\r
}\r
/* Center the dialog over the application window */\r
CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
SetDlgItemText(hDlg, ABOUTBOX_Version, programVersion);\r
+ Translate(hDlg, ABOUTBOX);\r
JAWS_COPYRIGHT\r
return (TRUE);\r
\r
\r
/* Center the dialog over the application window */\r
CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
+ Translate(hDlg, DLG_GeneralOptions);\r
\r
/* Initialize the dialog items */\r
#define CHECK_BOX(x,y) CheckDlgButton(hDlg, (x), (BOOL)(y))\r
/* set the background color */\r
SendDlgItemMessage(hDlg, OPT_Sample, EM_SETBKGNDCOLOR, FALSE, background);\r
\r
- SetDlgItemText(hDlg, OPT_Sample, mca.name);\r
+ SetDlgItemText(hDlg, OPT_Sample, T_(mca.name));\r
UpdateSampleText(hDlg, OPT_Sample, &mca);\r
return TRUE;\r
\r
SendDlgItemMessage(hDlg, OPT_SampleSeek, EM_SETBKGNDCOLOR, 0, cbc);\r
SendDlgItemMessage(hDlg, OPT_SampleNormal, EM_SETBKGNDCOLOR, 0, cbc);\r
\r
- SetDlgItemText(hDlg, OPT_SampleShout, mca[ColorShout].name);\r
- SetDlgItemText(hDlg, OPT_SampleSShout, mca[ColorSShout].name);\r
- SetDlgItemText(hDlg, OPT_SampleChannel1, mca[ColorChannel1].name);\r
- SetDlgItemText(hDlg, OPT_SampleChannel, mca[ColorChannel].name);\r
- SetDlgItemText(hDlg, OPT_SampleKibitz, mca[ColorKibitz].name);\r
- SetDlgItemText(hDlg, OPT_SampleTell, mca[ColorTell].name);\r
- SetDlgItemText(hDlg, OPT_SampleChallenge, mca[ColorChallenge].name);\r
- SetDlgItemText(hDlg, OPT_SampleRequest, mca[ColorRequest].name);\r
- SetDlgItemText(hDlg, OPT_SampleSeek, mca[ColorSeek].name);\r
- SetDlgItemText(hDlg, OPT_SampleNormal, mca[ColorNormal].name);\r
+ SetDlgItemText(hDlg, OPT_SampleShout, T_(mca[ColorShout].name));\r
+ SetDlgItemText(hDlg, OPT_SampleSShout, T_(mca[ColorSShout].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChannel1, T_(mca[ColorChannel1].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChannel, T_(mca[ColorChannel].name));\r
+ SetDlgItemText(hDlg, OPT_SampleKibitz, T_(mca[ColorKibitz].name));\r
+ SetDlgItemText(hDlg, OPT_SampleTell, T_(mca[ColorTell].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChallenge, T_(mca[ColorChallenge].name));\r
+ SetDlgItemText(hDlg, OPT_SampleRequest, T_(mca[ColorRequest].name));\r
+ SetDlgItemText(hDlg, OPT_SampleSeek, T_(mca[ColorSeek].name));\r
+ SetDlgItemText(hDlg, OPT_SampleNormal, T_(mca[ColorNormal].name));\r
\r
UpdateSampleText(hDlg, OPT_SampleShout, &mca[ColorShout]);\r
UpdateSampleText(hDlg, OPT_SampleSShout, &mca[ColorSShout]);\r
\r
/* send the labels to the combo box */\r
while (scd->label) {\r
- err = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) scd->label);\r
+ err = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) T_(scd->label));\r
if (err != cnt++) {\r
sprintf(buf, "InitSoundCombo(): err '%d', cnt '%d'\n",\r
(int)err, (int)cnt);\r