[PATCH 0/1] MR7274: hhctrl: Make "Select Topic" window title translatable.
From: Alex Henrie <alexhenrie24(a)gmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57738 --- dlls/hhctrl.ocx/help.c | 5 ++++- dlls/hhctrl.ocx/hhctrl.rc | 2 ++ dlls/hhctrl.ocx/resource.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index ac2981ca79e..413659c7097 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -1394,6 +1394,7 @@ static BOOL AddIndexPopup(HHInfo *info) { HWND hwndList, hwndPopup, hwndCallback; char hidden_column[] = "Column"; + WCHAR *window_title; WNDCLASSEXW wcex; LVCOLUMNA lvc; @@ -1428,13 +1429,15 @@ static BOOL AddIndexPopup(HHInfo *info) wcex.hIconSm = LoadIconW(NULL, (LPCWSTR)IDI_APPLICATION); RegisterClassExW(&wcex); + window_title = HH_LoadString(IDS_SELECT_TOPIC); hwndPopup = CreateWindowExW(WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_APPWINDOW | WS_EX_WINDOWEDGE | WS_EX_RIGHTSCROLLBAR, - L"HH Popup", L"Select Topic:", WS_POPUPWINDOW + L"HH Popup", window_title, WS_POPUPWINDOW | WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, 300, 200, info->WinType.hwndHelp, NULL, hhctrl_hinstance, NULL); + free(window_title); if (!hwndPopup) return FALSE; diff --git a/dlls/hhctrl.ocx/hhctrl.rc b/dlls/hhctrl.ocx/hhctrl.rc index 8eee7c4dca3..e98e3a3e058 100644 --- a/dlls/hhctrl.ocx/hhctrl.rc +++ b/dlls/hhctrl.ocx/hhctrl.rc @@ -34,6 +34,8 @@ BEGIN IDS_HIDETABS "Hide &Tabs" IDS_SHOWTABS "Show &Tabs" + + IDS_SELECT_TOPIC "Select Topic" END STRINGTABLE diff --git a/dlls/hhctrl.ocx/resource.h b/dlls/hhctrl.ocx/resource.h index 2630da760cb..9dfb08db545 100644 --- a/dlls/hhctrl.ocx/resource.h +++ b/dlls/hhctrl.ocx/resource.h @@ -29,6 +29,7 @@ #define IDS_FAVORITES 4 #define IDS_HIDETABS 5 #define IDS_SHOWTABS 6 +#define IDS_SELECT_TOPIC 7 #define MENU_POPUP 1 #define MENU_WEBBROWSER 2 -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7274
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)