summaryrefslogtreecommitdiff
path: root/plugins/Chat
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-18 11:47:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-18 11:47:05 +0000
commit81fe4a0a34e8e07305381e18e449246fef822673 (patch)
treef67d76b7531445e7a18e7f0975f76f66597e8f69 /plugins/Chat
parent1be97f17884f9046e6ab45d45ea327ef00a3d095 (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat')
-rw-r--r--plugins/Chat/tools.c2
-rw-r--r--plugins/Chat/window.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Chat/tools.c b/plugins/Chat/tools.c
index 6609a388a0..ef24f40a13 100644
--- a/plugins/Chat/tools.c
+++ b/plugins/Chat/tools.c
@@ -689,7 +689,7 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO
HMENU hSubMenu = 0;
*hMenu = GetSubMenu(g_hMenu, iIndex);
- CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM) *hMenu, 0);
+ TranslateMenu(*hMenu);
gcmi.pszID = si->ptszID;
gcmi.pszModule = si->pszModule;
gcmi.pszUID = pszUID;
diff --git a/plugins/Chat/window.c b/plugins/Chat/window.c
index 2021496563..67052b2a35 100644
--- a/plugins/Chat/window.c
+++ b/plugins/Chat/window.c
@@ -607,7 +607,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam,
HMENU hSubMenu;
hSubMenu = GetSubMenu(g_hMenu, 4);
- CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM) hSubMenu, 0);
+ TranslateMenu(hSubMenu);
SendMessage(hwnd, EM_EXGETSEL, 0, (LPARAM) & sel);
EnableMenuItem(hSubMenu, ID_MESSAGE_UNDO, SendMessage(hwnd, EM_CANUNDO, 0,0)?MF_ENABLED:MF_GRAYED);
@@ -2174,7 +2174,7 @@ LABEL_SHOWWINDOW:
ClientToScreen(GetDlgItem(hwndDlg, IDC_TAB), &tci.pt);
hSubMenu = GetSubMenu(g_hMenu, 5);
- CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM) hSubMenu, 0);
+ TranslateMenu(hSubMenu);
if (s) {
WORD w = DBGetContactSettingWord(s->hContact, s->pszModule, "TabPosition", 0);
if ( w == 0)
@@ -2352,7 +2352,7 @@ LABEL_SHOWWINDOW:
POINT pt;
hSubMenu = GetSubMenu(g_hMenu, 2);
- CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM) hSubMenu, 0);
+ TranslateMenu(hSubMenu);
pt.x = (short) LOWORD(((ENLINK *) lParam)->lParam);
pt.y = (short) HIWORD(((ENLINK *) lParam)->lParam);
ClientToScreen(((NMHDR *) lParam)->hwndFrom, &pt);