summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-03-26 19:50:34 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-03-26 19:50:34 +0000
commit10bf2c45f3592efcfb662c1c9cc7ba163f32a523 (patch)
treeab1a1c2a18cd3f1bbbe8195809d753eaaa51bcc6 /plugins
parentd1bd5426f0c8a7374c795e3ccca38983862025c0 (diff)
translate xstatus list (fixes #278)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4204 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/KeyboardNotify/src/options.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/KeyboardNotify/src/options.cpp b/plugins/KeyboardNotify/src/options.cpp
index 5eabe31747..e1dd452c01 100644
--- a/plugins/KeyboardNotify/src/options.cpp
+++ b/plugins/KeyboardNotify/src/options.cpp
@@ -1442,20 +1442,19 @@ INT_PTR CALLBACK DlgProcXstatusList(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
if (hIconAux) DestroyIcon(hIconAux);
hParent = TreeView_InsertItem(hwndTree, &tvis);
for(j = 0; j < XstatusListAux[i].count; j++) {
- TCHAR szDefaultName[1024];
- CUSTOM_STATUS xstatus={0};
-
tvis.hParent = hParent;
tvis.item.mask = TVIF_TEXT|TVIF_PARAM|TVIF_IMAGE|TVIF_SELECTEDIMAGE;
if (!j){
tvis.item.pszText = TranslateT("None"); }
else {
+ TCHAR szDefaultName[1024];
+ CUSTOM_STATUS xstatus={0};
xstatus.cbSize = sizeof(CUSTOM_STATUS);
- xstatus.flags = CSSF_MASK_NAME|CSSF_DEFAULT_NAME|CSSF_UNICODE;
+ xstatus.flags = CSSF_MASK_NAME|CSSF_DEFAULT_NAME|CSSF_TCHAR;
xstatus.ptszName = szDefaultName;
xstatus.wParam = &j;
CallProtoService(ProtoList.protoInfo[i].szProto, PS_GETCUSTOMSTATUSEX, 0, (LPARAM)&xstatus);
- tvis.item.pszText = szDefaultName;
+ tvis.item.pszText = TranslateTS(szDefaultName);
}
tvis.item.lParam = (LPARAM)j;
tvis.item.iImage = tvis.item.iSelectedImage = j?ImageList_AddIcon(hImageList, hIconAux=(HICON)CallProtoService(ProtoList.protoInfo[i].szProto, PS_GETCUSTOMSTATUSICON, (WPARAM)j, 0)):0;