From 3f32f52de2224cad48e07f9673f705fb1359e961 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 5 Jul 2022 16:17:12 +0200 Subject: [PATCH] Make some new General Options translatable in WinBoard Some of the new checkboxes had not been added to the list of translatable items yet. The radiobuttons in the New Variant dialog no longer exist, so these were removed from the list. Instead the names of the standard variants now are subjected to translation when they are added to the variant-selection combobox. --- winboard/winboard.c | 13 ++++--------- winboard/woptions.c | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index e45737b..ae89e8a 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -297,7 +297,8 @@ int dialogItems[][42] = { OPT_AutoFlipView, OPT_ShowButtonBar, OPT_AutoRaiseBoard, OPT_ShowCoordinates, OPT_Blindfold, OPT_ShowThinking, OPT_HighlightDragging, OPT_TestLegality, OPT_SaveExtPGN, OPT_HideThinkFromHuman, OPT_ExtraInfoInMoveHistory, - OPT_HighlightMoveArrow, OPT_AutoLogo ,OPT_SmartMove }, + OPT_HighlightMoveArrow, OPT_AutoLogo ,OPT_SmartMove, OPT_AutoTags, OPT_AutoComment, + OPT_Headers, OPT_Variations, OPT_AutoExtend }, { DLG_IcsOptions, IDOK, IDCANCEL, OPT_AutoComment, OPT_AutoKibitz, OPT_AutoObserve, OPT_GetMoveList, OPT_LocalLineEditing, OPT_QuietPlay, OPT_SeekGraph, OPT_AutoRefresh, OPT_BgObserve, OPT_DualBoard, OPT_Premove, OPT_PremoveWhite, OPT_PremoveBlack, @@ -315,14 +316,7 @@ int dialogItems[][42] = { OPT_ChooseBlackPieceColor, OPT_ChooseHighlightSquareColor, OPT_ChoosePremoveHighlightColor, OPT_Monochrome, OPT_AllWhite, OPT_UpsideDown, OPT_DefaultBoardColors, GPB_Colors, IDC_Light, IDC_Dark, IDC_White, IDC_Black, IDC_High, IDC_PreHigh, GPB_Size, OPT_Bitmaps, OPT_PieceFont, OPT_Grid }, -{ DLG_NewVariant, IDOK, IDCANCEL, OPT_VariantNormal, OPT_VariantFRC, OPT_VariantWildcastle, - OPT_VariantNocastle, OPT_VariantLosers, OPT_VariantGiveaway, OPT_VariantSuicide, - OPT_Variant3Check, OPT_VariantTwoKings, OPT_VariantAtomic, OPT_VariantCrazyhouse, - OPT_VariantBughouse, OPT_VariantTwilight, OPT_VariantShogi, OPT_VariantSuper, - OPT_VariantKnightmate, OPT_VariantBerolina, OPT_VariantCylinder, OPT_VariantFairy, - OPT_VariantMakruk, OPT_VariantGothic, OPT_VariantCapablanca, OPT_VariantJanus, - OPT_VariantCRC, OPT_VariantFalcon, OPT_VariantCourier, OPT_VariantGreat, OPT_VariantSChess, - OPT_VariantShatranj, OPT_VariantXiangqi, OPT_VariantJanggi, GPB_Variant, GPB_Board, IDC_Height, +{ DLG_NewVariant, IDOK, IDCANCEL, GPB_Variant, GPB_Board, IDC_Height, IDC_Width, IDC_Hand, IDC_Pieces, IDC_Def }, { DLG_Fonts, IDOK, IDCANCEL, OPT_ChooseClockFont, OPT_ChooseMessageFont, OPT_ChooseCoordFont, OPT_ChooseTagFont, OPT_ChooseCommentsFont, OPT_ChooseConsoleFont, OPT_ChooseMoveHistoryFont, OPT_DefaultFonts, @@ -7898,6 +7892,7 @@ void CheckForInputBufferFull( InputSource * is ) is->error = ERROR_BROKEN_PIPE; /* [AS] Just any non-successful code! */ is->count = (DWORD) -1; + is->next = is->buf; } } diff --git a/winboard/woptions.c b/winboard/woptions.c index f712e4c..fe5223a 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -906,7 +906,7 @@ VariantShowRadio(HWND hDlg) v = VariantName(i-1); p = strstr(first.variants, v); if(p && p != &first.variants && p[-1] != ',') p == NULL; if(appData.noChessProgram || p && (!*v || strlen(v) == strlen(p) || p[strlen(v)] == ',')) { - SendMessage(combo, CB_ADDSTRING, 0, (LPARAM) v); + SendMessage(combo, CB_ADDSTRING, 0, (LPARAM) T_(v)); if(gameInfo.variant == i - 1) current = nr; meaning[nr++] = i - 1; } -- 1.7.0.4