From 13f3b5451793d960f3ae95e4470796528a481596 Mon Sep 17 00:00:00 2001 From: amail80 <261782908+amail80@users.noreply.github.com> Date: Sun, 18 Oct 2026 13:33:42 +0500 Subject: [PATCH] Windows: fix untranslated Pre-Boot check box in Benchmark dialog (#1930) The Pre-Boot check box, shown in the Benchmark dialog when KDF is selected, appears in English in every language. LocalizeDialog translates a control when its ID name matches a string key, and there is no IDC_BENCHMARK_PREBOOT string. Its text was added with the check box in 2016 as PRE-BOOT, which is not used anywhere. Every language file includes it, and 40 of the 42 translate it. Set the check box text from PRE-BOOT after the dialog is localized. No language files change. --- src/Common/Dlgcode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index ab1e7e24..a571b02d 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -6969,6 +6969,7 @@ BOOL CALLBACK BenchmarkDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP hCboxList = GetDlgItem (hwndDlg, IDC_BENCHMARK_LIST); LocalizeDialog (hwndDlg, "IDD_BENCHMARK_DLG"); + SetWindowTextW (GetDlgItem (hwndDlg, IDC_BENCHMARK_PREBOOT), GetString ("PRE-BOOT")); benchmarkBufferSize = BENCHMARK_DEFAULT_BUF_SIZE; benchmarkSortMethod = BENCHMARK_SORT_BY_SPEED;