decoder 0.5.1 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  = Usage
4
4
 
5
- >> Decoder.i18n = :eng
5
+ >> Decoder.i18n = :en
6
6
  >> country = Decoder::Countries[:US]
7
7
  >> country.to_s
8
8
  => "United States"
@@ -13,7 +13,7 @@
13
13
  Currently the yaml files are still quite incomplete. Please fork and populate!
14
14
 
15
15
  = i18n
16
- When adding a new language please use the ISO 639-2 Code 3-letter standard.
16
+ When adding a new language please use the ISO 639-1 Code 2-letter standard.
17
17
  You can find the appropriate code for a given language here:
18
18
  http://www.loc.gov/standards/iso639-2/php/code_list.php
19
19
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.6.4
data/decoder.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{decoder}
8
- s.version = "0.5.1"
8
+ s.version = "0.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Cardarella"]
12
- s.date = %q{2009-09-01}
12
+ s.date = %q{2009-09-07}
13
13
  s.description = %q{Decoder}
14
14
  s.email = %q{bcardarella@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -25,14 +25,11 @@ Gem::Specification.new do |s|
25
25
  "VERSION",
26
26
  "decoder.gemspec",
27
27
  "lib/common_methods.rb",
28
- "lib/countries/countries.rb",
29
- "lib/countries/country.rb",
30
28
  "lib/decoder.rb",
31
- "lib/i18n/countries/eng.yml",
32
- "lib/i18n/states/au/eng.yml",
33
- "lib/i18n/states/ca/eng.yml",
34
- "lib/i18n/states/us/eng.yml",
35
- "lib/states/state.rb",
29
+ "lib/decoder/countries.rb",
30
+ "lib/decoder/country.rb",
31
+ "lib/decoder/state.rb",
32
+ "lib/locales/en.yml",
36
33
  "test/common_methods_test.rb",
37
34
  "test/countries/countries_test.rb",
38
35
  "test/countries/country_test.rb",
data/lib/decoder.rb CHANGED
@@ -1,14 +1,33 @@
1
1
  require 'common_methods'
2
- require 'countries/countries'
3
- require 'countries/country'
4
- require 'states/state'
2
+ require 'decoder/countries'
3
+ require 'decoder/country'
4
+ require 'decoder/state'
5
5
 
6
6
  module Decoder
7
+
7
8
  def self.i18n
8
- @i18n ||= :eng
9
+ @i18n ||= :en
9
10
  end
10
11
 
11
12
  def self.i18n=(code)
12
13
  @i18n = code
14
+ self.locale = nil
15
+ end
16
+
17
+ def self.locale
18
+ @locale || self.locale = self.load_yaml
19
+ end
20
+
21
+ def self.locale=(_locale)
22
+ @locale = _locale
13
23
  end
24
+
25
+ def self.load_yaml
26
+ Decoder.locale = YAML.load_file(yaml_file_name)
27
+ end
28
+
29
+ def self.yaml_file_name
30
+ "#{File.dirname(__FILE__)}/locales/#{Decoder.i18n}.yml"
31
+ end
32
+
14
33
  end
@@ -0,0 +1,30 @@
1
+ module Decoder
2
+ class Countries
3
+
4
+ def initialize
5
+ self.countries = Decoder.locale[Decoder.i18n]
6
+ end
7
+
8
+ def inspect
9
+ %{#<#{self.class}>}
10
+ end
11
+
12
+ def countries=(_countries)
13
+ @countries = _countries
14
+ end
15
+
16
+ def countries
17
+ @countries
18
+ end
19
+
20
+ def [](_code)
21
+ _code = _code.to_s.upcase
22
+ country = countries[_code]
23
+ Decoder::Country.new(:code => _code, :name => country[:name])
24
+ end
25
+
26
+ def self.[](_code)
27
+ self.new[_code]
28
+ end
29
+ end
30
+ end
@@ -1,24 +1,25 @@
1
1
  module Decoder
2
2
  class Country
3
3
  include ::CommonMethods
4
- attr_accessor :states, :code, :name
5
- alias_method :provinces, :states
6
- alias_method :territories, :states
4
+ attr_accessor :code, :name
7
5
 
8
6
  def initialize(args)
9
- self.code = args[:code].to_s
10
- self.name = args[:name]
11
-
12
- self.load_yaml
7
+ self.code = args[:code].to_s
8
+ self.name = args[:name]
9
+ self.states = Decoder.locale[Decoder.i18n][self.code][:states]
13
10
  end
14
11
 
15
- def load_yaml
16
- self.states = YAML.load_file(yaml_file_name)
12
+ def states
13
+ @states
17
14
  end
18
15
 
19
- def yaml_file_name
20
- "#{File.dirname(__FILE__)}/../i18n/states/#{code.downcase}/#{Decoder.i18n}.yml"
16
+ def states=(_states)
17
+ @states = _states
21
18
  end
19
+
20
+ alias_method :counties, :states
21
+ alias_method :provinces, :states
22
+ alias_method :territories, :states
22
23
 
23
24
  def [](_code)
24
25
  _code = _code.to_s.upcase
File without changes
@@ -0,0 +1,1083 @@
1
+ ---
2
+ :en:
3
+ VA:
4
+ :name: Vatican City State (Holy See)
5
+ :states: {}
6
+
7
+ ZR:
8
+ :name: Zaire
9
+ :states: {}
10
+
11
+ CC:
12
+ :name: Cocos (Keeling) Islands
13
+ :states: {}
14
+
15
+ GT:
16
+ :name: Guatemala
17
+ :states: {}
18
+
19
+ JP:
20
+ :name: Japan
21
+ :states: {}
22
+
23
+ "NO":
24
+ :name: Norway
25
+ :states: {}
26
+
27
+ SE:
28
+ :name: Sweden
29
+ :states: {}
30
+
31
+ TZ:
32
+ :name: Tanzania
33
+ :states: {}
34
+
35
+ CD:
36
+ :name: Congo, Democratic Republic
37
+ :states: {}
38
+
39
+ GU:
40
+ :name: Guam
41
+ :states: {}
42
+
43
+ MM:
44
+ :name: Myanmar
45
+ :states: {}
46
+
47
+ DZ:
48
+ :name: Algeria
49
+ :states: {}
50
+
51
+ MN:
52
+ :name: Mongolia
53
+ :states: {}
54
+
55
+ PK:
56
+ :name: Pakistan
57
+ :states: {}
58
+
59
+ SG:
60
+ :name: Singapore
61
+ :states: {}
62
+
63
+ VC:
64
+ :name: Saint Vincent & the Grenadines
65
+ :states: {}
66
+
67
+ CF:
68
+ :name: Central African Republic
69
+ :states: {}
70
+
71
+ GW:
72
+ :name: Guinea-Bissau
73
+ :states: {}
74
+
75
+ MO:
76
+ :name: Macau
77
+ :states: {}
78
+
79
+ PL:
80
+ :name: Poland
81
+ :states: {}
82
+
83
+ SH:
84
+ :name: St. Helena
85
+ :states: {}
86
+
87
+ CG:
88
+ :name: Congo
89
+ :states: {}
90
+
91
+ MP:
92
+ :name: Northern Mariana Islands
93
+ :states: {}
94
+
95
+ PM:
96
+ :name: St. Pierre and Miquelon
97
+ :states: {}
98
+
99
+ SI:
100
+ :name: Slovenia
101
+ :states: {}
102
+
103
+ VE:
104
+ :name: Venezuela
105
+ :states: {}
106
+
107
+ ZW:
108
+ :name: Zimbabwe
109
+ :states: {}
110
+
111
+ CH:
112
+ :name: Switzerland
113
+ :states: {}
114
+
115
+ GY:
116
+ :name: Guyana
117
+ :states: {}
118
+
119
+ MQ:
120
+ :name: Martinique
121
+ :states: {}
122
+
123
+ PN:
124
+ :name: Pitcairn
125
+ :states: {}
126
+
127
+ SJ:
128
+ :name: Svalbard & Jan Mayen Islands
129
+ :states: {}
130
+
131
+ CI:
132
+ :name: Cote D'Ivoire (Ivory Coast)
133
+ :states: {}
134
+
135
+ MR:
136
+ :name: Mauritania
137
+ :states: {}
138
+
139
+ SK:
140
+ :name: Slovak Republic
141
+ :states: {}
142
+
143
+ VG:
144
+ :name: British Virgin Islands
145
+ :states: {}
146
+
147
+ MS:
148
+ :name: Montserrat
149
+ :states: {}
150
+
151
+ SL:
152
+ :name: Sierra Leone
153
+ :states: {}
154
+
155
+ CK:
156
+ :name: Cook Islands
157
+ :states: {}
158
+
159
+ ID:
160
+ :name: Indonesia
161
+ :states: {}
162
+
163
+ MT:
164
+ :name: Malta
165
+ :states: {}
166
+
167
+ SM:
168
+ :name: San Marino
169
+ :states: {}
170
+
171
+ VI:
172
+ :name: Virgin Islands (U.S.)
173
+ :states: {}
174
+
175
+ YE:
176
+ :name: Yemen
177
+ :states: {}
178
+
179
+ CL:
180
+ :name: Chile
181
+ :states: {}
182
+
183
+ IE:
184
+ :name: Ireland
185
+ :states: {}
186
+
187
+ LA:
188
+ :name: Laos
189
+ :states: {}
190
+
191
+ MU:
192
+ :name: Mauritius
193
+ :states: {}
194
+
195
+ SN:
196
+ :name: Senegal
197
+ :states: {}
198
+
199
+ CM:
200
+ :name: Cameroon
201
+ :states: {}
202
+
203
+ FI:
204
+ :name: Finland
205
+ :states: {}
206
+
207
+ LB:
208
+ :name: Lebanon
209
+ :states: {}
210
+
211
+ MV:
212
+ :name: Maldives
213
+ :states: {}
214
+
215
+ PR:
216
+ :name: Puerto Rico
217
+ :states: {}
218
+
219
+ SO:
220
+ :name: Somalia
221
+ :states: {}
222
+
223
+ CN:
224
+ :name: China
225
+ :states: {}
226
+
227
+ FJ:
228
+ :name: Fiji
229
+ :states: {}
230
+
231
+ LC:
232
+ :name: Saint Lucia
233
+ :states: {}
234
+
235
+ MW:
236
+ :name: Malawi
237
+ :states: {}
238
+
239
+ PS:
240
+ :name: Palestinian Territory, Occupied
241
+ :states: {}
242
+
243
+ CO:
244
+ :name: Colombia
245
+ :states: {}
246
+
247
+ FK:
248
+ :name: Falkland Islands (Malvinas)
249
+ :states: {}
250
+
251
+ MX:
252
+ :name: Mexico
253
+ :states: {}
254
+
255
+ PT:
256
+ :name: Portugal
257
+ :states: {}
258
+
259
+ MY:
260
+ :name: Malaysia
261
+ :states: {}
262
+
263
+ SR:
264
+ :name: Suriname
265
+ :states: {}
266
+
267
+ VN:
268
+ :name: Viet Nam
269
+ :states: {}
270
+
271
+ FM:
272
+ :name: Micronesia
273
+ :states: {}
274
+
275
+ MZ:
276
+ :name: Mozambique
277
+ :states: {}
278
+
279
+ CR:
280
+ :name: Costa Rica
281
+ :states: {}
282
+
283
+ PW:
284
+ :name: Palau
285
+ :states: {}
286
+
287
+ CS:
288
+ :name: Czechoslovakia (former)
289
+ :states: {}
290
+
291
+ FO:
292
+ :name: Faroe Islands
293
+ :states: {}
294
+
295
+ ST:
296
+ :name: Sao Tome and Principe
297
+ :states: {}
298
+
299
+ IL:
300
+ :name: Israel
301
+ :states: {}
302
+
303
+ LI:
304
+ :name: Liechtenstein
305
+ :states: {}
306
+
307
+ PY:
308
+ :name: Paraguay
309
+ :states: {}
310
+
311
+ SU:
312
+ :name: USSR (former)
313
+ :states: {}
314
+
315
+ BA:
316
+ :name: Bosnia and Herzegovina
317
+ :states: {}
318
+
319
+ CU:
320
+ :name: Cuba
321
+ :states: {}
322
+
323
+ IM:
324
+ :name: Isle of Man
325
+ :states: {}
326
+
327
+ SV:
328
+ :name: El Salvador
329
+ :states: {}
330
+
331
+ CV:
332
+ :name: Cape Verde
333
+ :states: {}
334
+
335
+ FR:
336
+ :name: France
337
+ :states: {}
338
+
339
+ IN:
340
+ :name: India
341
+ :states: {}
342
+
343
+ LK:
344
+ :name: Sri Lanka
345
+ :states: {}
346
+
347
+ BB:
348
+ :name: Barbados
349
+ :states: {}
350
+
351
+ IO:
352
+ :name: British Indian Ocean Territory
353
+ :states: {}
354
+
355
+ VU:
356
+ :name: Vanuatu
357
+ :states: {}
358
+
359
+ CX:
360
+ :name: Christmas Island
361
+ :states: {}
362
+
363
+ RE:
364
+ :name: Reunion
365
+ :states: {}
366
+
367
+ UA:
368
+ :name: Ukraine
369
+ :states: {}
370
+
371
+ SY:
372
+ :name: Syria
373
+ :states: {}
374
+
375
+ CY:
376
+ :name: Cyprus
377
+ :states: {}
378
+
379
+ IQ:
380
+ :name: Iraq
381
+ :states: {}
382
+
383
+ SZ:
384
+ :name: Swaziland
385
+ :states: {}
386
+
387
+ BD:
388
+ :name: Bangladesh
389
+ :states: {}
390
+
391
+ CZ:
392
+ :name: Czech Republic
393
+ :states: {}
394
+
395
+ IR:
396
+ :name: Iran
397
+ :states: {}
398
+
399
+ YT:
400
+ :name: Mayotte
401
+ :states: {}
402
+
403
+ BE:
404
+ :name: Belgium
405
+ :states: {}
406
+
407
+ IS:
408
+ :name: Iceland
409
+ :states: {}
410
+
411
+ YU:
412
+ :name: Yugoslavia (former)
413
+ :states: {}
414
+
415
+ BF:
416
+ :name: Burkina Faso
417
+ :states: {}
418
+
419
+ EC:
420
+ :name: Ecuador
421
+ :states: {}
422
+
423
+ FX:
424
+ :name: France, Metropolitan
425
+ :states: {}
426
+
427
+ IT:
428
+ :name: Italy
429
+ :states: {}
430
+
431
+ OM:
432
+ :name: Oman
433
+ :states: {}
434
+
435
+ BG:
436
+ :name: Bulgaria
437
+ :states: {}
438
+
439
+ BH:
440
+ :name: Bahrain
441
+ :states: {}
442
+
443
+ LR:
444
+ :name: Liberia
445
+ :states: {}
446
+
447
+ UG:
448
+ :name: Uganda
449
+ :states: {}
450
+
451
+ BI:
452
+ :name: Burundi
453
+ :states: {}
454
+
455
+ EE:
456
+ :name: Estonia
457
+ :states: {}
458
+
459
+ LS:
460
+ :name: Lesotho
461
+ :states: {}
462
+
463
+ BJ:
464
+ :name: Benin
465
+ :states: {}
466
+
467
+ LT:
468
+ :name: Lithuania
469
+ :states: {}
470
+
471
+ EG:
472
+ :name: Egypt
473
+ :states: {}
474
+
475
+ EH:
476
+ :name: Western Sahara
477
+ :states: {}
478
+
479
+ LU:
480
+ :name: Luxembourg
481
+ :states: {}
482
+
483
+ RO:
484
+ :name: Romania
485
+ :states: {}
486
+
487
+ UK:
488
+ :name: United Kingdom
489
+ :states: {}
490
+
491
+ BM:
492
+ :name: Bermuda
493
+ :states: {}
494
+
495
+ LV:
496
+ :name: Latvia
497
+ :states: {}
498
+
499
+ BN:
500
+ :name: Brunei Darussalam
501
+ :states: {}
502
+
503
+ UM:
504
+ :name: US Minor Outlying Islands
505
+ :states: {}
506
+
507
+ BO:
508
+ :name: Bolivia
509
+ :states: {}
510
+
511
+ KE:
512
+ :name: Kenya
513
+ :states: {}
514
+
515
+ NA:
516
+ :name: Namibia
517
+ :states: {}
518
+
519
+ LY:
520
+ :name: Libya
521
+ :states: {}
522
+
523
+ BR:
524
+ :name: Brazil
525
+ :states: {}
526
+
527
+ KG:
528
+ :name: Kyrgyzstan
529
+ :states: {}
530
+
531
+ NC:
532
+ :name: New Caledonia
533
+ :states: {}
534
+
535
+ RS:
536
+ :name: Serbia
537
+ :states: {}
538
+
539
+ BS:
540
+ :name: Bahamas
541
+ :states: {}
542
+
543
+ HK:
544
+ :name: Hong Kong
545
+ :states: {}
546
+
547
+ KH:
548
+ :name: Cambodia
549
+ :states: {}
550
+
551
+ BT:
552
+ :name: Bhutan
553
+ :states: {}
554
+
555
+ KI:
556
+ :name: Kiribati
557
+ :states: {}
558
+
559
+ NE:
560
+ :name: Niger
561
+ :states: {}
562
+
563
+ QA:
564
+ :name: Qatar
565
+ :states: {}
566
+
567
+ RU:
568
+ :name: Russian Federation
569
+ :states: {}
570
+
571
+ HM:
572
+ :name: Heard and McDonald Islands
573
+ :states: {}
574
+
575
+ NF:
576
+ :name: Norfolk Island
577
+ :states: {}
578
+
579
+ US:
580
+ :name: United States
581
+ :states:
582
+ VA: Virginia
583
+ NY: New York
584
+ ND: North Dakota
585
+ AL: Alabama
586
+ HI: Hawaii
587
+ MN: Minnesota
588
+ DE: Delaware
589
+ RI: Rhode Island
590
+ MD: Maryland
591
+ NE: Nebraska
592
+ CO: Colorado
593
+ IA: Iowa
594
+ MO: Missouri
595
+ PR: Puerto Rico
596
+ WY: Wyoming
597
+ ME: Maine
598
+ KY: Kentucky
599
+ OR: Oregon
600
+ IL: Illinois
601
+ MP: Northern Mariana Islands
602
+ GU: Guam
603
+ AZ: Arizona
604
+ OH: Ohio
605
+ TX: Texas
606
+ TN: T:Tnessee
607
+ GA: Georgia
608
+ NH: New Hampshire
609
+ MH: Marshall Islands
610
+ ID: Idaho
611
+ IN: Indiana
612
+ SC: South Carolina
613
+ OK: Oklahoma
614
+ NJ: New Jersey
615
+ SD: South Dakota
616
+ CT: Connecticut
617
+ MI: Michigan
618
+ AR: Arkansas
619
+ FL: Florida
620
+ MS: Mississippi
621
+ PA: Pennsylvania
622
+ FM: Federated States Of Micronesia
623
+ MT: Montana
624
+ PW: Palau
625
+ WI: Wisconsin
626
+ AS: American Samoa
627
+ VI: Virgin Islands
628
+ KS: Kansas
629
+ NV: Nevada
630
+ CA: California
631
+ VT: Vermont
632
+ NM: New Mexico
633
+ WV: West Virginia
634
+ MA: Massachusetts
635
+ DC: District Of Columbia
636
+ UT: Utah
637
+ WA: Washington
638
+ AK: Alaska
639
+ LA: Louisiana
640
+ NC: North Carolina
641
+ BV:
642
+ :name: Bouvet Island
643
+ :states: {}
644
+
645
+ ER:
646
+ :name: Eritrea
647
+ :states: {}
648
+
649
+ HN:
650
+ :name: Honduras
651
+ :states: {}
652
+
653
+ NG:
654
+ :name: Nigeria
655
+ :states: {}
656
+
657
+ RW:
658
+ :name: Rwanda
659
+ :states: {}
660
+
661
+ BW:
662
+ :name: Botswana
663
+ :states: {}
664
+
665
+ ES:
666
+ :name: Spain
667
+ :states: {}
668
+
669
+ AC:
670
+ :name: Ascension Island
671
+ :states: {}
672
+
673
+ ET:
674
+ :name: Ethiopia
675
+ :states: {}
676
+
677
+ NI:
678
+ :name: Nicaragua
679
+ :states: {}
680
+
681
+ AD:
682
+ :name: Andorra
683
+ :states: {}
684
+
685
+ BY:
686
+ :name: Belarus
687
+ :states: {}
688
+
689
+ KM:
690
+ :name: Comoros
691
+ :states: {}
692
+
693
+ AE:
694
+ :name: United Arab Emirates
695
+ :states: {}
696
+
697
+ BZ:
698
+ :name: Belize
699
+ :states: {}
700
+
701
+ HR:
702
+ :name: Croatia (Hrvatska)
703
+ :states: {}
704
+
705
+ KN:
706
+ :name: Saint Kitts and Nevis
707
+ :states: {}
708
+
709
+ TC:
710
+ :name: Turks and Caicos Islands
711
+ :states: {}
712
+
713
+ AF:
714
+ :name: Afghanistan
715
+ :states: {}
716
+
717
+ NL:
718
+ :name: Netherlands
719
+ :states: {}
720
+
721
+ TD:
722
+ :name: Chad
723
+ :states: {}
724
+
725
+ AG:
726
+ :name: Antigua and Barbuda
727
+ :states: {}
728
+
729
+ HT:
730
+ :name: Haiti
731
+ :states: {}
732
+
733
+ KP:
734
+ :name: Korea (North)
735
+ :states: {}
736
+
737
+ UY:
738
+ :name: Uruguay
739
+ :states: {}
740
+
741
+ GA:
742
+ :name: Gabon
743
+ :states: {}
744
+
745
+ HU:
746
+ :name: Hungary
747
+ :states: {}
748
+
749
+ TF:
750
+ :name: French Southern Territories
751
+ :states: {}
752
+
753
+ UZ:
754
+ :name: Uzbekistan
755
+ :states: {}
756
+
757
+ AI:
758
+ :name: Anguilla
759
+ :states: {}
760
+
761
+ DE:
762
+ :name: Germany
763
+ :states: {}
764
+
765
+ GB:
766
+ :name: Great Britain (UK)
767
+ :states: {}
768
+
769
+ KR:
770
+ :name: Korea (South)
771
+ :states: {}
772
+
773
+ TG:
774
+ :name: Togo
775
+ :states: {}
776
+
777
+ TH:
778
+ :name: Thailand
779
+ :states: {}
780
+
781
+ GD:
782
+ :name: Grenada
783
+ :states: {}
784
+
785
+ NP:
786
+ :name: Nepal
787
+ :states: {}
788
+
789
+ ZA:
790
+ :name: South Africa
791
+ :states: {}
792
+
793
+ AL:
794
+ :name: Albania
795
+ :states: {}
796
+
797
+ GE:
798
+ :name: Georgia
799
+ :states: {}
800
+
801
+ TJ:
802
+ :name: Tajikistan
803
+ :states: {}
804
+
805
+ WF:
806
+ :name: Wallis and Futuna Islands
807
+ :states: {}
808
+
809
+ AM:
810
+ :name: Armenia
811
+ :states: {}
812
+
813
+ GF:
814
+ :name: French Guiana
815
+ :states: {}
816
+
817
+ NR:
818
+ :name: Nauru
819
+ :states: {}
820
+
821
+ TK:
822
+ :name: Tokelau
823
+ :states: {}
824
+
825
+ AN:
826
+ :name: Netherlands Antilles
827
+ :states: {}
828
+
829
+ DJ:
830
+ :name: Djibouti
831
+ :states: {}
832
+
833
+ KW:
834
+ :name: Kuwait
835
+ :states: {}
836
+
837
+ AO:
838
+ :name: Angola
839
+ :states: {}
840
+
841
+ DK:
842
+ :name: Denmark
843
+ :states: {}
844
+
845
+ NT:
846
+ :name: Neutral Zone
847
+ :states: {}
848
+
849
+ TM:
850
+ :name: Turkmenistan
851
+ :states: {}
852
+
853
+ GH:
854
+ :name: Ghana
855
+ :states: {}
856
+
857
+ JE:
858
+ :name: Jersey
859
+ :states: {}
860
+
861
+ MA:
862
+ :name: Morocco
863
+ :states: {}
864
+
865
+ KY:
866
+ :name: Cayman Islands
867
+ :states: {}
868
+
869
+ NU:
870
+ :name: Niue
871
+ :states: {}
872
+
873
+ TN:
874
+ :name: Tunisia
875
+ :states: {}
876
+
877
+ DM:
878
+ :name: Dominica
879
+ :states: {}
880
+
881
+ GI:
882
+ :name: Gibraltar
883
+ :states: {}
884
+
885
+ KZ:
886
+ :name: Kazakhstan
887
+ :states: {}
888
+
889
+ TO:
890
+ :name: Tonga
891
+ :states: {}
892
+
893
+ AQ:
894
+ :name: Antarctica
895
+ :states: {}
896
+
897
+ MC:
898
+ :name: Monaco
899
+ :states: {}
900
+
901
+ TP:
902
+ :name: East Timor
903
+ :states: {}
904
+
905
+ AR:
906
+ :name: Argentina
907
+ :states: {}
908
+
909
+ MD:
910
+ :name: Moldova
911
+ :states: {}
912
+
913
+ AS:
914
+ :name: American Samoa
915
+ :states: {}
916
+
917
+ DO:
918
+ :name: Dominican Republic
919
+ :states: {}
920
+
921
+ ME:
922
+ :name: Montenegro
923
+ :states: {}
924
+
925
+ PA:
926
+ :name: Panama
927
+ :states: {}
928
+
929
+ TR:
930
+ :name: Turkey
931
+ :states: {}
932
+
933
+ AT:
934
+ :name: Austria
935
+ :states: {}
936
+
937
+ GL:
938
+ :name: Greenland
939
+ :states: {}
940
+
941
+ GM:
942
+ :name: Gambia
943
+ :states: {}
944
+
945
+ NZ:
946
+ :name: New Zealand (Aotearoa)
947
+ :states: {}
948
+
949
+ AU:
950
+ :name: Australia
951
+ :states:
952
+ N T: Northern Territory
953
+ W A: Western Australia
954
+ SA: South Australia
955
+ VIC: Victoria
956
+ TAS: Tasmania
957
+ ACT: Australian Capital Territory
958
+ NSW: New South Wales
959
+ QLD: Queensland
960
+ GN:
961
+ :name: Guinea
962
+ :states: {}
963
+
964
+ MG:
965
+ :name: Madagascar
966
+ :states: {}
967
+
968
+ ZM:
969
+ :name: Zambia
970
+ :states: {}
971
+
972
+ MH:
973
+ :name: Marshall Islands
974
+ :states: {}
975
+
976
+ TT:
977
+ :name: Trinidad and Tobago
978
+ :states: {}
979
+
980
+ AW:
981
+ :name: Aruba
982
+ :states: {}
983
+
984
+ GP:
985
+ :name: Guadeloupe
986
+ :states: {}
987
+
988
+ AX:
989
+ :name: Aland Islands
990
+ :states: {}
991
+
992
+ SA:
993
+ :name: Saudi Arabia
994
+ :states: {}
995
+
996
+ PE:
997
+ :name: Peru
998
+ :states: {}
999
+
1000
+ JM:
1001
+ :name: Jamaica
1002
+ :states: {}
1003
+
1004
+ GQ:
1005
+ :name: Equatorial Guinea
1006
+ :states: {}
1007
+
1008
+ CA:
1009
+ :name: Canada
1010
+ :states:
1011
+ AB: Alberta
1012
+ BC: British Columbia
1013
+ "ON": Ontario
1014
+ SK: Saskatchewan
1015
+ NS: Nova Scotia
1016
+ YT: Yukon
1017
+ NT: Northwest Territories
1018
+ QC: Quebec
1019
+ NU: Nunavut
1020
+ NL: Newfoundland and Labrador
1021
+ NB: New Brunswick
1022
+ PE: Prince Edward Island
1023
+ MB: Manitoba
1024
+ WS:
1025
+ :name: Samoa
1026
+ :states: {}
1027
+
1028
+ TV:
1029
+ :name: Tuvalu
1030
+ :states: {}
1031
+
1032
+ SB:
1033
+ :name: Solomon Islands
1034
+ :states: {}
1035
+
1036
+ PF:
1037
+ :name: French Polynesia
1038
+ :states: {}
1039
+
1040
+ PG:
1041
+ :name: Papua New Guinea
1042
+ :states: {}
1043
+
1044
+ MK:
1045
+ :name: F.Y.R.O.M. (Macedonia)
1046
+ :states: {}
1047
+
1048
+ GR:
1049
+ :name: Greece
1050
+ :states: {}
1051
+
1052
+ AZ:
1053
+ :name: Azerbaijan
1054
+ :states: {}
1055
+
1056
+ TW:
1057
+ :name: Taiwan
1058
+ :states: {}
1059
+
1060
+ SC:
1061
+ :name: Seychelles
1062
+ :states: {}
1063
+
1064
+ PH:
1065
+ :name: Philippines
1066
+ :states: {}
1067
+
1068
+ JO:
1069
+ :name: Jordan
1070
+ :states: {}
1071
+
1072
+ SD:
1073
+ :name: Sudan
1074
+ :states: {}
1075
+
1076
+ GS:
1077
+ :name: S. Georgia and S. Sandwich Isls.
1078
+ :states: {}
1079
+
1080
+ ML:
1081
+ :name: Mali
1082
+ :states: {}
1083
+