diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-15 17:19:36 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-15 17:19:36 +0000 |
commit | f72d354283d7d883086a34c1f35112e22fd0197b (patch) | |
tree | 5f2730fd5193c9744307796adb3cd1d3f316d320 /protocols | |
parent | 3b2ea215ba88e87ddcc5855796e6c35dff04d705 (diff) |
Facebook: Make chat roles translatable
git-svn-id: http://svn.miranda-ng.org/main/trunk@9813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/chat.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<LPARAM>(&gce));
- gce.ptszStatus = _T("Friend");
+ gce.ptszStatus = TranslateT("Friend");
CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&gce));
- gce.ptszStatus = _T("User");
+ gce.ptszStatus = TranslateT("User");
CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&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<LPARAM>(&gce));
- gce.ptszStatus = _T("Friend");
+ gce.ptszStatus = TranslateT("Friend");
CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&gce));
- gce.ptszStatus = _T("User");
+ gce.ptszStatus = TranslateT("User");
CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&gce));
SetTopic("Omegle is a great way of meeting new friends!");
|