From f72d354283d7d883086a34c1f35112e22fd0197b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 15 Jul 2014 17:19:36 +0000 Subject: Facebook: Make chat roles translatable git-svn-id: http://svn.miranda-ng.org/main/trunk@9813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/chat.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index 9c3eb86388..ac909fa2ee 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -154,13 +154,13 @@ void FacebookProto::AddChatContact(const TCHAR *tchat_id, const char *id, const gce.bIsMe = !strcmp(id, facy.self_.user_id.c_str()); if (gce.bIsMe) { - gce.ptszStatus = _T("Myself"); + gce.ptszStatus = TranslateT("Myself"); } else { MCONTACT hContact = ContactIDToHContact(id); if (hContact == NULL || getByte(hContact, FACEBOOK_KEY_CONTACT_TYPE, CONTACT_NONE) != CONTACT_FRIEND) - gce.ptszStatus = _T("User"); + gce.ptszStatus = TranslateT("User"); else { - gce.ptszStatus = _T("Friend"); + gce.ptszStatus = TranslateT("Friend"); } } @@ -223,11 +223,11 @@ void FacebookProto::AddChat(const TCHAR *tid, const TCHAR *tname) GCEVENT gce = { sizeof(gce), &gcd }; // Create a user statuses - gce.ptszStatus = _T("Myself"); + gce.ptszStatus = TranslateT("Myself"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); - gce.ptszStatus = _T("Friend"); + gce.ptszStatus = TranslateT("Friend"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); - gce.ptszStatus = _T("User"); + gce.ptszStatus = TranslateT("User"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); // Finish initialization @@ -266,11 +266,11 @@ INT_PTR FacebookProto::OnJoinChat(WPARAM hContact, LPARAM suppress) // Create a group GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_ADDGROUP }; GCEVENT gce = { sizeof(gce), &gcd }; - gce.ptszStatus = _T("Myself"); + gce.ptszStatus = TranslateT("Myself"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); - gce.ptszStatus = _T("Friend"); + gce.ptszStatus = TranslateT("Friend"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); - gce.ptszStatus = _T("User"); + gce.ptszStatus = TranslateT("User"); CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast(&gce)); SetTopic("Omegle is a great way of meeting new friends!"); -- cgit v1.2.3