diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-22 15:07:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-22 15:07:07 +0300 |
commit | 104f1a0882ee3c867056fb215d6e08658c5f9c48 (patch) | |
tree | d5d4d6908a0ec350f637e287961ded7199c82cbe /src | |
parent | 10530cc3c20e0421a4031495b4fa5b474596cea1 (diff) |
attempt to fix #935
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 2d098c0e30..e3869a7097 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -750,14 +750,14 @@ MIR_APP_DLL(wchar_t*) Chat_UnescapeTags(wchar_t *str_in) /////////////////////////////////////////////////////////////////////////////////////////
-MIR_APP_DLL(void) Chat_AddMenuItems(HMENU hMenu, int nItems, const gc_item *Item)
+MIR_APP_DLL(void) Chat_AddMenuItems(HMENU hMenu, int nItems, const gc_item *Item, int _hLang)
{
if (nItems > 0)
AppendMenu(hMenu, MF_SEPARATOR, 0, 0);
HMENU hSubMenu = nullptr;
for (int i = 0; i < nItems; i++) {
- wchar_t *ptszText = TranslateW(Item[i].pszDesc);
+ wchar_t *ptszText = TranslateW_LP(Item[i].pszDesc, _hLang);
DWORD dwState = Item[i].bDisabled ? MF_GRAYED : 0;
if (Item[i].uType == MENU_NEWPOPUP) {
|