diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-06 20:31:21 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-06 20:31:21 +0300 |
commit | c1ccb79a7110c4c692c5d88b95281c9ad5c497a0 (patch) | |
tree | 32987e4863e5f50735cb0dd489b80c91b1d6f102 /plugins/ListeningTo | |
parent | 4000b35d600ecd71733cb929c407e814309f3f49 (diff) |
mir_options:
- fixes #3857 (QuickContacts: слетел перевод)- fixes #3844 (ListeningTo: многие строки не переведены)
- fixes #3813 (AvatarHistory: пропал перевод настроек всплывающих окон)
Diffstat (limited to 'plugins/ListeningTo')
-rw-r--r-- | plugins/ListeningTo/src/options.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/plugins/ListeningTo/src/options.cpp b/plugins/ListeningTo/src/options.cpp index 36868a5bb9..75e7d207f8 100644 --- a/plugins/ListeningTo/src/options.cpp +++ b/plugins/ListeningTo/src/options.cpp @@ -170,6 +170,8 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP switch (msg) {
case WM_INITDIALOG:
+ TranslateDialogDefault(hwndDlg);
+
if (hExtraIcon != nullptr) {
ShowWindow(GetDlgItem(hwndDlg, IDC_SHOW_ADV_ICON), SW_HIDE);
ShowWindow(GetDlgItem(hwndDlg, IDC_ADV_ICON), SW_HIDE);
@@ -191,14 +193,14 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP return TRUE;
case WM_NOTIFY:
- {
- LPNMHDR lpnmhdr = (LPNMHDR)lParam;
- if (lpnmhdr->idFrom == 0 && lpnmhdr->code == PSN_APPLY) {
- RebuildMenu();
- StartTimer();
+ {
+ LPNMHDR lpnmhdr = (LPNMHDR)lParam;
+ if (lpnmhdr->idFrom == 0 && lpnmhdr->code == PSN_APPLY) {
+ RebuildMenu();
+ StartTimer();
+ }
}
- }
- break;
+ break;
case WM_COMMAND:
switch (LOWORD(wParam)) {
@@ -252,6 +254,7 @@ static INT_PTR CALLBACK PlayersDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP switch (msg) {
case WM_INITDIALOG:
+ TranslateDialogDefault(hwndDlg);
PlayersEnableDisableCtrls(hwndDlg);
break;
@@ -276,5 +279,8 @@ static INT_PTR CALLBACK PlayersDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP static INT_PTR CALLBACK FormatDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ if (msg == WM_INITDIALOG)
+ TranslateDialogDefault(hwndDlg);
+
return SaveOptsDlgProc(formatControls, _countof(formatControls), MODULENAME, hwndDlg, msg, wParam, lParam);
}
|