Make some new General Options translatable in WinBoard
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 5 Jul 2022 14:17:12 +0000 (16:17 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 5 Jul 2022 14:20:25 +0000 (16:20 +0200)
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
winboard/woptions.c

index e45737b..ae89e8a 100644 (file)
@@ -297,7 +297,8 @@ int dialogItems[][42] = {
   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
-  OPT_HighlightMoveArrow, OPT_AutoLogo ,OPT_SmartMove }, \r
+  OPT_HighlightMoveArrow, OPT_AutoLogo ,OPT_SmartMove, OPT_AutoTags, OPT_AutoComment,\r
+  OPT_Headers, OPT_Variations, OPT_AutoExtend }, \r
 { DLG_IcsOptions, IDOK, IDCANCEL, OPT_AutoComment, OPT_AutoKibitz, OPT_AutoObserve,\r
   OPT_GetMoveList, OPT_LocalLineEditing, OPT_QuietPlay, OPT_SeekGraph, OPT_AutoRefresh,\r
   OPT_BgObserve, OPT_DualBoard, OPT_Premove, OPT_PremoveWhite, OPT_PremoveBlack,\r
@@ -315,14 +316,7 @@ int dialogItems[][42] = {
   OPT_ChooseBlackPieceColor, OPT_ChooseHighlightSquareColor, OPT_ChoosePremoveHighlightColor,\r
   OPT_Monochrome, OPT_AllWhite, OPT_UpsideDown, OPT_DefaultBoardColors, GPB_Colors,\r
   IDC_Light, IDC_Dark, IDC_White, IDC_Black, IDC_High, IDC_PreHigh, GPB_Size, OPT_Bitmaps, OPT_PieceFont, OPT_Grid }, \r
-{ DLG_NewVariant, IDOK, IDCANCEL, OPT_VariantNormal, OPT_VariantFRC, OPT_VariantWildcastle,\r
-  OPT_VariantNocastle, OPT_VariantLosers, OPT_VariantGiveaway, OPT_VariantSuicide,\r
-  OPT_Variant3Check, OPT_VariantTwoKings, OPT_VariantAtomic, OPT_VariantCrazyhouse,\r
-  OPT_VariantBughouse, OPT_VariantTwilight, OPT_VariantShogi, OPT_VariantSuper,\r
-  OPT_VariantKnightmate, OPT_VariantBerolina, OPT_VariantCylinder, OPT_VariantFairy,\r
-  OPT_VariantMakruk, OPT_VariantGothic, OPT_VariantCapablanca, OPT_VariantJanus,\r
-  OPT_VariantCRC, OPT_VariantFalcon, OPT_VariantCourier, OPT_VariantGreat, OPT_VariantSChess,\r
-  OPT_VariantShatranj, OPT_VariantXiangqi, OPT_VariantJanggi, GPB_Variant, GPB_Board, IDC_Height,\r
+{ DLG_NewVariant, IDOK, IDCANCEL, GPB_Variant, GPB_Board, IDC_Height,\r
   IDC_Width, IDC_Hand, IDC_Pieces, IDC_Def }, \r
 { DLG_Fonts, IDOK, IDCANCEL, OPT_ChooseClockFont, OPT_ChooseMessageFont,\r
   OPT_ChooseCoordFont, OPT_ChooseTagFont, OPT_ChooseCommentsFont,  OPT_ChooseConsoleFont, OPT_ChooseMoveHistoryFont, OPT_DefaultFonts,\r
@@ -7898,6 +7892,7 @@ void CheckForInputBufferFull( InputSource * is )
 \r
             is->error = ERROR_BROKEN_PIPE; /* [AS] Just any non-successful code! */\r
             is->count = (DWORD) -1;\r
+\r
             is->next = is->buf;\r
         }\r
     }\r
index f712e4c..fe5223a 100644 (file)
@@ -906,7 +906,7 @@ VariantShowRadio(HWND hDlg)
        v = VariantName(i-1); p = strstr(first.variants, v);\r
        if(p && p != &first.variants && p[-1] != ',') p == NULL;\r
        if(appData.noChessProgram || p && (!*v || strlen(v) == strlen(p) || p[strlen(v)] == ',')) {\r
-          SendMessage(combo, CB_ADDSTRING, 0, (LPARAM) v);\r
+          SendMessage(combo, CB_ADDSTRING, 0, (LPARAM) T_(v));\r
            if(gameInfo.variant == i - 1) current = nr;\r
           meaning[nr++] = i - 1;\r
         }\r