diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-11 19:17:47 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-11 19:17:47 +0000 |
commit | 7c63d57169b30a5397fb8e1d0929eec600372652 (patch) | |
tree | 7e4609d747abb58489f4bb211aa10dce1359e5d8 /protocols/VKontakte/src/vk_thread.cpp | |
parent | 4b94525fe5eeac649bbe9cc4dcc3cbf7c84d226c (diff) |
userinfoex: add display for vk-specific MaritalStatus
git-svn-id: http://svn.miranda-ng.org/main/trunk@16466 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 45f9862ff6..d6932c6dc2 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -387,19 +387,10 @@ MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, bool self) }
// MaritalStatus
- TCHAR * ptszMaritalStatus[] = {
- TranslateT("<not specified>"),
- TranslateT("single"),
- TranslateT("in a relationship"),
- TranslateT("engaged"),
- TranslateT("married"),
- TranslateT("it\'s complicated"),
- TranslateT("actively searching"),
- TranslateT("in love")
- };
+ BYTE cMaritalStatus[] = {0, 10, 11, 12, 20, 70, 50, 60};
- if (jnItem["relation"] && jnItem["relation"].as_int() < _countof(ptszMaritalStatus))
- setTString(hContact, "MaritalStatus", ptszMaritalStatus[jnItem["relation"].as_int()]);
+ if (jnItem["relation"] && jnItem["relation"].as_int() < _countof(cMaritalStatus))
+ setByte(hContact, "MaritalStatus", cMaritalStatus[jnItem["relation"].as_int()]);
// interests, activities, music, movies, tv, books, games, quotes
CVKInteres vkInteres[] = {
|