diff options
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[] = {
|