mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-21 22:02:37 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user