source: trunk/inc/prof.inc.php

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 18.2 KB
Line 
1<?
2$aPreValues = array(
3 'Country' => array(
4 'SZ' => array( 'LKey' => '__Swaziland', ),
5 'SY' => array( 'LKey' => '__Syria', ),
6 'SV' => array( 'LKey' => '__El Salvador', ),
7 'ST' => array( 'LKey' => '__Sao Tome and Principe', ),
8 'SR' => array( 'LKey' => '__Suriname', ),
9 'SO' => array( 'LKey' => '__Somalia', ),
10 'SN' => array( 'LKey' => '__Senegal', ),
11 'SM' => array( 'LKey' => '__San Marino', ),
12 'SL' => array( 'LKey' => '__Sierra Leone', ),
13 'SK' => array( 'LKey' => '__Slovakia', ),
14 'SJ' => array( 'LKey' => '__Svalbard', ),
15 'SI' => array( 'LKey' => '__Slovenia', ),
16 'SH' => array( 'LKey' => '__Saint Helena', ),
17 'SG' => array( 'LKey' => '__Singapore', ),
18 'SE' => array( 'LKey' => '__Sweden', ),
19 'SD' => array( 'LKey' => '__Sudan', ),
20 'SC' => array( 'LKey' => '__Seychelles', ),
21 'SB' => array( 'LKey' => '__Solomon Islands', ),
22 'SA' => array( 'LKey' => '__Saudi Arabia', ),
23 'RW' => array( 'LKey' => '__Rwanda', ),
24 'RU' => array( 'LKey' => '__Russia', ),
25 'RE' => array( 'LKey' => '__Reunion', ),
26 'QA' => array( 'LKey' => '__Qatar', ),
27 'PY' => array( 'LKey' => '__Paraguay', ),
28 'PW' => array( 'LKey' => '__Palau', ),
29 'PT' => array( 'LKey' => '__Portugal', ),
30 'PS' => array( 'LKey' => '__Palestinian Territory, Occupied', ),
31 'PR' => array( 'LKey' => '__Puerto Rico', ),
32 'PN' => array( 'LKey' => '__Pitcairn Islands', ),
33 'PM' => array( 'LKey' => '__Saint Pierre and Miquelon', ),
34 'PK' => array( 'LKey' => '__Pakistan', ),
35 'PL' => array( 'LKey' => '__Poland', ),
36 'PH' => array( 'LKey' => '__Philippines', ),
37 'PG' => array( 'LKey' => '__Papua New Guinea', ),
38 'PF' => array( 'LKey' => '__French Polynesia', ),
39 'PE' => array( 'LKey' => '__Peru', ),
40 'PA' => array( 'LKey' => '__Panama', ),
41 'NZ' => array( 'LKey' => '__New Zealand', ),
42 'NR' => array( 'LKey' => '__Nauru', ),
43 'NP' => array( 'LKey' => '__Nepal', ),
44 'NO' => array( 'LKey' => '__Norway', ),
45 'NL' => array( 'LKey' => '__Netherlands', ),
46 'NI' => array( 'LKey' => '__Nicaragua', ),
47 'NG' => array( 'LKey' => '__Nigeria', ),
48 'NF' => array( 'LKey' => '__Norfolk Island', ),
49 'NE' => array( 'LKey' => '__Niger', ),
50 'NC' => array( 'LKey' => '__New Caledonia', ),
51 'NA' => array( 'LKey' => '__Namibia', ),
52 'MZ' => array( 'LKey' => '__Mozambique', ),
53 'MX' => array( 'LKey' => '__Mexico', ),
54 'MW' => array( 'LKey' => '__Malawi', ),
55 'MU' => array( 'LKey' => '__Mauritius', ),
56 'MT' => array( 'LKey' => '__Malta', ),
57 'MS' => array( 'LKey' => '__Montserrat', ),
58 'MQ' => array( 'LKey' => '__Martinique', ),
59 'MR' => array( 'LKey' => '__Mauritania', ),
60 'MP' => array( 'LKey' => '__Northern Mariana Islands', ),
61 'MN' => array( 'LKey' => '__Mongolia', ),
62 'MM' => array( 'LKey' => '__Myanmar', ),
63 'ML' => array( 'LKey' => '__Mali', ),
64 'MH' => array( 'LKey' => '__Marshall Islands', ),
65 'MG' => array( 'LKey' => '__Madagascar', ),
66 'MD' => array( 'LKey' => '__Moldova', ),
67 'MC' => array( 'LKey' => '__Monaco', ),
68 'MA' => array( 'LKey' => '__Morocco', ),
69 'LY' => array( 'LKey' => '__Libya', ),
70 'LU' => array( 'LKey' => '__Luxembourg', ),
71 'LV' => array( 'LKey' => '__Latvia', ),
72 'LT' => array( 'LKey' => '__Lithuania', ),
73 'LS' => array( 'LKey' => '__Lesotho', ),
74 'LR' => array( 'LKey' => '__Liberia', ),
75 'LI' => array( 'LKey' => '__Liechtenstein', ),
76 'LK' => array( 'LKey' => '__Sri Lanka', ),
77 'LC' => array( 'LKey' => '__Saint Lucia', ),
78 'LA' => array( 'LKey' => '__Laos', ),
79 'KZ' => array( 'LKey' => '__Kazakhstan', ),
80 'KY' => array( 'LKey' => '__Cayman Islands', ),
81 'KR' => array( 'LKey' => '__Korea, South', ),
82 'KP' => array( 'LKey' => '__Korea, North', ),
83 'KN' => array( 'LKey' => '__Saint Kitts and Nevis', ),
84 'KI' => array( 'LKey' => '__Kiribati', ),
85 'KH' => array( 'LKey' => '__Cambodia', ),
86 'JP' => array( 'LKey' => '__Japan', ),
87 'JO' => array( 'LKey' => '__Jordan', ),
88 'JM' => array( 'LKey' => '__Jamaica', ),
89 'IT' => array( 'LKey' => '__Italy', ),
90 'IS' => array( 'LKey' => '__Iceland', ),
91 'IR' => array( 'LKey' => '__Iran', ),
92 'IQ' => array( 'LKey' => '__Iraq', ),
93 'IO' => array( 'LKey' => '__British Indian Ocean Territory', ),
94 'IN' => array( 'LKey' => '__India', ),
95 'IL' => array( 'LKey' => '__Israel', ),
96 'IE' => array( 'LKey' => '__Ireland', ),
97 'ID' => array( 'LKey' => '__Indonesia', ),
98 'HU' => array( 'LKey' => '__Hungary', ),
99 'HT' => array( 'LKey' => '__Haiti', ),
100 'HR' => array( 'LKey' => '__Croatia', ),
101 'HN' => array( 'LKey' => '__Honduras', ),
102 'HK' => array( 'LKey' => '__Hong Kong (SAR)', ),
103 'GY' => array( 'LKey' => '__Guyana', ),
104 'GW' => array( 'LKey' => '__Guinea-Bissau', ),
105 'GU' => array( 'LKey' => '__Guam', ),
106 'GT' => array( 'LKey' => '__Guatemala', ),
107 'GS' => array( 'LKey' => '__South Georgia and the South Sandwich Islands', ),
108 'GP' => array( 'LKey' => '__Guadeloupe', ),
109 'GN' => array( 'LKey' => '__Guinea', ),
110 'GM' => array( 'LKey' => '__The Gambia', ),
111 'GL' => array( 'LKey' => '__Greenland', ),
112 'GH' => array( 'LKey' => '__Ghana', ),
113 'GF' => array( 'LKey' => '__French Guiana', ),
114 'GE' => array( 'LKey' => '__Georgia', ),
115 'GD' => array( 'LKey' => '__Grenada', ),
116 'GB' => array( 'LKey' => '__United Kingdom', ),
117 'GA' => array( 'LKey' => '__Gabon', ),
118 'FO' => array( 'LKey' => '__Faroe Islands', ),
119 'FM' => array( 'LKey' => '__Micronesia, Federated States of', ),
120 'FK' => array( 'LKey' => '__Falkland Islands (Islas Malvinas)', ),
121 'FJ' => array( 'LKey' => '__Fiji', ),
122 'FI' => array( 'LKey' => '__Finland', ),
123 'ET' => array( 'LKey' => '__Ethiopia', ),
124 'ES' => array( 'LKey' => '__Spain', ),
125 'ER' => array( 'LKey' => '__Eritrea', ),
126 'EH' => array( 'LKey' => '__Western Sahara', ),
127 'EG' => array( 'LKey' => '__Egypt', ),
128 'EE' => array( 'LKey' => '__Estonia', ),
129 'EC' => array( 'LKey' => '__Ecuador', ),
130 'DZ' => array( 'LKey' => '__Algeria', ),
131 'DO' => array( 'LKey' => '__Dominican Republic', ),
132 'DM' => array( 'LKey' => '__Dominica', ),
133 'DK' => array( 'LKey' => '__Denmark', ),
134 'DE' => array( 'LKey' => '__Germany', ),
135 'DJ' => array( 'LKey' => '__Djibouti', ),
136 'CY' => array( 'LKey' => '__Cyprus', ),
137 'CX' => array( 'LKey' => '__Christmas Island', ),
138 'CV' => array( 'LKey' => '__Cape Verde', ),
139 'CU' => array( 'LKey' => '__Cuba', ),
140 'CR' => array( 'LKey' => '__Costa Rica', ),
141 'CO' => array( 'LKey' => '__Colombia', ),
142 'CN' => array( 'LKey' => '__China', ),
143 'CL' => array( 'LKey' => '__Chile', ),
144 'CK' => array( 'LKey' => '__Cook Islands', ),
145 'CI' => array( 'LKey' => '__Cote d\'Ivoire', ),
146 'CH' => array( 'LKey' => '__Switzerland', ),
147 'CG' => array( 'LKey' => '__Congo, Republic of the', ),
148 'CF' => array( 'LKey' => '__Central African Republic', ),
149 'CD' => array( 'LKey' => '__Congo, Democratic Republic of the', ),
150 'CC' => array( 'LKey' => '__Cocos (Keeling) Islands', ),
151 'CA' => array( 'LKey' => '__Canada', ),
152 'BY' => array( 'LKey' => '__Belarus', ),
153 'BW' => array( 'LKey' => '__Botswana', ),
154 'BV' => array( 'LKey' => '__Bouvet Island', ),
155 'BT' => array( 'LKey' => '__Bhutan', ),
156 'BS' => array( 'LKey' => '__The Bahamas', ),
157 'BR' => array( 'LKey' => '__Brazil', ),
158 'BO' => array( 'LKey' => '__Bolivia', ),
159 'BN' => array( 'LKey' => '__Brunei Darussalam', ),
160 'BM' => array( 'LKey' => '__Bermuda', ),
161 'BJ' => array( 'LKey' => '__Benin', ),
162 'BH' => array( 'LKey' => '__Bahrain', ),
163 'BG' => array( 'LKey' => '__Bulgaria', ),
164 'BF' => array( 'LKey' => '__Burkina Faso', ),
165 'BE' => array( 'LKey' => '__Belgium', ),
166 'BD' => array( 'LKey' => '__Bangladesh', ),
167 'BA' => array( 'LKey' => '__Bosnia and Herzegovina', ),
168 'BB' => array( 'LKey' => '__Barbados', ),
169 'AZ' => array( 'LKey' => '__Azerbaijan', ),
170 'AW' => array( 'LKey' => '__Aruba', ),
171 'AU' => array( 'LKey' => '__Australia', ),
172 'AT' => array( 'LKey' => '__Austria', ),
173 'AR' => array( 'LKey' => '__Argentina', ),
174 'AS' => array( 'LKey' => '__American Samoa', ),
175 'AQ' => array( 'LKey' => '__Antarctica', ),
176 'AO' => array( 'LKey' => '__Angola', ),
177 'AN' => array( 'LKey' => '__Netherlands Antilles', ),
178 'AM' => array( 'LKey' => '__Armenia', ),
179 'AL' => array( 'LKey' => '__Albania', ),
180 'AG' => array( 'LKey' => '__Antigua and Barbuda', ),
181 'AF' => array( 'LKey' => '__Afghanistan', ),
182 'AE' => array( 'LKey' => '__United Arab Emirates', ),
183 'AD' => array( 'LKey' => '__Andorra', ),
184 'RO' => array( 'LKey' => '__Romania', ),
185 'OM' => array( 'LKey' => '__Oman', ),
186 'NU' => array( 'LKey' => '__Niue', ),
187 'MY' => array( 'LKey' => '__Malaysia', ),
188 'MV' => array( 'LKey' => '__Maldives', ),
189 'MO' => array( 'LKey' => '__Macao', ),
190 'MK' => array( 'LKey' => '__Macedonia, The Former Yugoslav Republic of', ),
191 'LB' => array( 'LKey' => '__Lebanon', ),
192 'KW' => array( 'LKey' => '__Kuwait', ),
193 'KM' => array( 'LKey' => '__Comoros', ),
194 'KG' => array( 'LKey' => '__Kyrgyzstan', ),
195 'KE' => array( 'LKey' => '__Kenya', ),
196 'HM' => array( 'LKey' => '__Heard Island and McDonald Islands', ),
197 'GR' => array( 'LKey' => '__Greece', ),
198 'GQ' => array( 'LKey' => '__Equatorial Guinea', ),
199 'GI' => array( 'LKey' => '__Gibraltar', ),
200 'FR' => array( 'LKey' => '__France', ),
201 'CZ' => array( 'LKey' => '__Czech Republic', ),
202 'CM' => array( 'LKey' => '__Cameroon', ),
203 'BZ' => array( 'LKey' => '__Belize', ),
204 'BI' => array( 'LKey' => '__Burundi', ),
205 'AI' => array( 'LKey' => '__Anguilla', ),
206 'TC' => array( 'LKey' => '__Turks and Caicos Islands', ),
207 'TD' => array( 'LKey' => '__Chad', ),
208 'TF' => array( 'LKey' => '__French Southern and Antarctic Lands', ),
209 'TG' => array( 'LKey' => '__Togo', ),
210 'TH' => array( 'LKey' => '__Thailand', ),
211 'TJ' => array( 'LKey' => '__Tajikistan', ),
212 'TK' => array( 'LKey' => '__Tokelau', ),
213 'TL' => array( 'LKey' => '__East Timor', ),
214 'TM' => array( 'LKey' => '__Turkmenistan', ),
215 'TN' => array( 'LKey' => '__Tunisia', ),
216 'TO' => array( 'LKey' => '__Tonga', ),
217 'TR' => array( 'LKey' => '__Turkey', ),
218 'TT' => array( 'LKey' => '__Trinidad and Tobago', ),
219 'TV' => array( 'LKey' => '__Tuvalu', ),
220 'TW' => array( 'LKey' => '__Taiwan', ),
221 'TZ' => array( 'LKey' => '__Tanzania', ),
222 'UA' => array( 'LKey' => '__Ukraine', ),
223 'UG' => array( 'LKey' => '__Uganda', ),
224 'UM' => array( 'LKey' => '__United States Minor Outlying Islands', ),
225 'US' => array( 'LKey' => '__United States', ),
226 'UY' => array( 'LKey' => '__Uruguay', ),
227 'UZ' => array( 'LKey' => '__Uzbekistan', ),
228 'VA' => array( 'LKey' => '__Holy See (Vatican City)', ),
229 'VC' => array( 'LKey' => '__Saint Vincent and the Grenadines', ),
230 'VE' => array( 'LKey' => '__Venezuela', ),
231 'VG' => array( 'LKey' => '__British Virgin Islands', ),
232 'VI' => array( 'LKey' => '__Virgin Islands', ),
233 'VN' => array( 'LKey' => '__Vietnam', ),
234 'VU' => array( 'LKey' => '__Vanuatu', ),
235 'WF' => array( 'LKey' => '__Wallis and Futuna', ),
236 'WS' => array( 'LKey' => '__Samoa', ),
237 'YE' => array( 'LKey' => '__Yemen', ),
238 'YT' => array( 'LKey' => '__Mayotte', ),
239 'YU' => array( 'LKey' => '__Yugoslavia', ),
240 'ZA' => array( 'LKey' => '__South Africa', ),
241 'ZM' => array( 'LKey' => '__Zambia', ),
242 'ZW' => array( 'LKey' => '__Zimbabwe', ),
243 ),
244 'Sex' => array(
245 'male' => array( 'LKey' => '_Male', 'LKey2' => '_LookinMale', ),
246 'female' => array( 'LKey' => '_Female', 'LKey2' => '_LookinFemale', ),
247 ),
248 'Height' => array(
249 '1' => array( 'LKey' => '__4\'7\" (140cm) or below', ),
250 '2' => array( 'LKey' => '__4\'8\" - 4\'11\" (141-150cm)', ),
251 '3' => array( 'LKey' => '__5\'0\" - 5\'3\" (151-160cm)', ),
252 '4' => array( 'LKey' => '__5\'4\" - 5\'7\" (161-170cm)', ),
253 '5' => array( 'LKey' => '__5\'8\" - 5\'11\" (171-180cm)', ),
254 '6' => array( 'LKey' => '__6\'0\" - 6\'3\" (181-190cm)', ),
255 '7' => array( 'LKey' => '__6\'4\" (191cm) or above', ),
256 ),
257 'BodyType' => array(
258 '1' => array( 'LKey' => '__Average', ),
259 '2' => array( 'LKey' => '__Ample', ),
260 '3' => array( 'LKey' => '__Athletic', ),
261 '4' => array( 'LKey' => '__Cuddly', ),
262 '5' => array( 'LKey' => '__Slim', ),
263 '6' => array( 'LKey' => '__Very Cuddly', ),
264 ),
265 'Religion' => array(
266 '1' => array( 'LKey' => '__Adventist', ),
267 '2' => array( 'LKey' => '__Agnostic', ),
268 '3' => array( 'LKey' => '__Atheist', ),
269 '4' => array( 'LKey' => '__Baptist', ),
270 '5' => array( 'LKey' => '__Buddhist', ),
271 '6' => array( 'LKey' => '__Caodaism', ),
272 '7' => array( 'LKey' => '__Catholic', ),
273 '8' => array( 'LKey' => '__Christian', ),
274 '9' => array( 'LKey' => '__Hindu', ),
275 '10' => array( 'LKey' => '__Iskcon', ),
276 '11' => array( 'LKey' => '__Jainism', ),
277 '12' => array( 'LKey' => '__Jewish', ),
278 '13' => array( 'LKey' => '__Methodist', ),
279 '14' => array( 'LKey' => '__Mormon', ),
280 '15' => array( 'LKey' => '__Moslem', ),
281 '16' => array( 'LKey' => '__Orthodox', ),
282 '17' => array( 'LKey' => '__Pentecostal', ),
283 '18' => array( 'LKey' => '__Protestant', ),
284 '19' => array( 'LKey' => '__Quaker', ),
285 '20' => array( 'LKey' => '__Scientology', ),
286 '21' => array( 'LKey' => '__Shinto', ),
287 '22' => array( 'LKey' => '__Sikhism', ),
288 '23' => array( 'LKey' => '__Spiritual', ),
289 '24' => array( 'LKey' => '__Taoism', ),
290 '25' => array( 'LKey' => '__Wiccan', ),
291 '26' => array( 'LKey' => '__Other', ),
292 ),
293 'Ethnicity' => array(
294 '1' => array( 'LKey' => '__African', ),
295 '2' => array( 'LKey' => '__African American', ),
296 '3' => array( 'LKey' => '__Asian', ),
297 '4' => array( 'LKey' => '__Caucasian', ),
298 '5' => array( 'LKey' => '__East Indian', ),
299 '6' => array( 'LKey' => '__Hispanic', ),
300 '7' => array( 'LKey' => '__Indian', ),
301 '8' => array( 'LKey' => '__Latino', ),
302 '9' => array( 'LKey' => '__Mediterranean', ),
303 '10' => array( 'LKey' => '__Middle Eastern', ),
304 '11' => array( 'LKey' => '__Mixed', ),
305 ),
306 'MaritalStatus' => array(
307 '1' => array( 'LKey' => '__Single', ),
308 '2' => array( 'LKey' => '__Attached', ),
309 '3' => array( 'LKey' => '__Divorced', ),
310 '4' => array( 'LKey' => '__Married', ),
311 '5' => array( 'LKey' => '__Separated', ),
312 '6' => array( 'LKey' => '__Widow', ),
313 ),
314 'Language' => array(
315 '0' => array( 'LKey' => '__English', ),
316 '1' => array( 'LKey' => '__Afrikaans', ),
317 '2' => array( 'LKey' => '__Arabic', ),
318 '3' => array( 'LKey' => '__Bulgarian', ),
319 '4' => array( 'LKey' => '__Burmese', ),
320 '5' => array( 'LKey' => '__Cantonese', ),
321 '6' => array( 'LKey' => '__Croatian', ),
322 '7' => array( 'LKey' => '__Danish', ),
323 '8' => array( 'LKey' => '__Dutch', ),
324 '9' => array( 'LKey' => '__Esperanto', ),
325 '10' => array( 'LKey' => '__Estonian', ),
326 '11' => array( 'LKey' => '__Finnish', ),
327 '12' => array( 'LKey' => '__French', ),
328 '13' => array( 'LKey' => '__German', ),
329 '14' => array( 'LKey' => '__Greek', ),
330 '15' => array( 'LKey' => '__Gujrati', ),
331 '16' => array( 'LKey' => '__Hebrew', ),
332 '17' => array( 'LKey' => '__Hindi', ),
333 '18' => array( 'LKey' => '__Hungarian', ),
334 '19' => array( 'LKey' => '__Icelandic', ),
335 '20' => array( 'LKey' => '__Indian', ),
336 '21' => array( 'LKey' => '__Indonesian', ),
337 '22' => array( 'LKey' => '__Italian', ),
338 '23' => array( 'LKey' => '__Japanese', ),
339 '24' => array( 'LKey' => '__Korean', ),
340 '25' => array( 'LKey' => '__Latvian', ),
341 '26' => array( 'LKey' => '__Lithuanian', ),
342 '27' => array( 'LKey' => '__Malay', ),
343 '28' => array( 'LKey' => '__Mandarin', ),
344 '29' => array( 'LKey' => '__Marathi', ),
345 '30' => array( 'LKey' => '__Moldovian', ),
346 '31' => array( 'LKey' => '__Nepalese', ),
347 '32' => array( 'LKey' => '__Norwegian', ),
348 '33' => array( 'LKey' => '__Persian', ),
349 '34' => array( 'LKey' => '__Polish', ),
350 '35' => array( 'LKey' => '__Portuguese', ),
351 '36' => array( 'LKey' => '__Punjabi', ),
352 '37' => array( 'LKey' => '__Romanian', ),
353 '38' => array( 'LKey' => '__Russian', ),
354 '39' => array( 'LKey' => '__Serbian', ),
355 '40' => array( 'LKey' => '__Spanish', ),
356 '41' => array( 'LKey' => '__Swedish', ),
357 '42' => array( 'LKey' => '__Tagalog', ),
358 '43' => array( 'LKey' => '__Taiwanese', ),
359 '44' => array( 'LKey' => '__Tamil', ),
360 '45' => array( 'LKey' => '__Telugu', ),
361 '46' => array( 'LKey' => '__Thai', ),
362 '47' => array( 'LKey' => '__Tongan', ),
363 '48' => array( 'LKey' => '__Turkish', ),
364 '49' => array( 'LKey' => '__Ukrainian', ),
365 '50' => array( 'LKey' => '__Urdu', ),
366 '51' => array( 'LKey' => '__Vietnamese', ),
367 '52' => array( 'LKey' => '__Visayan', ),
368 ),
369 'Education' => array(
370 '1' => array( 'LKey' => '__High School graduate', ),
371 '2' => array( 'LKey' => '__Some college', ),
372 '3' => array( 'LKey' => '__College student', ),
373 '4' => array( 'LKey' => '__AA (2 years college)', ),
374 '5' => array( 'LKey' => '__BA/BS (4 years college)', ),
375 '6' => array( 'LKey' => '__Some grad school', ),
376 '7' => array( 'LKey' => '__Grad school student', ),
377 '8' => array( 'LKey' => '__MA/MS/MBA', ),
378 '9' => array( 'LKey' => '__PhD/Post doctorate', ),
379 '10' => array( 'LKey' => '__JD', ),
380 ),
381 'Income' => array(
382 '1' => array( 'LKey' => '__$10,000/year and less', ),
383 '2' => array( 'LKey' => '__$10,000-$30,000/year', ),
384 '3' => array( 'LKey' => '__$30,000-$50,000/year', ),
385 '4' => array( 'LKey' => '__$50,000-$70,000/year', ),
386 '5' => array( 'LKey' => '__$70,000/year and more', ),
387 ),
388 'Smoker' => array(
389 '1' => array( 'LKey' => '__No', ),
390 '2' => array( 'LKey' => '__Rarely', ),
391 '3' => array( 'LKey' => '__Often', ),
392 '4' => array( 'LKey' => '__Very often', ),
393 ),
394 'Drinker' => array(
395 '1' => array( 'LKey' => '__No', ),
396 '2' => array( 'LKey' => '__Rarely', ),
397 '3' => array( 'LKey' => '__Often', ),
398 '4' => array( 'LKey' => '__Very often', ),
399 ),
400);
401
402$aPreValues['Country'] = sortArrByLang( $aPreValues['Country'] );
403
404function sortArrByLang( $aArr ) {
405 if( !function_exists( '_t' ) )
406 return $aArr;
407
408 $aSortArr = array();
409 foreach( $aArr as $sKey => $aValue )
410 $aSortArr[$sKey] = _t( $aValue['LKey'] );
411
412 asort( $aSortArr );
413
414 $aNewArr = array();
415 foreach( $aSortArr as $sKey => $sVal )
416 $aNewArr[$sKey] = $aArr[$sKey];
417
418 return $aNewArr;
419}
420
Note: See TracBrowser for help on using the repository browser.