From 03a0c168573277c24dbba8c82282b083bbed0e48 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2014 16:09:06 +0000 Subject: Jabber resource menu translation git-svn-id: http://svn.miranda-ng.org/main/trunk@7480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_menu.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'protocols/JabberG/src/jabber_menu.cpp') diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 14cc53f2a3..396254b83e 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -736,14 +736,15 @@ void CJabberProto::MenuInit() mi.flags = CMIF_ROOTPOPUP | CMIF_HIDDEN; m_hMenuPriorityRoot = Menu_AddProtoMenuItem(&mi); - char szName[128], srvFce[MAX_PATH + 64], *svcName = srvFce+strlen(m_szModuleName); + TCHAR szName[128]; + char srvFce[MAX_PATH + 64], *svcName = srvFce + strlen(m_szModuleName); mi.pszService = srvFce; - mi.pszName = szName; + mi.ptszName = szName; mi.position = 2000040000; - mi.flags = CMIF_CHILDPOPUP; + mi.flags = CMIF_CHILDPOPUP | CMIF_TCHAR; mi.hParentMenu = m_hMenuPriorityRoot; - mir_snprintf(srvFce, sizeof(srvFce), "%s/menuSetPriority/0", m_szModuleName); + mir_snprintf(srvFce, SIZEOF(srvFce), "%s/menuSetPriority/0", m_szModuleName); bool needServices = !ServiceExists(srvFce); if (needServices) CreateProtoServiceParam(svcName, &CJabberProto::OnMenuSetPriority, 0); @@ -757,8 +758,8 @@ void CJabberProto::MenuInit() mi.icolibItem = (steps[i] > 0) ? GetIconHandle(IDI_ARROW_UP) : GetIconHandle(IDI_ARROW_DOWN); - mir_snprintf(srvFce, sizeof(srvFce), "%s/menuSetPriority/%d", m_szModuleName, steps[i]); - mir_snprintf(szName, sizeof(szName), (steps[i] > 0) ? "Increase priority by %d" : "Decrease priority by %d", abs(steps[i])); + mir_snprintf(srvFce, SIZEOF(srvFce), "%s/menuSetPriority/%d", m_szModuleName, steps[i]); + mir_sntprintf(szName, SIZEOF(szName), (steps[i] > 0) ? TranslateT("Increase priority by %d") : TranslateT("Decrease priority by %d"), abs(steps[i])); if (needServices) CreateProtoServiceParam(svcName, &CJabberProto::OnMenuSetPriority, (LPARAM)steps[i]); -- cgit v1.2.3