summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-03 16:09:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-03 16:09:06 +0000
commit03a0c168573277c24dbba8c82282b083bbed0e48 (patch)
tree9d9a6adfcbc641745bd585ec2d4ad207cad15e49 /protocols/JabberG
parent5e0c012d677635e13cbfcf6730f2deafdc38c025 (diff)
Jabber resource menu translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@7480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_menu.cpp13
1 files changed, 7 insertions, 6 deletions
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]);