Projet

Général

Profil

Paste
Télécharger (29,1 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / addressfield / addressfield.administrative_areas.inc @ fc3d89c3

1 f066bdb5 Assos Assos
<?php
2
3
/**
4
 * Returns the predefined administrative areas.
5
 *
6
 * @param $country_code
7
 *   The country code for which administrative areas should be returned.
8
 *
9
 * @return
10
 *   An array of predefined administrative areas for the given country code, or
11
 *   NULL if not found.
12
 */
13
function addressfield_get_administrative_areas($country_code) {
14 fd5a8e62 Assos Assos
  // Maintain a static cache to avoid passing the administrative areas through
15
  // t() more than once per request.
16
  $administrative_areas = &drupal_static(__FUNCTION__, array());
17
  if (empty($administrative_areas)) {
18
    // Get the default administrative areas.
19
    $administrative_areas = _addressfield_get_administrative_areas_defaults();
20
21
    // Allow other modules to alter the administrative areas.
22
    drupal_alter('addressfield_administrative_areas', $administrative_areas);
23
  }
24
25
  return isset($administrative_areas[$country_code]) ? $administrative_areas[$country_code] : NULL;
26
}
27
28
/**
29
 * Provides the default administrative areas.
30
 */
31
function _addressfield_get_administrative_areas_defaults() {
32
  // To avoid needless pollution of the strings list we only pass to t()
33
  // those administrative areas that are in English (or a latin transcription),
34
  // and belong to a country that either has multiple official languages (CA)
35
  // or uses a non-latin script (AE, CN, JP, KR, UA, RU, etc).
36
  // No translation is expected in other cases.
37 f066bdb5 Assos Assos
  $administrative_areas = array();
38
  $administrative_areas['AE'] = array(
39
    'AZ' => t('Abu Dhabi'),
40
    'FU' => t('Fujairah'),
41 9d13637e Assos Assos
    'UQ' => t('Umm al-Quwain'),
42 f066bdb5 Assos Assos
    'SH' => t('Sharjah'),
43
    'DU' => t('Dubai'),
44
    'RK' => t('Ras al-Khaimah'),
45 9d13637e Assos Assos
    'AJ' => t('Ajmān'),
46 f066bdb5 Assos Assos
  );
47
  $administrative_areas['AR'] = array(
48 fd5a8e62 Assos Assos
    'B' => 'Buenos Aires',
49
    'K' => 'Catamarca',
50
    'H' => 'Chaco',
51
    'U' => 'Chubut',
52
    'C' => 'Ciudad de Buenos Aires',
53
    'X' => 'Córdoba',
54
    'W' => 'Corrientes',
55
    'E' => 'Entre Ríos',
56
    'P' => 'Formosa',
57
    'Y' => 'Jujuy',
58
    'L' => 'La Pampa',
59
    'F' => 'La Rioja',
60
    'M' => 'Mendoza',
61
    'N' => 'Misiones',
62
    'Q' => 'Neuquén',
63
    'R' => 'Río Negro',
64
    'A' => 'Salta',
65
    'J' => 'San Juan',
66
    'D' => 'San Luis',
67
    'Z' => 'Santa Cruz',
68
    'S' => 'Santa Fe',
69
    'G' => 'Santiago del Estero',
70
    'V' => 'Tierra del Fuego',
71
    'T' => 'Tucumán',
72 f066bdb5 Assos Assos
  );
73
  $administrative_areas['AU'] = array(
74 fd5a8e62 Assos Assos
    'ACT' => 'Australian Capital Territory',
75
    'NSW' => 'New South Wales',
76
    'NT' => 'Northern Territory',
77
    'QLD' => 'Queensland',
78
    'SA' => 'South Australia',
79
    'TAS' => 'Tasmania',
80
    'VIC' => 'Victoria',
81
    'WA' => 'Western Australia',
82 f066bdb5 Assos Assos
  );
83
  $administrative_areas['BR'] = array(
84 fd5a8e62 Assos Assos
    'AC' => 'Acre',
85
    'AL' => 'Alagoas',
86
    'AM' => 'Amazonas',
87
    'AP' => 'Amapá',
88
    'BA' => 'Bahia',
89
    'CE' => 'Ceará',
90
    'DF' => 'Distrito Federal',
91
    'ES' => 'Espírito Santo',
92
    'GO' => 'Goiás',
93
    'MA' => 'Maranhão',
94
    'MG' => 'Minas Gerais',
95
    'MS' => 'Mato Grosso do Sul',
96
    'MT' => 'Mato Grosso',
97
    'PA' => 'Pará',
98
    'PB' => 'Paraíba',
99
    'PE' => 'Pernambuco',
100
    'PI' => 'Piauí',
101
    'PR' => 'Paraná',
102
    'RJ' => 'Rio de Janeiro',
103
    'RN' => 'Rio Grande do Norte',
104
    'RO' => 'Rondônia',
105
    'RR' => 'Roraima',
106
    'RS' => 'Rio Grande do Sul',
107
    'SC' => 'Santa Catarina',
108
    'SE' => 'Sergipe',
109
    'SP' => 'São Paulo',
110
    'TO' => 'Tocantins',
111 f066bdb5 Assos Assos
  );
112
  $administrative_areas['CA'] = array(
113
    'AB' => t('Alberta'),
114
    'BC' => t('British Columbia'),
115
    'MB' => t('Manitoba'),
116
    'NB' => t('New Brunswick'),
117
    'NL' => t('Newfoundland and Labrador'),
118
    'NT' => t('Northwest Territories'),
119
    'NS' => t('Nova Scotia'),
120
    'NU' => t('Nunavut'),
121
    'ON' => t('Ontario'),
122
    'PE' => t('Prince Edward Island'),
123
    'QC' => t('Quebec'),
124
    'SK' => t('Saskatchewan'),
125
    'YT' => t('Yukon Territory'),
126
  );
127
  $administrative_areas['CL'] = array(
128 fd5a8e62 Assos Assos
    'AI' => 'Aysén del General Carlos Ibáñez del Campo',
129
    'AN' => 'Antofagasta',
130
    'AR' => 'Araucanía',
131
    'AP' => 'Arica y Parinacota',
132
    'AT' => 'Atacama',
133
    'BI' => 'Biobío',
134
    'CO' => 'Coquimbo',
135
    'LI' => 'Libertador General Bernardo O\'Higgins',
136
    'LL' => 'Los Lagos',
137
    'LR' => 'Los Ríos',
138
    'MA' => 'Magallanes y de la Antártica Chilena',
139
    'ML' => 'Maule',
140
    'RM' => 'Metropolitana de Santiago',
141
    'TA' => 'Tarapacá',
142
    'VS' => 'Valparaíso',
143 f066bdb5 Assos Assos
  );
144
  $administrative_areas['CN'] = array(
145
    '34' => t('Anhui Sheng'),
146
    '92' => t('Macau'),
147
    '11' => t('Beijing Shi'),
148
    '50' => t('Chongqing Shi'),
149
    '35' => t('Fujian Sheng'),
150
    '62' => t('Gansu Sheng'),
151
    '44' => t('Guangdong Sheng'),
152
    '45' => t('Guangxi Zhuangzuzizhiqu'),
153
    '52' => t('Guizhou Sheng'),
154
    '46' => t('Hainan Sheng'),
155
    '13' => t('Hebei Sheng'),
156
    '41' => t('Henan Sheng'),
157
    '23' => t('Heilongjiang Sheng'),
158
    '42' => t('Hubei Sheng'),
159
    '43' => t('Hunan Sheng'),
160
    '22' => t('Jilin Sheng'),
161
    '32' => t('Jiangsu Sheng'),
162
    '36' => t('Jiangxi Sheng'),
163
    '21' => t('Liaoning Sheng'),
164
    '15' => t('Neimenggu Zizhiqu'),
165
    '64' => t('Ningxia Huizuzizhiqu'),
166
    '63' => t('Qinghai Sheng'),
167
    '37' => t('Shandong Sheng'),
168
    '14' => t('Shanxi Sheng'),
169
    '61' => t('Shaanxi Sheng'),
170
    '31' => t('Shanghai Shi'),
171
    '51' => t('Sichuan Sheng'),
172
    '71' => t('Taiwan'),
173
    '12' => t('Tianjin Shi'),
174
    '54' => t('Xizang Zizhiqu'),
175
    '91' => t('Hong Kong'),
176
    '65' => t('Xinjiang Weiwuerzizhiqu'),
177
    '53' => t('Yunnan Sheng'),
178
    '33' => t('Zhejiang Sheng'),
179
  );
180
  $administrative_areas['CO'] = array(
181 fd5a8e62 Assos Assos
    'AMA' => 'Amazonas',
182
    'ANT' => 'Antioquia',
183
    'ARA' => 'Arauca',
184
    'ATL' => 'Atlántico',
185
    'BOL' => 'Bolívar',
186
    'BOY' => 'Boyacá',
187
    'CAL' => 'Caldas',
188
    'CAQ' => 'Caquetá',
189
    'CAS' => 'Casanare',
190
    'CAU' => 'Cauca',
191
    'CES' => 'Cesar',
192
    'COR' => 'Córdoba',
193
    'CUN' => 'Cundinamarca',
194
    'CHO' => 'Chocó',
195
    'GUA' => 'Guainía',
196
    'GUV' => 'Guaviare',
197
    'HUI' => 'Huila',
198
    'LAG' => 'La Guajira',
199
    'MAG' => 'Magdalena',
200
    'MET' => 'Meta',
201
    'NAR' => 'Nariño',
202
    'NSA' => 'Norte de Santander',
203
    'PUT' => 'Putumayo',
204
    'QUI' => 'Quindío',
205
    'RIS' => 'Risaralda',
206
    'SAP' => 'San Andrés, Providencia y Santa Catalina',
207
    'SAN' => 'Santander',
208
    'SUC' => 'Sucre',
209
    'TOL' => 'Tolima',
210
    'VAC' => 'Valle del Cauca',
211
    'VAU' => 'Vaupés',
212
    'VID' => 'Vichada',
213 f066bdb5 Assos Assos
  );
214 9d13637e Assos Assos
  $administrative_areas['EE'] = array(
215 fd5a8e62 Assos Assos
    '37' => 'Harjumaa',
216
    '39' => 'Hiiumaa',
217
    '44' => 'Ida-Virumaa',
218
    '49' => 'Jõgevamaa',
219
    '51' => 'Järvamaa',
220
    '57' => 'Läänemaa',
221
    '59' => 'Lääne-Virumaa',
222
    '65' => 'Põlvamaa',
223
    '67' => 'Pärnumaa',
224
    '70' => 'Raplamaa',
225
    '74' => 'Saaremaa',
226
    '78' => 'Tartumaa',
227
    '82' => 'Valgamaa',
228
    '84' => 'Viljandimaa',
229
    '86' => 'Võrumaa',
230 9d13637e Assos Assos
  );
231 f066bdb5 Assos Assos
  $administrative_areas['EG'] = array(
232
    'ALX' => t('Alexandria'),
233
    'ASN' => t('Aswan'),
234
    'AST' => t('Asyut'),
235
    'BH' => t('Beheira'),
236
    'BNS' => t('Beni Suef'),
237
    'C' => t('Cairo'),
238
    'DK' => t('Dakahlia'),
239
    'DT' => t('Damietta'),
240
    'FYM' => t('Faiyum'),
241
    'GH' => t('Gharbia'),
242
    'GZ' => t('Giza'),
243
    'IS' => t('Ismailia'),
244
    'KFS' => t('Kafr el-Sheikh'),
245
    'MT' => t('Matruh'),
246
    'MN' => t('Minya'),
247
    'MNF' => t('Monufia'),
248
    'WAD' => t('New Valley'),
249
    'SIN' => t('North Sinai'),
250
    'PTS' => t('Port Said'),
251
    'KB' => t('Qalyubia'),
252
    'KN' => t('Qena'),
253
    'BA' => t('Red Sea'),
254
    'SHR' => t('Sharqia'),
255
    'SHG' => t('Sohag'),
256
    'JS' => t('South Sinai'),
257
    'SUZ' => t('Suez'),
258
    'LX' => t('Luxor'),
259
  );
260
  $administrative_areas['ES'] = array(
261 fd5a8e62 Assos Assos
    'C' => "A Coruña",
262
    'VI' => 'Alava',
263
    'AB' => 'Albacete',
264
    'A' => 'Alicante',
265
    'AL' => "Almería",
266
    'O' => 'Asturias',
267
    'AV' => "Ávila",
268
    'BA' => 'Badajoz',
269
    'PM' => 'Baleares',
270
    'B' => 'Barcelona',
271
    'BU' => 'Burgos',
272
    'CC' => "Cáceres",
273
    'CA' => "Cádiz",
274
    'S' => 'Cantabria',
275
    'CS' => "Castellón",
276
    'CE' => 'Ceuta',
277
    'CR' => 'Ciudad Real',
278
    'CO' => "Córdoba",
279
    'CU' => 'Cuenca',
280
    'GI' => 'Girona',
281
    'GR' => 'Granada',
282
    'GU' => 'Guadalajara',
283
    'SS' => "Guipúzcoa",
284
    'H' => 'Huelva',
285
    'HU' => 'Huesca',
286
    'J' => "Jaén",
287
    'LO' => 'La Rioja',
288
    'GC' => 'Las Palmas',
289
    'LE' => "León",
290
    'L' => "Lleida",
291
    'LU' => 'Lugo',
292
    'M' => 'Madrid',
293
    'MA' => "Málaga",
294
    'ML' => 'Melilla',
295
    'MU' => 'Murcia',
296
    'NA' => 'Navarra',
297
    'OR' => 'Ourense',
298
    'P' => 'Palencia',
299
    'PO' => 'Pontevedra',
300
    'SA' => 'Salamanca',
301
    'TF' => 'Santa Cruz de Tenerife',
302
    'SG' => 'Segovia',
303
    'SE' => 'Sevilla',
304
    'SO' => 'Soria',
305
    'T' => 'Tarragona',
306
    'TE' => 'Teruel',
307
    'TO' => 'Toledo',
308
    'V' => 'Valencia',
309
    'VA' => 'Valladolid',
310
    'BI' => 'Vizcaya',
311
    'ZA' => 'Zamora',
312
    'Z' => 'Zaragoza',
313 f066bdb5 Assos Assos
  );
314
  $administrative_areas['HK'] = array(
315
    // HK subdivisions have no ISO codes assigned.
316
    'Kowloon' => t('Kowloon'),
317
    'Hong Kong Island' => t('Hong Kong Island'),
318
    'New Territories' => t('New Territories'),
319
  );
320
  $administrative_areas['ID'] = array(
321
    'AC' => t('Aceh'),
322
    'BA' => t('Bali'),
323
    'BB' => t('Bangka Belitung'),
324
    'BT' => t('Banten'),
325
    'BE' => t('Bengkulu'),
326
    'JK' => t('DKI Jakarta'),
327
    'YO' => t('D.I. Yogyakarta'),
328
    'GO' => t('Gorontalo'),
329
    'JA' => t('Jambi'),
330
    'JB' => t('Jawa Barat'),
331
    'JT' => t('Jawa Tengah'),
332
    'JI' => t('Jawa Timur'),
333
    'KB' => t('Kalimantan Barat'),
334
    'KS' => t('Kalimantan Selatan'),
335
    'KT' => t('Kalimantan Tengah'),
336
    'KI' => t('Kalimantan Timur'),
337
    'KR' => t('Kepulauan Riau'),
338
    'LA' => t('Lampung'),
339
    'MA' => t('Maluku'),
340
    'MU' => t('Maluku Utara'),
341
    'NB' => t('Nusa Tenggara Barat'),
342
    'NT' => t('Nusa Tenggara Timur'),
343
    'PA' => t('Papua'),
344
    'PB' => t('Papua Barat'),
345
    'RI' => t('Riau'),
346
    'SR' => t('Sulawesi Barat'),
347
    'SN' => t('Sulawesi Selatan'),
348
    'ST' => t('Sulawesi Tengah'),
349
    'SG' => t('Sulawesi Tenggara'),
350
    'SA' => t('Sulawesi Utara'),
351
    'SB' => t('Sumatera Barat'),
352
    'SS' => t('Sumatera Selatan'),
353
    'SU' => t('Sumatera Utara'),
354
  );
355
  $administrative_areas['IE'] = array(
356 fd5a8e62 Assos Assos
    'CW' => 'Co Carlow',
357
    'CN' => 'Co Cavan',
358
    'CE' => 'Co Clare',
359
    'CO' => 'Co Cork',
360
    'DL' => 'Co Donegal',
361
    'D' => 'Co Dublin',
362
    'D1' => 'Dublin 1',
363
    'D2' => 'Dublin 2',
364
    'D3' => 'Dublin 3',
365
    'D4' => 'Dublin 4',
366
    'D5' => 'Dublin 5',
367
    'D6' => 'Dublin 6',
368
    'D6W' => 'Dublin 6w',
369
    'D7' => 'Dublin 7',
370
    'D8' => 'Dublin 8',
371
    'D9' => 'Dublin 9',
372
    'D10' => 'Dublin 10',
373
    'D11' => 'Dublin 11',
374
    'D12' => 'Dublin 12',
375
    'D13' => 'Dublin 13',
376
    'D14' => 'Dublin 14',
377
    'D15' => 'Dublin 15',
378
    'D16' => 'Dublin 16',
379
    'D17' => 'Dublin 17',
380
    'D18' => 'Dublin 18',
381
    'D19' => 'Dublin 19',
382
    'D20' => 'Dublin 20',
383
    'D21' => 'Dublin 21',
384
    'D22' => 'Dublin 22',
385
    'D23' => 'Dublin 23',
386
    'D24' => 'Dublin 24',
387
    'G' => 'Co Galway',
388
    'KY' => 'Co Kerry',
389
    'KE' => 'Co Kildare',
390
    'KK' => 'Co Kilkenny',
391
    'LS' => 'Co Laois',
392
    'LM' => 'Co Leitrim',
393
    'LK' => 'Co Limerick',
394
    'LD' => 'Co Longford',
395
    'LH' => 'Co Louth',
396
    'MO' => 'Co Mayo',
397
    'MH' => 'Co Meath',
398
    'MN' => 'Co Monaghan',
399
    'OY' => 'Co Offaly',
400
    'RN' => 'Co Roscommon',
401
    'SO' => 'Co Sligo',
402
    'TA' => 'Co Tipperary',
403
    'WD' => 'Co Waterford',
404
    'WH' => 'Co Westmeath',
405
    'WX' => 'Co Wexford',
406
    'WW' => 'Co Wicklow',
407 f066bdb5 Assos Assos
  );
408
  $administrative_areas['IN'] = array(
409
    'AP' => t('Andhra Pradesh'),
410
    'AR' => t('Arunachal Pradesh'),
411
    'AS' => t('Assam'),
412
    'BR' => t('Bihar'),
413
    'CT' => t('Chhattisgarh'),
414
    'GA' => t('Goa'),
415
    'GJ' => t('Gujarat'),
416
    'HP' => t('Himachal Pradesh'),
417
    'HR' => t('Haryana'),
418
    'JH' => t('Jharkhand'),
419
    'JK' => t('Jammu & Kashmir'),
420
    'KA' => t('Karnataka'),
421
    'KL' => t('Kerala'),
422
    'MH' => t('Maharashtra'),
423
    'MN' => t('Manipur'),
424
    'ML' => t('Meghalaya'),
425
    'MP' => t('Madhya Pradesh'),
426
    'MZ' => t('Mizoram'),
427
    'NL' => t('Nagaland'),
428
    'OR' => t('Odisha'),
429
    'PB' => t('Punjab'),
430
    'RJ' => t('Rajasthan'),
431
    'SK' => t('Sikkim'),
432
    'TN' => t('Tamil Nadu'),
433
    'TG' => t('Telangana'),
434
    'TR' => t('Tripura'),
435
    'UP' => t('Uttar Pradesh'),
436
    'UT' => t('Uttarakhand'),
437
    'WB' => t('West Bengal'),
438
    ' ' => t('--'),
439
    'AN' => t('Andaman & Nicobar'),
440
    'CH' => t('Chandigarh'),
441
    'DN' => t('Dadra & Nagar Haveli'),
442
    'DD' => t('Daman & Diu'),
443
    'DL' => t('Delhi'),
444
    'LD' => t('Lakshadweep'),
445
    'PY' => t('Puducherry'),
446
  );
447
  $administrative_areas['IT'] = array(
448 fd5a8e62 Assos Assos
    'AG' => 'Agrigento',
449
    'AL' => 'Alessandria',
450
    'AN' => 'Ancona',
451
    'AO' => 'Aosta',
452
    'AP' => 'Ascoli Piceno',
453
    'AQ' => "L'Aquila",
454
    'AR' => 'Arezzo',
455
    'AT' => 'Asti',
456
    'AV' => 'Avellino',
457
    'BA' => 'Bari',
458
    'BG' => 'Bergamo',
459
    'BI' => 'Biella',
460
    'BL' => 'Belluno',
461
    'BN' => 'Benevento',
462
    'BO' => 'Bologna',
463
    'BR' => 'Brindisi',
464
    'BS' => 'Brescia',
465
    'BT' => 'Barletta-Andria-Trani',
466
    'BZ' => 'Bolzano/Bozen',
467
    'CA' => 'Cagliari',
468
    'CB' => 'Campobasso',
469
    'CE' => 'Caserta',
470
    'CH' => 'Chieti',
471
    'CI' => 'Carbonia-Iglesias',
472
    'CL' => 'Caltanissetta',
473
    'CN' => 'Cuneo',
474
    'CO' => 'Como',
475
    'CR' => 'Cremona',
476
    'CS' => 'Cosenza',
477
    'CT' => 'Catania',
478
    'CZ' => 'Catanzaro',
479
    'EN' => 'Enna',
480
    'FC' => 'Forlì-Cesena',
481
    'FE' => 'Ferrara',
482
    'FG' => 'Foggia',
483
    'FI' => 'Firenze',
484
    'FM' => 'Fermo',
485
    'FR' => 'Frosinone',
486
    'GE' => 'Genova',
487
    'GO' => 'Gorizia',
488
    'GR' => 'Grosseto',
489
    'IM' => 'Imperia',
490
    'IS' => 'Isernia',
491
    'KR' => 'Crotone',
492
    'LC' => 'Lecco',
493
    'LE' => 'Lecce',
494
    'LI' => 'Livorno',
495
    'LO' => 'Lodi',
496
    'LT' => 'Latina',
497
    'LU' => 'Lucca',
498
    'MB' => 'Monza e Brianza',
499
    'MC' => 'Macerata',
500
    'ME' => 'Messina',
501
    'MI' => 'Milano',
502
    'MN' => 'Mantova',
503
    'MO' => 'Modena',
504
    'MS' => 'Massa-Carrara',
505
    'MT' => 'Matera',
506
    'NA' => 'Napoli',
507
    'NO' => 'Novara',
508
    'NU' => 'Nuoro',
509
    'OG' => 'Ogliastra',
510
    'OR' => 'Oristano',
511
    'OT' => 'Olbia-Tempio',
512
    'PA' => 'Palermo',
513
    'PC' => 'Piacenza',
514
    'PD' => 'Padova',
515
    'PE' => 'Pescara',
516
    'PG' => 'Perugia',
517
    'PI' => 'Pisa',
518
    'PN' => 'Pordenone',
519
    'PO' => 'Prato',
520
    'PR' => 'Parma',
521
    'PT' => 'Pistoia',
522
    'PU' => 'Pesaro e Urbino',
523
    'PV' => 'Pavia',
524
    'PZ' => 'Potenza',
525
    'RA' => 'Ravenna',
526
    'RC' => 'Reggio Calabria',
527
    'RE' => 'Reggio Emilia',
528
    'RG' => 'Ragusa',
529
    'RI' => 'Rieti',
530
    'RM' => 'Roma',
531
    'RN' => 'Rimini',
532
    'RO' => 'Rovigo',
533
    'SA' => 'Salerno',
534
    'SI' => 'Siena',
535
    'SO' => 'Sondrio',
536
    'SP' => 'La Spezia',
537
    'SR' => 'Siracusa',
538
    'SS' => 'Sassari',
539
    'SV' => 'Savona',
540
    'TA' => 'Taranto',
541
    'TE' => 'Teramo',
542
    'TN' => 'Trento',
543
    'TO' => 'Torino',
544
    'TP' => 'Trapani',
545
    'TR' => 'Terni',
546
    'TS' => 'Trieste',
547
    'TV' => 'Treviso',
548
    'UD' => 'Udine',
549
    'VA' => 'Varese',
550
    'VB' => 'Verbano-Cusio-Ossola',
551
    'VC' => 'Vercelli',
552
    'VE' => 'Venezia',
553
    'VI' => 'Vicenza',
554
    'VR' => 'Verona',
555
    'VS' => 'Medio Campidano',
556
    'VT' => 'Viterbo',
557
    'VV' => 'Vibo Valentia',
558 f066bdb5 Assos Assos
  );
559
  $administrative_areas['JM'] = array(
560
    '13' => 'Clarendon',
561
    '09' => 'Hanover',
562
    '01' => 'Kingston',
563
    '12' => 'Manchester',
564
    '04' => 'Portland',
565
    '02' => 'St. Andrew',
566
    '06' => 'St. Ann',
567
    '14' => 'St. Catherine',
568
    '11' => 'St. Elizabeth',
569
    '08' => 'St. James',
570
    '05' => 'St. Mary',
571
    '03' => 'St. Thomas',
572
    '07' => 'Trelawny',
573
    '10' => 'Westmoreland',
574
  );
575
  $administrative_areas['JP'] = array(
576
    '01' => t('Hokkaido'),
577
    '02' => t('Aomori'),
578
    '03' => t('Iwate'),
579
    '04' => t('Miyagi'),
580
    '05' => t('Akita'),
581
    '06' => t('Yamagata'),
582
    '07' => t('Fukushima'),
583
    '08' => t('Ibaraki'),
584
    '09' => t('Tochigi'),
585
    '10' => t('Gunma'),
586
    '11' => t('Saitama'),
587
    '12' => t('Chiba'),
588
    '13' => t('Tokyo'),
589
    '14' => t('Kanagawa'),
590
    '15' => t('Niigata'),
591
    '16' => t('Toyama'),
592
    '17' => t('Ishikawa'),
593
    '18' => t('Fukui'),
594
    '19' => t('Yamanashi'),
595
    '20' => t('Nagano'),
596
    '21' => t('Gifu'),
597
    '22' => t('Shizuoka'),
598
    '23' => t('Aichi'),
599
    '24' => t('Mie'),
600
    '25' => t('Shiga'),
601
    '26' => t('Kyoto'),
602
    '27' => t('Osaka'),
603
    '28' => t('Hyogo'),
604
    '29' => t('Nara'),
605
    '30' => t('Wakayama'),
606
    '31' => t('Tottori'),
607
    '32' => t('Shimane'),
608
    '33' => t('Okayama'),
609
    '34' => t('Hiroshima'),
610
    '35' => t('Yamaguchi'),
611
    '36' => t('Tokushima'),
612
    '37' => t('Kagawa'),
613
    '38' => t('Ehime'),
614
    '39' => t('Kochi'),
615
    '40' => t('Fukuoka'),
616
    '41' => t('Saga'),
617
    '42' => t('Nagasaki'),
618
    '43' => t('Kumamoto'),
619
    '44' => t('Oita'),
620
    '45' => t('Miyazaki'),
621
    '46' => t('Kagoshima'),
622
    '47' => t('Okinawa'),
623
  );
624
  $administrative_areas['KR'] = array(
625
    '11' => t('Seoul'),
626
    '26' => t('Busan'),
627
    '27' => t('Daegu'),
628
    '30' => t('Daejeon'),
629
    '29' => t('Gwangju'),
630
    '28' => t('Incheon'),
631
    '31' => t('Ulsan'),
632
    '43' => t('Chungcheongbuk-do'),
633
    '44' => t('Chungcheongnam-do'),
634
    '42' => t('Gangwon-do'),
635
    '41' => t('Gyeonggi-do'),
636
    '47' => t('Gyeongsangbuk-do'),
637
    '48' => t('Gyeongsangnam-do'),
638
    '49' => t('Jeju-do'),
639
    '45' => t('Jeollabuk-do'),
640
    '46' => t('Jeollanam-do'),
641
    '50' => t('Sejong'),
642
  );
643 9d13637e Assos Assos
  $administrative_areas['KZ'] = array(
644
    'AST' => t('Astana'),
645
    'ALA' => t('Almaty'),
646
    'ALM' => t('Almaty region'),
647
    'AKM' => t('Aqmola region'),
648
    'AKT' => t('Aqtöbe region'),
649
    'ATY' => t('Atyraū region'),
650
    'ZAP' => t('Batys Qazaqstan region'),
651
    'MAN' => t('Mangghystaū region'),
652
    'YUZ' => t('Ongtüstik Qazaqstan region'),
653
    'PAV' => t('Pavlodar region'),
654
    'KAR' => t('Qaraghandy region'),
655
    'KUS' => t('Qostanay region'),
656
    'KZY' => t('Qyzylorda region'),
657
    'VOS' => t('Shyghys Qazaqstan region'),
658
    'SEV' => t('Soltüstik Qazaqstan region'),
659
    'ZHA' => t('Zhambyl region'),
660
  );
661 f066bdb5 Assos Assos
  $administrative_areas['MX'] = array(
662 fd5a8e62 Assos Assos
    'AGU' => 'Aguascalientes',
663
    'BCN' => 'Baja California',
664
    'BCS' => 'Baja California Sur',
665
    'CAM' => 'Campeche',
666
    'COA' => 'Coahuila',
667
    'COL' => 'Colima',
668
    'CHP' => 'Chiapas',
669
    'CHH' => 'Chihuahua',
670
    'DIF' => 'Distrito Federal',
671
    'DUG' => 'Durango',
672
    'MEX' => 'Estado de México',
673
    'GUA' => 'Guanajuato',
674
    'GRO' => 'Guerrero',
675
    'HID' => 'Hidalgo',
676
    'JAL' => 'Jalisco',
677
    'MIC' => 'Michoacán',
678
    'MOR' => 'Morelos',
679
    'NAY' => 'Nayarit',
680
    'NLE' => 'Nuevo León',
681
    'OAX' => 'Oaxaca',
682
    'PUE' => 'Puebla',
683
    'QUE' => 'Queretaro',
684
    'ROO' => 'Quintana Roo',
685
    'SLP' => 'San Luis Potosí',
686
    'SIN' => 'Sinaloa',
687
    'SON' => 'Sonora',
688
    'TAB' => 'Tabasco',
689
    'TAM' => 'Tamaulipas',
690
    'TLA' => 'Tlaxcala',
691
    'VER' => 'Veracruz',
692
    'YUC' => 'Yucatán',
693
    'ZAC' => 'Zacatecas',
694 f066bdb5 Assos Assos
  );
695
  $administrative_areas['MY'] = array(
696
    '01' => t('Johor'),
697
    '02' => t('Kedah'),
698
    '03' => t('Kelantan'),
699
    '14' => t('Kuala Lumpur'),
700
    '15' => t('Labuan'),
701
    '04' => t('Melaka'),
702
    '05' => t('Negeri Sembilan'),
703
    '06' => t('Pahang'),
704
    '08' => t('Perak'),
705
    '09' => t('Perlis'),
706
    '07' => t('Pulau Pinang'),
707
    '16' => t('Putrajaya'),
708
    '12' => t('Sabah'),
709
    '13' => t('Sarawak'),
710
    '10' => t('Selangor'),
711
    '11' => t('Terengganu'),
712
    );
713
  $administrative_areas['PE'] = array(
714 fd5a8e62 Assos Assos
    'AMA' => 'Amazonas',
715
    'ANC' => 'Ancash',
716
    'APU' => 'Apurimac',
717
    'ARE' => 'Arequipa',
718
    'AYA' => 'Ayacucho',
719
    'CAJ' => 'Cajamarca',
720
    'CAL' => 'Callao',
721
    'CUS' => 'Cusco',
722
    'HUV' => 'Huancavelica',
723
    'HUC' => 'Huanuco',
724
    'ICA' => 'Ica',
725
    'JUN' => 'Junin',
726
    'LAL' => 'La Libertad',
727
    'LAM' => 'Lambayeque',
728
    'LIM' => 'Lima',
729
    'LOR' => 'Loreto',
730
    'MDD' => 'Madre de Dios',
731
    'MOQ' => 'Moquegua',
732
    'PAS' => 'Pasco',
733
    'PIU' => 'Piura',
734
    'PUN' => 'Puno',
735
    'SAM' => 'San Martin',
736
    'TAC' => 'Tacna',
737
    'TUM' => 'Tumbes',
738
    'UCA' => 'Ucayali',
739 f066bdb5 Assos Assos
  );
740
  $administrative_areas['RU'] = array(
741
    'MOW' => t('Moskva'),
742
    'SPE' => t('Sankt-Peterburg'),
743
    'AD' => t('Adygeya, Respublika'),
744
    'AL' => t('Altay, Respublika'),
745
    'BA' => t('Bashkortostan, Respublika'),
746
    'BU' => t('Buryatiya, Respublika'),
747
    'CE' => t('Chechenskaya Respublika'),
748
    'CU' => t('Chuvashskaya Respublika'),
749
    'DA' => t('Dagestan, Respublika'),
750
    'IN' => t('Ingushetiya, Respublika'),
751
    'KB' => t('Kabardino-Balkarskaya Respublika'),
752
    'KL' => t('Kalmykiya, Respublika'),
753
    'KC' => t('Karachayevo-Cherkesskaya Respublika'),
754
    'KR' => t('Kareliya, Respublika'),
755
    'KK' => t('Khakasiya, Respublika'),
756
    'KO' => t('Komi, Respublika'),
757
    'ME' => t('Mariy El, Respublika'),
758
    'MO' => t('Mordoviya, Respublika'),
759
    'SA' => t('Sakha, Respublika [Yakutiya]'),
760
    'SE' => t('Severnaya Osetiya-Alaniya, Respublika'),
761
    'TA' => t('Tatarstan, Respublika'),
762
    'TY' => t('Tyva, Respublika [Tuva]'),
763
    'UD' => t('Udmurtskaya Respublika'),
764
    'ALT' => t('Altayskiy kray'),
765
    'KAM' => t('Kamchatskiy kray'),
766
    'KHA' => t('Khabarovskiy kray'),
767
    'KDA' => t('Krasnodarskiy kray'),
768
    'KYA' => t('Krasnoyarskiy kray'),
769
    'PER' => t('Permskiy kray'),
770
    'PRI' => t('Primorskiy kray'),
771
    'STA' => t('Stavropolskiy kray'),
772
    'ZAB' => t('Zabaykalskiy kray'),
773
    'AMU' => t('Amurskaya oblast'),
774
    'ARK' => t('Arkhangelskaya oblast'),
775
    'AST' => t('Astrakhanskaya oblast'),
776
    'BEL' => t('Belgorodskaya oblast'),
777
    'BRY' => t('Bryanskaya oblast'),
778
    'CHE' => t('Chelyabinskaya oblast'),
779
    'IRK' => t('Irkutskaya oblast'),
780
    'IVA' => t('Ivanovskaya oblast'),
781
    'KGD' => t('Kaliningradskaya oblast'),
782
    'KLU' => t('Kaluzhskaya oblast'),
783
    'KEM' => t('Kemerovskaya oblast'),
784
    'KIR' => t('Kirovskaya oblast'),
785
    'KOS' => t('Kostromskaya oblast'),
786
    'KGN' => t('Kurganskaya oblast'),
787
    'KRS' => t('Kurskaya oblast'),
788
    'LEN' => t('Leningradskaya oblast'),
789
    'LIP' => t('Lipetskaya oblast'),
790
    'MAG' => t('Magadanskaya oblast'),
791
    'MOS' => t('Moskovskaya oblast'),
792
    'MUR' => t('Murmanskaya oblast'),
793
    'NIZ' => t('Nizhegorodskaya oblast'),
794
    'NGR' => t('Novgorodskaya oblast'),
795
    'NVS' => t('Novosibirskaya oblast'),
796
    'OMS' => t('Omskaya oblast'),
797
    'ORE' => t('Orenburgskaya oblast'),
798
    'ORL' => t('Orlovskaya oblast'),
799
    'PNZ' => t('Penzenskaya oblast'),
800
    'PSK' => t('Pskovskaya oblast'),
801
    'ROS' => t('Rostovskaya oblast'),
802
    'RYA' => t('Ryazanskaya oblast'),
803
    'SAK' => t('Sakhalinskaya oblast'),
804
    'SAM' => t('Samarskaya oblast'),
805
    'SAR' => t('Saratovskaya oblast'),
806
    'SMO' => t('Smolenskaya oblast'),
807
    'SVE' => t('Sverdlovskaya oblast'),
808
    'TAM' => t('Tambovskaya oblast'),
809
    'TOM' => t('Tomskaya oblast'),
810
    'TUL' => t('Tulskaya oblast'),
811
    'TVE' => t('Tverskaya oblast'),
812
    'TYU' => t('Tyumenskaya oblast'),
813
    'ULY' => t('Ulyanovskaya oblast'),
814
    'VLA' => t('Vladimirskaya oblast'),
815
    'VGG' => t('Volgogradskaya oblast'),
816
    'VLG' => t('Vologodskaya oblast'),
817
    'VOR' => t('Voronezhskaya oblast'),
818
    'YAR' => t('Yaroslavskaya oblast'),
819
    'YEV' => t('Yevreyskaya avtonomnaya oblast'),
820
    'CHU' => t('Chukotskiy avtonomnyy okrug'),
821
    'KHM' => t('Khanty-Mansiyskiy avtonomnyy okrug-Yugra'),
822
    'NEN' => t('Nenetskiy avtonomnyy okrug'),
823
    'YAN' => t('Yamalo-Nenetskiy avtonomnyy okrug'),
824
  );
825
  $administrative_areas['TR'] = array(
826
    '01' => t('Adana'),
827
    '02' => t('Adıyaman'),
828
    '03' => t('Afyon'),
829
    '04' => t('Ağrı'),
830
    '68' => t('Aksaray'),
831
    '05' => t('Amasya'),
832
    '06' => t('Ankara'),
833
    '07' => t('Antalya'),
834
    '75' => t('Ardahan'),
835
    '08' => t('Artvin'),
836
    '09' => t('Aydın'),
837
    '10' => t('Balıkesir'),
838
    '74' => t('Bartın'),
839
    '72' => t('Batman'),
840
    '69' => t('Bayburt'),
841
    '11' => t('Bilecik'),
842
    '12' => t('Bingöl'),
843
    '13' => t('Bitlis'),
844
    '14' => t('Bolu'),
845
    '15' => t('Burdur'),
846
    '16' => t('Bursa'),
847
    '17' => t('Çanakkale'),
848
    '18' => t('Çankırı'),
849
    '19' => t('Çorum'),
850
    '20' => t('Denizli'),
851
    '21' => t('Diyarbakır'),
852
    '81' => t('Düzce'),
853
    '22' => t('Edirne'),
854
    '23' => t('Elazığ'),
855
    '24' => t('Erzincan'),
856
    '25' => t('Erzurum'),
857
    '26' => t('Eskişehir'),
858
    '27' => t('Gaziantep'),
859
    '28' => t('Giresun'),
860
    '29' => t('Gümüşhane'),
861
    '30' => t('Hakkari'),
862
    '31' => t('Hatay'),
863
    '76' => t('Iğdır'),
864
    '32' => t('Isparta'),
865
    '34' => t('İstanbul'),
866
    '35' => t('İzmir'),
867
    '46' => t('Kahramanmaraş'),
868
    '78' => t('Karabük'),
869
    '70' => t('Karaman'),
870
    '36' => t('Kars'),
871
    '37' => t('Kastamonu'),
872
    '38' => t('Kayseri'),
873
    '71' => t('Kırıkkale'),
874
    '39' => t('Kırklareli'),
875
    '40' => t('Kırşehir'),
876
    '79' => t('Kilis'),
877
    '41' => t('Kocaeli'),
878
    '42' => t('Konya'),
879
    '43' => t('Kütahya'),
880
    '44' => t('Malatya'),
881
    '45' => t('Manisa'),
882
    '47' => t('Mardin'),
883
    '33' => t('Mersin'),
884
    '48' => t('Muğla'),
885
    '49' => t('Muş'),
886
    '50' => t('Nevşehir'),
887
    '51' => t('Niğde'),
888
    '52' => t('Ordu'),
889
    '80' => t('Osmaniye'),
890
    '53' => t('Rize'),
891
    '54' => t('Sakarya'),
892
    '55' => t('Samsun'),
893
    '56' => t('Siirt'),
894
    '57' => t('Sinop'),
895
    '58' => t('Sivas'),
896
    '63' => t('Şanlıurfa'),
897
    '73' => t('Şırnak'),
898
    '59' => t('Tekirdağ'),
899
    '60' => t('Tokat'),
900
    '61' => t('Trabzon'),
901
    '62' => t('Tunceli'),
902
    '64' => t('Uşak'),
903
    '65' => t('Van'),
904
    '77' => t('Yalova'),
905
    '66' => t('Yozgat'),
906
    '67' => t('Zonguldak'),
907
  );
908 9d13637e Assos Assos
  $administrative_areas['TW'] = array(
909
    'TXG' => t('Taichung City'),
910
    'TPE' => t('Taipei City'),
911
    'TTT' => t('Taitung County'),
912
    'TNN' => t('Tainan City'),
913
    'ILA' => t('Yilan County'),
914
    'HUA' => t('Hualien County'),
915
    'Kinmen County' => t('Kinmen County'),
916
    'NAN' => t('Nantou County'),
917
    'PIF' => t('Pingtung County'),
918
    'MIA' => t('Miaoli County'),
919
    'TAO' => t('Taoyuan County'),
920
    'KHH' => t('Kaohsiung City'),
921
    'KEE' => t('Keelung City'),
922
    'Lienchiang County' => t('Lienchiang County'),
923
    'YUN' => t('Yunlin County'),
924
    'TPQ' => t('New Taipei City'),
925
    'HSZ' => t('Hsinchu City'),
926
    'HSQ' => t('Hsinchu County'),
927
    'CYI' => t('Chiayi City'),
928
    'CYQ' => t('Chiayi County'),
929
    'CHA' => t('Changhua County'),
930
    'PEN' => t('Penghu County'),
931
  );
932
  $administrative_areas['UA'] = array(
933
    '43' => t('Crimea'),
934
    '05' => t('Vinnyts\'ka oblast'),
935
    '07' => t('Volyns\'ka oblast'),
936
    '12' => t('Dnipropetrovsk Oblast'),
937
    '14' => t('Donetsk Oblast'),
938
    '18' => t('Zhytomyrs\'ka oblast'),
939
    '21' => t('Zakarpats\'ka oblast'),
940
    '23' => t('Zaporiz\'ka oblast'),
941
    '26' => t('Ivano-Frankivs\'ka oblast'),
942
    '30' => t('Kiev Oblast'),
943
    '35' => t('Kirovohrads\'ka oblast'),
944
    '09' => t('Luhans\'ka oblast'),
945
    '46' => t('Lviv Oblast'),
946
    '48' => t('Mykolaivs\'ka oblast'),
947
    '51' => t('Odessa Oblast'),
948
    '53' => t('Poltavs\'ka oblast'),
949
    '56' => t('Rivnens\'ka oblast'),
950
    '40' => t('Sevastopol\' city'),
951
    '59' => t('Sums\'ka oblast'),
952
    '61' => t('Ternopil\'s\'ka oblast'),
953
    '63' => t('Kharkiv Oblast'),
954
    '65' => t('Khersons\'ka oblast'),
955
    '68' => t('Khmel\'nyts\'ka oblast'),
956
    '71' => t('Cherkas\'ka oblast'),
957
    '77' => t('Chernivets\'ka oblast'),
958
    '74' => t('Chernihivs\'ka oblast'),
959
  );
960 f066bdb5 Assos Assos
  $administrative_areas['US'] = array(
961
    'AL' => t('Alabama'),
962
    'AK' => t('Alaska'),
963
    'AZ' => t('Arizona'),
964
    'AR' => t('Arkansas'),
965
    'CA' => t('California'),
966
    'CO' => t('Colorado'),
967
    'CT' => t('Connecticut'),
968
    'DE' => t('Delaware'),
969
    'DC' => t('District of Columbia'),
970
    'FL' => t('Florida'),
971
    'GA' => t('Georgia'),
972
    'HI' => t('Hawaii'),
973
    'ID' => t('Idaho'),
974
    'IL' => t('Illinois'),
975
    'IN' => t('Indiana'),
976
    'IA' => t('Iowa'),
977
    'KS' => t('Kansas'),
978
    'KY' => t('Kentucky'),
979
    'LA' => t('Louisiana'),
980
    'ME' => t('Maine'),
981
    'MD' => t('Maryland'),
982
    'MA' => t('Massachusetts'),
983
    'MI' => t('Michigan'),
984
    'MN' => t('Minnesota'),
985
    'MS' => t('Mississippi'),
986
    'MO' => t('Missouri'),
987
    'MT' => t('Montana'),
988
    'NE' => t('Nebraska'),
989
    'NV' => t('Nevada'),
990
    'NH' => t('New Hampshire'),
991
    'NJ' => t('New Jersey'),
992
    'NM' => t('New Mexico'),
993
    'NY' => t('New York'),
994
    'NC' => t('North Carolina'),
995
    'ND' => t('North Dakota'),
996
    'OH' => t('Ohio'),
997
    'OK' => t('Oklahoma'),
998
    'OR' => t('Oregon'),
999
    'PA' => t('Pennsylvania'),
1000
    'RI' => t('Rhode Island'),
1001
    'SC' => t('South Carolina'),
1002
    'SD' => t('South Dakota'),
1003
    'TN' => t('Tennessee'),
1004
    'TX' => t('Texas'),
1005
    'UT' => t('Utah'),
1006
    'VT' => t('Vermont'),
1007
    'VA' => t('Virginia'),
1008
    'WA' => t('Washington'),
1009
    'WV' => t('West Virginia'),
1010
    'WI' => t('Wisconsin'),
1011
    'WY' => t('Wyoming'),
1012
    ' ' => t('--'),
1013
    'AA' => t('Armed Forces (Americas)'),
1014
    'AE' => t('Armed Forces (Europe, Canada, Middle East, Africa)'),
1015
    'AP' => t('Armed Forces (Pacific)'),
1016
    'AS' => t('American Samoa'),
1017
    'FM' => t('Federated States of Micronesia'),
1018
    'GU' => t('Guam'),
1019
    'MH' => t('Marshall Islands'),
1020
    'MP' => t('Northern Mariana Islands'),
1021
    'PW' => t('Palau'),
1022
    'PR' => t('Puerto Rico'),
1023
    'VI' => t('Virgin Islands'),
1024
  );
1025
  $administrative_areas['VE'] = array(
1026 fd5a8e62 Assos Assos
    'Z' => 'Amazonas',
1027
    'B' => 'Anzoátegui',
1028
    'C' => 'Apure',
1029
    'D' => 'Aragua',
1030
    'E' => 'Barinas',
1031
    'F' => 'Bolívar',
1032
    'G' => 'Carabobo',
1033
    'H' => 'Cojedes',
1034
    'Y' => 'Delta Amacuro',
1035
    'W' => 'Dependencias Federales',
1036
    'A' => 'Distrito Federal',
1037
    'I' => 'Falcón',
1038
    'J' => 'Guárico',
1039
    'K' => 'Lara',
1040
    'L' => 'Mérida',
1041
    'M' => 'Miranda',
1042
    'N' => 'Monagas',
1043
    'O' => 'Nueva Esparta',
1044
    'P' => 'Portuguesa',
1045
    'R' => 'Sucre',
1046
    'S' => 'Táchira',
1047
    'T' => 'Trujillo',
1048
    'X' => 'Vargas',
1049
    'U' => 'Yaracuy',
1050
    'V' => 'Zulia',
1051 f066bdb5 Assos Assos
  );
1052
1053 fd5a8e62 Assos Assos
  return $administrative_areas;
1054 f066bdb5 Assos Assos
}