summaryrefslogtreecommitdiff
path: root/icqj_s7_sss_mod/icq_fieldnames.c
blob: 0e1b41fe6f3d0da2530cc5e8264c05a05f6a006b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// ---------------------------------------------------------------------------80
//                ICQ plugin for Miranda Instant Messenger
//                ________________________________________
// 
// Copyright © 2000,2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede
// Copyright © 2001,2002 Jon Keating, Richard Hughes
// Copyright © 2002,2003,2004 Martin Öberg, Sam Kothari, Robert Rainwater
// Copyright © 2004,2005,2006,2007 Joe Kucera
// Copyright © 2006,2007 [sss], chaos.persei, [sin], Faith Healer, Theif, nullbie
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// -----------------------------------------------------------------------------
//
// File name      : $Source$
// Revision       : $Revision: 43 $
// Last change on : $Date: 2007-08-20 01:51:06 +0300 (Пн, 20 авг 2007) $
// Last change by : $Author: sss123next $
//
// DESCRIPTION:
//
//  Describe me here please...
//
// -----------------------------------------------------------------------------

#include "icqoscar.h"



struct fieldnames_t interestsField[]={
  {100, LPGEN("Art")},
  {101, LPGEN("Cars")},
  {102, LPGEN("Celebrity Fans")},
  {103, LPGEN("Collections")},
  {104, LPGEN("Computers")},
  {105, LPGEN("Culture & Literature")},
  {106, LPGEN("Fitness")},
  {107, LPGEN("Games")},
  {108, LPGEN("Hobbies")},
  {109, LPGEN("ICQ - Providing Help")},
  {110, LPGEN("Internet")},
  {111, LPGEN("Lifestyle")},
  {112, LPGEN("Movies/TV")},
  {113, LPGEN("Music")},
  {114, LPGEN("Outdoor Activities")},
  {115, LPGEN("Parenting")},
  {116, LPGEN("Pets/Animals")},
  {117, LPGEN("Religion")},
  {118, LPGEN("Science/Technology")},
  {119, LPGEN("Skills")},
  {120, LPGEN("Sports")},
  {121, LPGEN("Web Design")},
  {122, LPGEN("Nature and Environment")},
  {123, LPGEN("News & Media")},
  {124, LPGEN("Government")},
  {125, LPGEN("Business & Economy")},
  {126, LPGEN("Mystics")},
  {127, LPGEN("Travel")},
  {128, LPGEN("Astronomy")},
  {129, LPGEN("Space")},
  {130, LPGEN("Clothing")},
  {131, LPGEN("Parties")},
  {132, LPGEN("Women")},
  {133, LPGEN("Social science")},
  {134, LPGEN("60's")},
  {135, LPGEN("70's")},
  {136, LPGEN("80's")},
  {137, LPGEN("50's")},
  {138, LPGEN("Finance and corporate")},
  {139, LPGEN("Entertainment")},
  {140, LPGEN("Consumer electronics")},
  {141, LPGEN("Retail stores")},
  {142, LPGEN("Health and beauty")},
  {143, LPGEN("Media")},
  {144, LPGEN("Household products")},
  {145, LPGEN("Mail order catalog")},
  {146, LPGEN("Business services")},
  {147, LPGEN("Audio and visual")},
  {148, LPGEN("Sporting and athletic")},
  {149, LPGEN("Publishing")},
  {150, LPGEN("Home automation")},
  {-1,  NULL}};

struct fieldnames_t languageField[]={
  {1, LPGEN("Arabic")},
  {2, LPGEN("Bhojpuri")},
  {3, LPGEN("Bulgarian")},
  {4, LPGEN("Burmese")},
  {5, LPGEN("Cantonese")},
  {6, LPGEN("Catalan")},
  {7, LPGEN("Chinese")},
  {8, LPGEN("Croatian")},
  {9, LPGEN("Czech")},
  {10, LPGEN("Danish")},
  {11, LPGEN("Dutch")},
  {12, LPGEN("English")},
  {13, LPGEN("Esperanto")},
  {14, LPGEN("Estonian")},
  {15, LPGEN("Farci")},
  {16, LPGEN("Finnish")},
  {17, LPGEN("French")},
  {18, LPGEN("Gaelic")},
  {19, LPGEN("German")},
  {20, LPGEN("Greek")},
  {21, LPGEN("Hebrew")},
  {22, LPGEN("Hindi")},
  {23, LPGEN("Hungarian")},
  {24, LPGEN("Icelandic")},
  {25, LPGEN("Indonesian")},
  {26, LPGEN("Italian")},
  {27, LPGEN("Japanese")},
  {28, LPGEN("Khmer")},
  {29, LPGEN("Korean")},
  {30, LPGEN("Lao")},
  {31, LPGEN("Latvian")},
  {32, LPGEN("Lithuanian")},
  {33, LPGEN("Malay")},
  {34, LPGEN("Norwegian")},
  {35, LPGEN("Polish")},
  {36, LPGEN("Portuguese")},
  {37, LPGEN("Romanian")},
  {38, LPGEN("Russian")},
  {39, LPGEN("Serbo-Croatian")},
  {40, LPGEN("Slovak")},
  {41, LPGEN("Slovenian")},
  {42, LPGEN("Somali")},
  {43, LPGEN("Spanish")},
  {44, LPGEN("Swahili")},
  {45, LPGEN("Swedish")},
  {46, LPGEN("Tagalog")},
  {47, LPGEN("Tatar")},
  {48, LPGEN("Thai")},
  {49, LPGEN("Turkish")},
  {50, LPGEN("Ukrainian")},
  {51, LPGEN("Urdu")},
  {52, LPGEN("Vietnamese")},
  {53, LPGEN("Yiddish")},
  {54, LPGEN("Yoruba")},
  {55, LPGEN("Afrikaans")},
  {56, LPGEN("Bosnian")},
  {57, LPGEN("Persian")},
  {58, LPGEN("Albanian")},
  {59, LPGEN("Armenian")},
  {60, LPGEN("Punjabi")},
  {61, LPGEN("Chamorro")},
  {62, LPGEN("Mongolian")},
  {63, LPGEN("Mandarin")},
  {64, LPGEN("Taiwaness")},
  {65, LPGEN("Macedonian")},
  {66, LPGEN("Sindhi")},
  {67, LPGEN("Welsh")},
  {68, LPGEN("Azerbaijani")},
  {69, LPGEN("Kurdish")},
  {70, LPGEN("Gujarati")},
  {71, LPGEN("Tamil")},
  {72, LPGEN("Belorussian")},
  {-1, NULL}};

struct fieldnames_t pastField[]={
  {300, LPGEN("Elementary School")},
  {301, LPGEN("High School")},
  {302, LPGEN("College")},
  {303, LPGEN("University")},
  {304, LPGEN("Military")},
  {305, LPGEN("Past Work Place")},
  {306, LPGEN("Past Organization")},
  {399, LPGEN("Other")},
  {-1,  NULL}};

struct fieldnames_t genderField[]={
  {1, LPGEN("Female")},
  {2, LPGEN("Male")},
  {-1,  NULL}};

struct fieldnames_t workField[]={
  {1, LPGEN("Academic")},
  {2, LPGEN("Administrative")},
  {3, LPGEN("Art/Entertainment")},
  {4, LPGEN("College Student")},
  {5, LPGEN("Computers")},
  {6, LPGEN("Community & Social")},
  {7, LPGEN("Education")},
  {8, LPGEN("Engineering")},
  {9, LPGEN("Financial Services")},
  {10, LPGEN("Government")},
  {11, LPGEN("High School Student")},
  {12, LPGEN("Home")},
  {13, LPGEN("ICQ - Providing Help")},
  {14, LPGEN("Law")},
  {15, LPGEN("Managerial")},
  {16, LPGEN("Manufacturing")},
  {17, LPGEN("Medical/Health")},
  {18, LPGEN("Military")},
  {19, LPGEN("Non-Government Organization")},
  {20, LPGEN("Professional")},
  {21, LPGEN("Retail")},
  {22, LPGEN("Retired")},
  {23, LPGEN("Science & Research")},
  {24, LPGEN("Sports")},
  {25, LPGEN("Technical")},
  {26, LPGEN("University Student")},
  {27, LPGEN("Web building")},
  {99, LPGEN("Other services")},
  {-1,  NULL}};

struct fieldnames_t affiliationField[]={
  {200, LPGEN("Alumni Org.")},
  {201, LPGEN("Charity Org.")},
  {202, LPGEN("Club/Social Org.")},
  {203, LPGEN("Community Org.")},
  {204, LPGEN("Cultural Org.")},
  {205, LPGEN("Fan Clubs")},
  {206, LPGEN("Fraternity/Sorority")},
  {207, LPGEN("Hobbyists Org.")},
  {208, LPGEN("International Org.")},
  {209, LPGEN("Nature and Environment Org.")},
  {210, LPGEN("Professional Org.")},
  {211, LPGEN("Scientific/Technical Org.")},
  {212, LPGEN("Self Improvement Group")},
  {213, LPGEN("Spiritual/Religious Org.")},
  {214, LPGEN("Sports Org.")},
  {215, LPGEN("Support Org.")},
  {216, LPGEN("Trade and Business Org.")},
  {217, LPGEN("Union")},
  {218, LPGEN("Volunteer Org.")},
  {299, LPGEN("Other")},
  {-1,  NULL}};

struct fieldnames_t agesField[]={
  {0x0011000D, LPGEN("13-17")},
  {0x00160012, LPGEN("18-22")},
  {0x001D0017, LPGEN("23-29")},
  {0x0027001E, LPGEN("30-39")},
  {0x00310028, LPGEN("40-49")},
  {0x003B0032, LPGEN("50-59")},
  {0x2710003C, LPGEN("60-above")},
  {-1,  NULL}};

struct fieldnames_t maritalField[]={
  {10, LPGEN("Single")},
  {11, LPGEN("Close relationships")},
  {12, LPGEN("Engaged")},
  {20, LPGEN("Married")},
  {30, LPGEN("Divorced")},
  {31, LPGEN("Separated")},
  {40, LPGEN("Widowed")},
  {-1,  NULL}};


  
char *LookupFieldNameUtf(struct fieldnames_t *table, int code, char *str, size_t strsize)
{
  int i;

  if (code != 0)
  {
    for(i = 0; table[i].code != -1 && table[i].text; i++)
    {
      if (table[i].code == code)
        return ICQTranslateUtfStatic(table[i].text, str, strsize);
    }
    
    // Tried to get unexisting field name, you have an
    // error in the data or in the table
    _ASSERT(FALSE);
  }

  return NULL;
}