summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-04 19:50:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-04 19:50:23 +0300
commitb16254f3086504385c85a99ac4259a241a8da7a0 (patch)
tree37ee134cdf6d0f78e047532c9ea6c4d85b1c5aaa /protocols
parentd8bb7b62f22e745a1cc49833d040119ecf890021 (diff)
fixes #1880 (chinese in Jabber Ad-hoc forms)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_adhoc.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_adhoc.cpp b/protocols/JabberG/src/jabber_adhoc.cpp
index 91491c2774..9df5cd38aa 100644
--- a/protocols/JabberG/src/jabber_adhoc.cpp
+++ b/protocols/JabberG/src/jabber_adhoc.cpp
@@ -364,12 +364,11 @@ static INT_PTR CALLBACK JabberAdHoc_CommandDlgProc(HWND hwndDlg, UINT msg, WPARA
SetDlgItemText(hwndDlg, IDC_SUBMIT, TranslateT("Execute"));
JabberFormSetInstruction(hwndDlg, TranslateU("Requesting command list. Please wait..."));
+ char Caption[512];
if (!pStartupParams->m_szNode) {
dat->proto->AdHoc_RequestListOfCommands(pStartupParams->m_szJid, hwndDlg);
- wchar_t Caption[512];
- mir_snwprintf(Caption, TranslateT("Jabber Ad-Hoc commands at %s"), dat->ResponderJID);
- SetWindowText(hwndDlg, Caption);
+ mir_snprintf(Caption, TranslateU("Jabber Ad-Hoc commands at %s"), dat->ResponderJID);
}
else {
dat->proto->m_ThreadInfo->send(
@@ -380,10 +379,9 @@ static INT_PTR CALLBACK JabberAdHoc_CommandDlgProc(HWND hwndDlg, UINT msg, WPARA
EnableDlgItem(hwndDlg, IDC_SUBMIT, FALSE);
SetDlgItemText(hwndDlg, IDC_SUBMIT, TranslateT("OK"));
- wchar_t Caption[512];
- mir_snwprintf(Caption, TranslateT("Sending Ad-Hoc command to %s"), dat->ResponderJID);
- SetWindowText(hwndDlg, Caption);
+ mir_snprintf(Caption, TranslateU("Sending Ad-Hoc command to %s"), dat->ResponderJID);
}
+ SetWindowTextUtf(hwndDlg, Caption);
delete pStartupParams;
}