tastebook_country_select 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ *.sqlite
3
+ .bundle
4
+ Gemfile.lock
5
+ pkg/*
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'rake'
4
+
5
+ gem 'rspec'
6
+
7
+ # Specify your gem's dependencies in country_select.gemspec
8
+ gemspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 Michael Koziarski
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ Country_Select
2
+
3
+ Provides a simple helper to get an HTML select list of countries. The list of countries comes
4
+ from the ISO 3166 standard. While it is a relatively neutral source of country names, it may
5
+ still offend some users.
6
+
7
+ Users are strongly advised to evaluate the suitability of this list given their user base.
8
+
9
+ ## Installation
10
+
11
+ Install as a gem using
12
+
13
+ gem install country_select
14
+
15
+ Or put the following in your Gemfile
16
+
17
+ gem 'country_select'
18
+
19
+ ## Example
20
+
21
+ Simple use supplying model and attribute as parameters:
22
+
23
+ country_select("user", "country_name")
24
+
25
+ Supplying priority countries to be placed at the top of the list:
26
+
27
+ country_select("user", "country_name", [ "United Kingdom", "France", "Germany" ])
28
+
29
+ Specifying which country to be selected:
30
+ United Kingdom will be selected.
31
+
32
+ country_select("user", "country_name", [ "+United Kingdom+", "France", "Germany" ])
33
+
34
+ Copyright (c) 2008 Michael Koziarski, released under the MIT license
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "country_select/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "tastebook_country_select"
7
+ s.version = CountrySelect::VERSION
8
+ s.authors = ["Stefan Penner"]
9
+ s.email = ["stefan.penner@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Country Select Plugin}
12
+ s.description = %q{Provides a simple helper to get an HTML select list of countries. The list of countries comes from the ISO 3166 standard. While it is a relatively neutral source of country names, it will still offend some users.}
13
+
14
+ s.rubyforge_project = "country_select"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+
20
+ s.require_paths = ["lib"]
21
+
22
+ # specify any dependencies here; for example:
23
+ # s.add_development_dependency "rspec"
24
+ # s.add_runtime_dependency "rest-client"
25
+ end
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'country_select'
@@ -0,0 +1,109 @@
1
+ # CountrySelect
2
+ #
3
+ # Adds #country_select method to
4
+ # ActionView::FormBuilder
5
+ #
6
+ require 'country_select/version'
7
+ require 'country_select/country_codes'
8
+
9
+ module ActionView
10
+ module Helpers
11
+ module FormOptionsHelper
12
+ #
13
+ # Return select and option tags
14
+ # for the given object and method,
15
+ # using country_options_for_select to
16
+ # generate the list of option tags.
17
+ #
18
+ def country_select(object, method, priority_countries = nil,
19
+ options = {},
20
+ html_options = {})
21
+
22
+ tag = if defined?(ActionView::Helpers::InstanceTag) &&
23
+ ActionView::Helpers::InstanceTag.instance_method(:initialize).arity != 0
24
+
25
+ InstanceTag.new(object, method, self, options.delete(:object))
26
+ else
27
+ CountrySelect.new(object, method, self, options)
28
+ end
29
+
30
+ tag.to_country_select_tag(priority_countries, options, html_options)
31
+ end
32
+
33
+ #
34
+ # Returns a string of option tags for
35
+ # pretty much any country in the world.
36
+ # Supply a country name as +selected+ to
37
+ # have it marked as the selected option tag.
38
+ #
39
+ # You can also supply an array of countries as
40
+ # +priority_countries+ so that they will be
41
+ # listed above the rest of the (long) list.
42
+ #
43
+ # NOTE: Only the option tags are returned, you
44
+ # have to wrap this call in a regular HTML
45
+ # select tag.
46
+ #
47
+ def country_options_for_select(selected = nil, priority_countries = nil)
48
+ country_options = "".html_safe
49
+
50
+ if priority_countries
51
+ country_options += options_for_select(priority_countries, selected)
52
+ country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n".html_safe
53
+ #
54
+ # prevents selected from being included
55
+ # twice in the HTML which causes
56
+ # some browsers to select the second
57
+ # selected option (not priority)
58
+ # which makes it harder to select an
59
+ # alternative priority country
60
+ #
61
+ selected = nil if priority_countries.include?(selected)
62
+ end
63
+
64
+ return country_options + options_for_select(COUNTRIES, selected)
65
+ end
66
+
67
+ # All the countries included in the country_options output.
68
+ CountryCodes.load_countries_from_yaml
69
+ COUNTRIES = (CountryCodes.countries_for_select('name', 'a2') -
70
+ [["Indonesia", "ID"],["Ghana", "GH"],["Nigeria", "NG"], ["Antartica", "AQ"], ["Puerto Rico", "PR"]]).sort
71
+ end
72
+
73
+ module ToCountrySelectTag
74
+ def to_country_select_tag(priority_countries, options, html_options)
75
+ html_options = html_options.stringify_keys
76
+ add_default_name_and_id(html_options)
77
+ value = value(object)
78
+ content_tag("select",
79
+ add_options(
80
+ country_options_for_select(value, priority_countries),
81
+ options, value
82
+ ), html_options
83
+ )
84
+ end
85
+ end
86
+
87
+ if defined?(ActionView::Helpers::InstanceTag) &&
88
+ ActionView::Helpers::InstanceTag.instance_method(:initialize).arity != 0
89
+ class InstanceTag
90
+ include ToCountrySelectTag
91
+ end
92
+ else
93
+ class CountrySelect < Tags::Base
94
+ include ToCountrySelectTag
95
+ end
96
+ end
97
+
98
+ class FormBuilder
99
+ def country_select(method, priority_countries = nil,
100
+ options = {},
101
+ html_options = {})
102
+
103
+ @template.country_select(@object_name, method, priority_countries,
104
+ options.merge(:object => @object),
105
+ html_options)
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,1476 @@
1
+ ---
2
+ -
3
+ :name: Afghanistan
4
+ :a2: AF
5
+ :a3: AFG
6
+ :numeric: 4
7
+
8
+ -
9
+ :name: Aland
10
+ :a2: AX
11
+ :a3: ALA
12
+ :numeric: 248
13
+
14
+ -
15
+ :name: Albania
16
+ :a2: AL
17
+ :a3: ALB
18
+ :numeric: 8
19
+
20
+ -
21
+ :name: Algeria
22
+ :a2: DZ
23
+ :a3: DZA
24
+ :numeric: 12
25
+
26
+ -
27
+ :name: American Samoa
28
+ :a2: AS
29
+ :a3: ASM
30
+ :numeric: 16
31
+
32
+ -
33
+ :name: Andorra
34
+ :a2: AD
35
+ :a3: AND
36
+ :numeric: 20
37
+
38
+ -
39
+ :name: Angola
40
+ :a2: AO
41
+ :a3: AGO
42
+ :numeric: 24
43
+
44
+ -
45
+ :name: Anguilla
46
+ :a2: AI
47
+ :a3: AIA
48
+ :numeric: 660
49
+
50
+ -
51
+ :name: Antarctica
52
+ :a2: AQ
53
+ :a3: ATA
54
+ :numeric: 10
55
+
56
+ -
57
+ :name: Antigua and Barbuda
58
+ :a2: AG
59
+ :a3: ATG
60
+ :numeric: 28
61
+
62
+ -
63
+ :name: Argentina
64
+ :a2: AR
65
+ :a3: ARG
66
+ :numeric: 32
67
+
68
+ -
69
+ :name: Armenia
70
+ :a2: AM
71
+ :a3: ARM
72
+ :numeric: 51
73
+
74
+ -
75
+ :name: Aruba
76
+ :a2: AW
77
+ :a3: ABW
78
+ :numeric: 533
79
+
80
+ -
81
+ :name: Australia
82
+ :a2: AU
83
+ :a3: AUS
84
+ :numeric: 36
85
+
86
+ -
87
+ :name: Austria
88
+ :a2: AT
89
+ :a3: AUT
90
+ :numeric: 40
91
+
92
+ -
93
+ :name: Azerbaijan
94
+ :a2: AZ
95
+ :a3: AZE
96
+ :numeric: 31
97
+
98
+ -
99
+ :name: Bahamas
100
+ :a2: BS
101
+ :a3: BHS
102
+ :numeric: 44
103
+
104
+ -
105
+ :name: Bahrain
106
+ :a2: BH
107
+ :a3: BHR
108
+ :numeric: 48
109
+
110
+ -
111
+ :name: Bangladesh
112
+ :a2: BD
113
+ :a3: BGD
114
+ :numeric: 50
115
+
116
+ -
117
+ :name: Barbados
118
+ :a2: BB
119
+ :a3: BRB
120
+ :numeric: 52
121
+
122
+ -
123
+ :name: Belarus
124
+ :a2: BY
125
+ :a3: BLR
126
+ :numeric: 112
127
+
128
+ -
129
+ :name: Belgium
130
+ :a2: BE
131
+ :a3: BEL
132
+ :numeric: 56
133
+
134
+ -
135
+ :name: Belize
136
+ :a2: BZ
137
+ :a3: BLZ
138
+ :numeric: 84
139
+
140
+ -
141
+ :name: Benin
142
+ :a2: BJ
143
+ :a3: BEN
144
+ :numeric: 204
145
+
146
+ -
147
+ :name: Bermuda
148
+ :a2: BM
149
+ :a3: BMU
150
+ :numeric: 60
151
+
152
+ -
153
+ :name: Bhutan
154
+ :a2: BT
155
+ :a3: BTN
156
+ :numeric: 64
157
+
158
+ -
159
+ :name: Bolivia
160
+ :a2: BO
161
+ :a3: BOL
162
+ :numeric: 68
163
+
164
+ -
165
+ :name: Bosnia and Herzegovina
166
+ :a2: BA
167
+ :a3: BIH
168
+ :numeric: 70
169
+
170
+ -
171
+ :name: Botswana
172
+ :a2: BW
173
+ :a3: BWA
174
+ :numeric: 72
175
+
176
+ -
177
+ :name: Bouvet Island
178
+ :a2: BV
179
+ :a3: BVT
180
+ :numeric: 74
181
+
182
+ -
183
+ :name: Brazil
184
+ :a2: BR
185
+ :a3: BRA
186
+ :numeric: 76
187
+
188
+ -
189
+ :name: British Indian Ocean Territory
190
+ :a2: IO
191
+ :a3: IOT
192
+ :numeric: 86
193
+
194
+ -
195
+ :name: Brunei Darussalam
196
+ :a2: BN
197
+ :a3: BRN
198
+ :numeric: 96
199
+
200
+ -
201
+ :name: Bulgaria
202
+ :a2: BG
203
+ :a3: BGR
204
+ :numeric: 100
205
+
206
+ -
207
+ :name: Burkina Faso
208
+ :a2: BF
209
+ :a3: BFA
210
+ :numeric: 854
211
+
212
+ -
213
+ :name: Burundi
214
+ :a2: BI
215
+ :a3: BDI
216
+ :numeric: 108
217
+
218
+ -
219
+ :name: Cambodia
220
+ :a2: KH
221
+ :a3: KHM
222
+ :numeric: 116
223
+
224
+ -
225
+ :name: Cameroon
226
+ :a2: CM
227
+ :a3: CMR
228
+ :numeric: 120
229
+
230
+ -
231
+ :name: Canada
232
+ :a2: CA
233
+ :a3: CAN
234
+ :numeric: 124
235
+
236
+ -
237
+ :name: Cape Verde
238
+ :a2: CV
239
+ :a3: CPV
240
+ :numeric: 132
241
+
242
+ -
243
+ :name: Cayman Islands
244
+ :a2: KY
245
+ :a3: CYM
246
+ :numeric: 136
247
+
248
+ -
249
+ :name: Central African Republic
250
+ :a2: CF
251
+ :a3: CAF
252
+ :numeric: 140
253
+
254
+ -
255
+ :name: Chad
256
+ :a2: TD
257
+ :a3: TCD
258
+ :numeric: 148
259
+
260
+ -
261
+ :name: Chile
262
+ :a2: CL
263
+ :a3: CHL
264
+ :numeric: 152
265
+
266
+ -
267
+ :name: China
268
+ :a2: CN
269
+ :a3: CHN
270
+ :numeric: 156
271
+
272
+ -
273
+ :name: Christmas Island
274
+ :a2: CX
275
+ :a3: CXR
276
+ :numeric: 162
277
+
278
+ -
279
+ :name: Cocos (Keeling) Islands
280
+ :a2: CC
281
+ :a3: CCK
282
+ :numeric: 166
283
+
284
+ -
285
+ :name: Colombia
286
+ :a2: CO
287
+ :a3: COL
288
+ :numeric: 170
289
+
290
+ -
291
+ :name: Comoros
292
+ :a2: KM
293
+ :a3: COM
294
+ :numeric: 174
295
+
296
+ -
297
+ :name: Congo (Brazzaville)
298
+ :a2: CG
299
+ :a3: COG
300
+ :numeric: 178
301
+
302
+ -
303
+ :name: Congo (Kinshasa)
304
+ :a2: CD
305
+ :a3: COD
306
+ :numeric: 180
307
+
308
+ -
309
+ :name: Cook Islands
310
+ :a2: CK
311
+ :a3: COK
312
+ :numeric: 184
313
+
314
+ -
315
+ :name: Costa Rica
316
+ :a2: CR
317
+ :a3: CRI
318
+ :numeric: 188
319
+
320
+ -
321
+ :name: Cote d'Ivoire
322
+ :a2: CI
323
+ :a3: CIV
324
+ :numeric: 384
325
+
326
+ -
327
+ :name: Croatia
328
+ :a2: HR
329
+ :a3: HRV
330
+ :numeric: 191
331
+
332
+ -
333
+ :name: Cuba
334
+ :a2: CU
335
+ :a3: CUB
336
+ :numeric: 192
337
+
338
+ -
339
+ :name: Cyprus
340
+ :a2: CY
341
+ :a3: CYP
342
+ :numeric: 196
343
+
344
+ -
345
+ :name: Czech Republic
346
+ :a2: CZ
347
+ :a3: CZE
348
+ :numeric: 203
349
+
350
+ -
351
+ :name: Denmark
352
+ :a2: DK
353
+ :a3: DNK
354
+ :numeric: 208
355
+
356
+ -
357
+ :name: Djibouti
358
+ :a2: DJ
359
+ :a3: DJI
360
+ :numeric: 262
361
+
362
+ -
363
+ :name: Dominica
364
+ :a2: DM
365
+ :a3: DMA
366
+ :numeric: 212
367
+
368
+ -
369
+ :name: Dominican Republic
370
+ :a2: DO
371
+ :a3: DOM
372
+ :numeric: 214
373
+
374
+ -
375
+ :name: Ecuador
376
+ :a2: EC
377
+ :a3: ECU
378
+ :numeric: 218
379
+
380
+ -
381
+ :name: Egypt
382
+ :a2: EG
383
+ :a3: EGY
384
+ :numeric: 818
385
+
386
+ -
387
+ :name: El Salvador
388
+ :a2: SV
389
+ :a3: SLV
390
+ :numeric: 222
391
+
392
+ -
393
+ :name: Equatorial Guinea
394
+ :a2: GQ
395
+ :a3: GNQ
396
+ :numeric: 226
397
+
398
+ -
399
+ :name: Eritrea
400
+ :a2: ER
401
+ :a3: ERI
402
+ :numeric: 232
403
+
404
+ -
405
+ :name: Estonia
406
+ :a2: EE
407
+ :a3: EST
408
+ :numeric: 233
409
+
410
+ -
411
+ :name: Ethiopia
412
+ :a2: ET
413
+ :a3: ETH
414
+ :numeric: 231
415
+
416
+ -
417
+ :name: Falkland Islands
418
+ :a2: FK
419
+ :a3: FLK
420
+ :numeric: 238
421
+
422
+ -
423
+ :name: Faroe Islands
424
+ :a2: FO
425
+ :a3: FRO
426
+ :numeric: 234
427
+
428
+ -
429
+ :name: Fiji
430
+ :a2: FJ
431
+ :a3: FJI
432
+ :numeric: 242
433
+
434
+ -
435
+ :name: Finland
436
+ :a2: FI
437
+ :a3: FIN
438
+ :numeric: 246
439
+
440
+ -
441
+ :name: France
442
+ :a2: FR
443
+ :a3: FRA
444
+ :numeric: 250
445
+
446
+ -
447
+ :name: French Guiana
448
+ :a2: GF
449
+ :a3: GUF
450
+ :numeric: 254
451
+
452
+ -
453
+ :name: French Polynesia
454
+ :a2: PF
455
+ :a3: PYF
456
+ :numeric: 258
457
+
458
+ -
459
+ :name: French Southern Lands
460
+ :a2: TF
461
+ :a3: ATF
462
+ :numeric: 260
463
+
464
+ -
465
+ :name: Gabon
466
+ :a2: GA
467
+ :a3: GAB
468
+ :numeric: 266
469
+
470
+ -
471
+ :name: Gambia
472
+ :a2: GM
473
+ :a3: GMB
474
+ :numeric: 270
475
+
476
+ -
477
+ :name: Georgia
478
+ :a2: GE
479
+ :a3: GEO
480
+ :numeric: 268
481
+
482
+ -
483
+ :name: Germany
484
+ :a2: DE
485
+ :a3: DEU
486
+ :numeric: 276
487
+
488
+ -
489
+ :name: Ghana
490
+ :a2: GH
491
+ :a3: GHA
492
+ :numeric: 288
493
+
494
+ -
495
+ :name: Gibraltar
496
+ :a2: GI
497
+ :a3: GIB
498
+ :numeric: 292
499
+
500
+ -
501
+ :name: Greece
502
+ :a2: GR
503
+ :a3: GRC
504
+ :numeric: 300
505
+
506
+ -
507
+ :name: Greenland
508
+ :a2: GL
509
+ :a3: GRL
510
+ :numeric: 304
511
+
512
+ -
513
+ :name: Grenada
514
+ :a2: GD
515
+ :a3: GRD
516
+ :numeric: 308
517
+
518
+ -
519
+ :name: Guadeloupe
520
+ :a2: GP
521
+ :a3: GLP
522
+ :numeric: 312
523
+
524
+ -
525
+ :name: Guam
526
+ :a2: GU
527
+ :a3: GUM
528
+ :numeric: 316
529
+
530
+ -
531
+ :name: Guatemala
532
+ :a2: GT
533
+ :a3: GTM
534
+ :numeric: 320
535
+
536
+ -
537
+ :name: Guernsey
538
+ :a2: GG
539
+ :a3: GGY
540
+ :numeric: 831
541
+
542
+ -
543
+ :name: Guinea
544
+ :a2: GN
545
+ :a3: GIN
546
+ :numeric: 324
547
+
548
+ -
549
+ :name: Guinea-Bissau
550
+ :a2: GW
551
+ :a3: GNB
552
+ :numeric: 624
553
+
554
+ -
555
+ :name: Guyana
556
+ :a2: GY
557
+ :a3: GUY
558
+ :numeric: 328
559
+
560
+ -
561
+ :name: Haiti
562
+ :a2: HT
563
+ :a3: HTI
564
+ :numeric: 332
565
+
566
+ -
567
+ :name: Heard and McDonald Islands
568
+ :a2: HM
569
+ :a3: HMD
570
+ :numeric: 334
571
+
572
+ -
573
+ :name: Honduras
574
+ :a2: HN
575
+ :a3: HND
576
+ :numeric: 340
577
+
578
+ -
579
+ :name: Hong Kong
580
+ :a2: HK
581
+ :a3: HKG
582
+ :numeric: 344
583
+
584
+ -
585
+ :name: Hungary
586
+ :a2: HU
587
+ :a3: HUN
588
+ :numeric: 348
589
+
590
+ -
591
+ :name: Iceland
592
+ :a2: IS
593
+ :a3: ISL
594
+ :numeric: 352
595
+
596
+ -
597
+ :name: India
598
+ :a2: IN
599
+ :a3: IND
600
+ :numeric: 356
601
+
602
+ -
603
+ :name: Indonesia
604
+ :a2: ID
605
+ :a3: IDN
606
+ :numeric: 360
607
+
608
+ -
609
+ :name: Iran
610
+ :a2: IR
611
+ :a3: IRN
612
+ :numeric: 364
613
+
614
+ -
615
+ :name: Iraq
616
+ :a2: IQ
617
+ :a3: IRQ
618
+ :numeric: 368
619
+
620
+ -
621
+ :name: Ireland
622
+ :a2: IE
623
+ :a3: IRL
624
+ :numeric: 372
625
+
626
+ -
627
+ :name: Isle of Man
628
+ :a2: IM
629
+ :a3: IMN
630
+ :numeric: 833
631
+
632
+ -
633
+ :name: Israel
634
+ :a2: IL
635
+ :a3: ISR
636
+ :numeric: 376
637
+
638
+ -
639
+ :name: Italy
640
+ :a2: IT
641
+ :a3: ITA
642
+ :numeric: 380
643
+
644
+ -
645
+ :name: Jamaica
646
+ :a2: JM
647
+ :a3: JAM
648
+ :numeric: 388
649
+
650
+ -
651
+ :name: Japan
652
+ :a2: JP
653
+ :a3: JPN
654
+ :numeric: 392
655
+
656
+ -
657
+ :name: Jersey
658
+ :a2: JE
659
+ :a3: JEY
660
+ :numeric: 832
661
+
662
+ -
663
+ :name: Jordan
664
+ :a2: JO
665
+ :a3: JOR
666
+ :numeric: 400
667
+
668
+ -
669
+ :name: Kazakhstan
670
+ :a2: KZ
671
+ :a3: KAZ
672
+ :numeric: 398
673
+
674
+ -
675
+ :name: Kenya
676
+ :a2: KE
677
+ :a3: KEN
678
+ :numeric: 404
679
+
680
+ -
681
+ :name: Kiribati
682
+ :a2: KI
683
+ :a3: KIR
684
+ :numeric: 296
685
+
686
+ -
687
+ :name: Korea, North
688
+ :a2: KP
689
+ :a3: PRK
690
+ :numeric: 408
691
+
692
+ -
693
+ :name: Korea, South
694
+ :a2: KR
695
+ :a3: KOR
696
+ :numeric: 410
697
+
698
+ -
699
+ :name: Kuwait
700
+ :a2: KW
701
+ :a3: KWT
702
+ :numeric: 414
703
+
704
+ -
705
+ :name: Kyrgyzstan
706
+ :a2: KG
707
+ :a3: KGZ
708
+ :numeric: 417
709
+
710
+ -
711
+ :name: Laos
712
+ :a2: LA
713
+ :a3: LAO
714
+ :numeric: 418
715
+
716
+ -
717
+ :name: Latvia
718
+ :a2: LV
719
+ :a3: LVA
720
+ :numeric: 428
721
+
722
+ -
723
+ :name: Lebanon
724
+ :a2: LB
725
+ :a3: LBN
726
+ :numeric: 422
727
+
728
+ -
729
+ :name: Lesotho
730
+ :a2: LS
731
+ :a3: LSO
732
+ :numeric: 426
733
+
734
+ -
735
+ :name: Liberia
736
+ :a2: LR
737
+ :a3: LBR
738
+ :numeric: 430
739
+
740
+ -
741
+ :name: Libya
742
+ :a2: LY
743
+ :a3: LBY
744
+ :numeric: 434
745
+
746
+ -
747
+ :name: Liechtenstein
748
+ :a2: LI
749
+ :a3: LIE
750
+ :numeric: 438
751
+
752
+ -
753
+ :name: Lithuania
754
+ :a2: LT
755
+ :a3: LTU
756
+ :numeric: 440
757
+
758
+ -
759
+ :name: Luxembourg
760
+ :a2: LU
761
+ :a3: LUX
762
+ :numeric: 442
763
+
764
+ -
765
+ :name: Macau
766
+ :a2: MO
767
+ :a3: MAC
768
+ :numeric: 446
769
+
770
+ -
771
+ :name: Macedonia
772
+ :a2: MK
773
+ :a3: MKD
774
+ :numeric: 807
775
+
776
+ -
777
+ :name: Madagascar
778
+ :a2: MG
779
+ :a3: MDG
780
+ :numeric: 450
781
+
782
+ -
783
+ :name: Malawi
784
+ :a2: MW
785
+ :a3: MWI
786
+ :numeric: 454
787
+
788
+ -
789
+ :name: Malaysia
790
+ :a2: MY
791
+ :a3: MYS
792
+ :numeric: 458
793
+
794
+ -
795
+ :name: Maldives
796
+ :a2: MV
797
+ :a3: MDV
798
+ :numeric: 462
799
+
800
+ -
801
+ :name: Mali
802
+ :a2: ML
803
+ :a3: MLI
804
+ :numeric: 466
805
+
806
+ -
807
+ :name: Malta
808
+ :a2: MT
809
+ :a3: MLT
810
+ :numeric: 470
811
+
812
+ -
813
+ :name: Marshall Islands
814
+ :a2: MH
815
+ :a3: MHL
816
+ :numeric: 584
817
+
818
+ -
819
+ :name: Martinique
820
+ :a2: MQ
821
+ :a3: MTQ
822
+ :numeric: 474
823
+
824
+ -
825
+ :name: Mauritania
826
+ :a2: MR
827
+ :a3: MRT
828
+ :numeric: 478
829
+
830
+ -
831
+ :name: Mauritius
832
+ :a2: MU
833
+ :a3: MUS
834
+ :numeric: 480
835
+
836
+ -
837
+ :name: Mayotte
838
+ :a2: YT
839
+ :a3: MYT
840
+ :numeric: 175
841
+
842
+ -
843
+ :name: Mexico
844
+ :a2: MX
845
+ :a3: MEX
846
+ :numeric: 484
847
+
848
+ -
849
+ :name: Micronesia
850
+ :a2: FM
851
+ :a3: FSM
852
+ :numeric: 583
853
+
854
+ -
855
+ :name: Moldova
856
+ :a2: MD
857
+ :a3: MDA
858
+ :numeric: 498
859
+
860
+ -
861
+ :name: Monaco
862
+ :a2: MC
863
+ :a3: MCO
864
+ :numeric: 492
865
+
866
+ -
867
+ :name: Mongolia
868
+ :a2: MN
869
+ :a3: MNG
870
+ :numeric: 496
871
+
872
+ -
873
+ :name: Montenegro
874
+ :a2: ME
875
+ :a3: MNE
876
+ :numeric: 499
877
+
878
+ -
879
+ :name: Montserrat
880
+ :a2: MS
881
+ :a3: MSR
882
+ :numeric: 500
883
+
884
+ -
885
+ :name: Morocco
886
+ :a2: MA
887
+ :a3: MAR
888
+ :numeric: 504
889
+
890
+ -
891
+ :name: Mozambique
892
+ :a2: MZ
893
+ :a3: MOZ
894
+ :numeric: 508
895
+
896
+ -
897
+ :name: Myanmar
898
+ :a2: MM
899
+ :a3: MMR
900
+ :numeric: 104
901
+
902
+ -
903
+ :name: Namibia
904
+ :a2: NA
905
+ :a3: NAM
906
+ :numeric: 516
907
+
908
+ -
909
+ :name: Nauru
910
+ :a2: NR
911
+ :a3: NRU
912
+ :numeric: 520
913
+
914
+ -
915
+ :name: Nepal
916
+ :a2: NP
917
+ :a3: NPL
918
+ :numeric: 524
919
+
920
+ -
921
+ :name: Netherlands
922
+ :a2: NL
923
+ :a3: NLD
924
+ :numeric: 528
925
+
926
+ -
927
+ :name: Netherlands Antilles
928
+ :a2: AN
929
+ :a3: ANT
930
+ :numeric: 530
931
+
932
+ -
933
+ :name: New Caledonia
934
+ :a2: NC
935
+ :a3: NCL
936
+ :numeric: 540
937
+
938
+ -
939
+ :name: New Zealand
940
+ :a2: NZ
941
+ :a3: NZL
942
+ :numeric: 554
943
+
944
+ -
945
+ :name: Nicaragua
946
+ :a2: NI
947
+ :a3: NIC
948
+ :numeric: 558
949
+
950
+ -
951
+ :name: Niger
952
+ :a2: NE
953
+ :a3: NER
954
+ :numeric: 562
955
+
956
+ -
957
+ :name: Nigeria
958
+ :a2: NG
959
+ :a3: NGA
960
+ :numeric: 566
961
+
962
+ -
963
+ :name: Niue
964
+ :a2: NU
965
+ :a3: NIU
966
+ :numeric: 570
967
+
968
+ -
969
+ :name: Norfolk Island
970
+ :a2: NF
971
+ :a3: NFK
972
+ :numeric: 574
973
+
974
+ -
975
+ :name: Northern Mariana Islands
976
+ :a2: MP
977
+ :a3: MNP
978
+ :numeric: 580
979
+
980
+ -
981
+ :name: Norway
982
+ :a2: 'NO'
983
+ :a3: NOR
984
+ :numeric: 578
985
+
986
+ -
987
+ :name: Oman
988
+ :a2: OM
989
+ :a3: OMN
990
+ :numeric: 512
991
+
992
+ -
993
+ :name: Pakistan
994
+ :a2: PK
995
+ :a3: PAK
996
+ :numeric: 586
997
+
998
+ -
999
+ :name: Palau
1000
+ :a2: PW
1001
+ :a3: PLW
1002
+ :numeric: 585
1003
+
1004
+ -
1005
+ :name: Palestine
1006
+ :a2: PS
1007
+ :a3: PSE
1008
+ :numeric: 275
1009
+
1010
+ -
1011
+ :name: Panama
1012
+ :a2: PA
1013
+ :a3: PAN
1014
+ :numeric: 591
1015
+
1016
+ -
1017
+ :name: Papua New Guinea
1018
+ :a2: PG
1019
+ :a3: PNG
1020
+ :numeric: 598
1021
+
1022
+ -
1023
+ :name: Paraguay
1024
+ :a2: PY
1025
+ :a3: PRY
1026
+ :numeric: 600
1027
+
1028
+ -
1029
+ :name: Peru
1030
+ :a2: PE
1031
+ :a3: PER
1032
+ :numeric: 604
1033
+
1034
+ -
1035
+ :name: Philippines
1036
+ :a2: PH
1037
+ :a3: PHL
1038
+ :numeric: 608
1039
+
1040
+ -
1041
+ :name: Pitcairn
1042
+ :a2: PN
1043
+ :a3: PCN
1044
+ :numeric: 612
1045
+
1046
+ -
1047
+ :name: Poland
1048
+ :a2: PL
1049
+ :a3: POL
1050
+ :numeric: 616
1051
+
1052
+ -
1053
+ :name: Portugal
1054
+ :a2: PT
1055
+ :a3: PRT
1056
+ :numeric: 620
1057
+
1058
+ -
1059
+ :name: Puerto Rico
1060
+ :a2: PR
1061
+ :a3: PRI
1062
+ :numeric: 630
1063
+
1064
+ -
1065
+ :name: Qatar
1066
+ :a2: QA
1067
+ :a3: QAT
1068
+ :numeric: 634
1069
+
1070
+ -
1071
+ :name: Reunion
1072
+ :a2: RE
1073
+ :a3: REU
1074
+ :numeric: 638
1075
+
1076
+ -
1077
+ :name: Romania
1078
+ :a2: RO
1079
+ :a3: ROU
1080
+ :numeric: 642
1081
+
1082
+ -
1083
+ :name: Russian Federation
1084
+ :a2: RU
1085
+ :a3: RUS
1086
+ :numeric: 643
1087
+
1088
+ -
1089
+ :name: Rwanda
1090
+ :a2: RW
1091
+ :a3: RWA
1092
+ :numeric: 646
1093
+
1094
+ -
1095
+ :name: Saint Barthélemy
1096
+ :a2: BL
1097
+ :a3: BLM
1098
+ :numeric: 652
1099
+
1100
+ -
1101
+ :name: Saint Helena
1102
+ :a2: SH
1103
+ :a3: SHN
1104
+ :numeric: 654
1105
+
1106
+ -
1107
+ :name: Saint Kitts and Nevis
1108
+ :a2: KN
1109
+ :a3: KNA
1110
+ :numeric: 659
1111
+
1112
+ -
1113
+ :name: Saint Lucia
1114
+ :a2: LC
1115
+ :a3: LCA
1116
+ :numeric: 662
1117
+
1118
+ -
1119
+ :name: Saint Martin (French part)
1120
+ :a2: MF
1121
+ :a3: MAF
1122
+ :numeric: 663
1123
+
1124
+ -
1125
+ :name: Saint Pierre and Miquelon
1126
+ :a2: PM
1127
+ :a3: SPM
1128
+ :numeric: 666
1129
+
1130
+ -
1131
+ :name: Saint Vincent and the Grenadines
1132
+ :a2: VC
1133
+ :a3: VCT
1134
+ :numeric: 670
1135
+
1136
+ -
1137
+ :name: Samoa
1138
+ :a2: WS
1139
+ :a3: WSM
1140
+ :numeric: 882
1141
+
1142
+ -
1143
+ :name: San Marino
1144
+ :a2: SM
1145
+ :a3: SMR
1146
+ :numeric: 674
1147
+
1148
+ -
1149
+ :name: Sao Tome and Principe
1150
+ :a2: ST
1151
+ :a3: STP
1152
+ :numeric: 678
1153
+
1154
+ -
1155
+ :name: Saudi Arabia
1156
+ :a2: SA
1157
+ :a3: SAU
1158
+ :numeric: 682
1159
+
1160
+ -
1161
+ :name: Senegal
1162
+ :a2: SN
1163
+ :a3: SEN
1164
+ :numeric: 686
1165
+
1166
+ -
1167
+ :name: Serbia
1168
+ :a2: RS
1169
+ :a3: SRB
1170
+ :numeric: 688
1171
+
1172
+ -
1173
+ :name: Seychelles
1174
+ :a2: SC
1175
+ :a3: SYC
1176
+ :numeric: 690
1177
+
1178
+ -
1179
+ :name: Sierra Leone
1180
+ :a2: SL
1181
+ :a3: SLE
1182
+ :numeric: 694
1183
+
1184
+ -
1185
+ :name: Singapore
1186
+ :a2: SG
1187
+ :a3: SGP
1188
+ :numeric: 702
1189
+
1190
+ -
1191
+ :name: Slovakia
1192
+ :a2: SK
1193
+ :a3: SVK
1194
+ :numeric: 703
1195
+
1196
+ -
1197
+ :name: Slovenia
1198
+ :a2: SI
1199
+ :a3: SVN
1200
+ :numeric: 705
1201
+
1202
+ -
1203
+ :name: Solomon Islands
1204
+ :a2: SB
1205
+ :a3: SLB
1206
+ :numeric: 90
1207
+
1208
+ -
1209
+ :name: Somalia
1210
+ :a2: SO
1211
+ :a3: SOM
1212
+ :numeric: 706
1213
+
1214
+ -
1215
+ :name: South Africa
1216
+ :a2: ZA
1217
+ :a3: ZAF
1218
+ :numeric: 710
1219
+
1220
+ -
1221
+ :name: South Georgia and South Sandwich Islands
1222
+ :a2: GS
1223
+ :a3: SGS
1224
+ :numeric: 239
1225
+
1226
+ -
1227
+ :name: Spain
1228
+ :a2: ES
1229
+ :a3: ESP
1230
+ :numeric: 724
1231
+
1232
+ -
1233
+ :name: Sri Lanka
1234
+ :a2: LK
1235
+ :a3: LKA
1236
+ :numeric: 144
1237
+
1238
+ -
1239
+ :name: Sudan
1240
+ :a2: SD
1241
+ :a3: SDN
1242
+ :numeric: 736
1243
+
1244
+ -
1245
+ :name: Suriname
1246
+ :a2: SR
1247
+ :a3: SUR
1248
+ :numeric: 740
1249
+
1250
+ -
1251
+ :name: Svalbard and Jan Mayen Islands
1252
+ :a2: SJ
1253
+ :a3: SJM
1254
+ :numeric: 744
1255
+
1256
+ -
1257
+ :name: Swaziland
1258
+ :a2: SZ
1259
+ :a3: SWZ
1260
+ :numeric: 748
1261
+
1262
+ -
1263
+ :name: Sweden
1264
+ :a2: SE
1265
+ :a3: SWE
1266
+ :numeric: 752
1267
+
1268
+ -
1269
+ :name: Switzerland
1270
+ :a2: CH
1271
+ :a3: CHE
1272
+ :numeric: 756
1273
+
1274
+ -
1275
+ :name: Syria
1276
+ :a2: SY
1277
+ :a3: SYR
1278
+ :numeric: 760
1279
+
1280
+ -
1281
+ :name: Taiwan
1282
+ :a2: TW
1283
+ :a3: TWN
1284
+ :numeric: 158
1285
+
1286
+ -
1287
+ :name: Tajikistan
1288
+ :a2: TJ
1289
+ :a3: TJK
1290
+ :numeric: 762
1291
+
1292
+ -
1293
+ :name: Tanzania
1294
+ :a2: TZ
1295
+ :a3: TZA
1296
+ :numeric: 834
1297
+
1298
+ -
1299
+ :name: Thailand
1300
+ :a2: TH
1301
+ :a3: THA
1302
+ :numeric: 764
1303
+
1304
+ -
1305
+ :name: Timor-Leste
1306
+ :a2: TL
1307
+ :a3: TLS
1308
+ :numeric: 626
1309
+
1310
+ -
1311
+ :name: Togo
1312
+ :a2: TG
1313
+ :a3: TGO
1314
+ :numeric: 768
1315
+
1316
+ -
1317
+ :name: Tokelau
1318
+ :a2: TK
1319
+ :a3: TKL
1320
+ :numeric: 772
1321
+
1322
+ -
1323
+ :name: Tonga
1324
+ :a2: TO
1325
+ :a3: TON
1326
+ :numeric: 776
1327
+
1328
+ -
1329
+ :name: Trinidad and Tobago
1330
+ :a2: TT
1331
+ :a3: TTO
1332
+ :numeric: 780
1333
+
1334
+ -
1335
+ :name: Tunisia
1336
+ :a2: TN
1337
+ :a3: TUN
1338
+ :numeric: 788
1339
+
1340
+ -
1341
+ :name: Turkey
1342
+ :a2: TR
1343
+ :a3: TUR
1344
+ :numeric: 792
1345
+
1346
+ -
1347
+ :name: Turkmenistan
1348
+ :a2: TM
1349
+ :a3: TKM
1350
+ :numeric: 795
1351
+
1352
+ -
1353
+ :name: Turks and Caicos Islands
1354
+ :a2: TC
1355
+ :a3: TCA
1356
+ :numeric: 796
1357
+
1358
+ -
1359
+ :name: Tuvalu
1360
+ :a2: TV
1361
+ :a3: TUV
1362
+ :numeric: 798
1363
+
1364
+ -
1365
+ :name: Uganda
1366
+ :a2: UG
1367
+ :a3: UGA
1368
+ :numeric: 800
1369
+
1370
+ -
1371
+ :name: Ukraine
1372
+ :a2: UA
1373
+ :a3: UKR
1374
+ :numeric: 804
1375
+
1376
+ -
1377
+ :name: United Arab Emirates
1378
+ :a2: AE
1379
+ :a3: ARE
1380
+ :numeric: 784
1381
+
1382
+ -
1383
+ :name: United Kingdom
1384
+ :a2: GB
1385
+ :a3: GBR
1386
+ :numeric: 826
1387
+
1388
+ -
1389
+ :name: United States Minor Outlying Islands
1390
+ :a2: UM
1391
+ :a3: UMI
1392
+ :numeric: 581
1393
+
1394
+ -
1395
+ :name: United States of America
1396
+ :a2: US
1397
+ :a3: USA
1398
+ :numeric: 840
1399
+
1400
+ -
1401
+ :name: Uruguay
1402
+ :a2: UY
1403
+ :a3: URY
1404
+ :numeric: 858
1405
+
1406
+ -
1407
+ :name: Uzbekistan
1408
+ :a2: UZ
1409
+ :a3: UZB
1410
+ :numeric: 860
1411
+
1412
+ -
1413
+ :name: Vanuatu
1414
+ :a2: VU
1415
+ :a3: VUT
1416
+ :numeric: 548
1417
+
1418
+ -
1419
+ :name: Vatican City
1420
+ :a2: VA
1421
+ :a3: VAT
1422
+ :numeric: 336
1423
+
1424
+ -
1425
+ :name: Venezuela
1426
+ :a2: VE
1427
+ :a3: VEN
1428
+ :numeric: 862
1429
+
1430
+ -
1431
+ :name: Vietnam
1432
+ :a2: VN
1433
+ :a3: VNM
1434
+ :numeric: 704
1435
+
1436
+ -
1437
+ :name: Virgin Islands, British
1438
+ :a2: VG
1439
+ :a3: VGB
1440
+ :numeric: 92
1441
+
1442
+ -
1443
+ :name: Virgin Islands, U.S.
1444
+ :a2: VI
1445
+ :a3: VIR
1446
+ :numeric: 850
1447
+
1448
+ -
1449
+ :name: Wallis and Futuna Islands
1450
+ :a2: WF
1451
+ :a3: WLF
1452
+ :numeric: 876
1453
+
1454
+ -
1455
+ :name: Western Sahara
1456
+ :a2: EH
1457
+ :a3: ESH
1458
+ :numeric: 732
1459
+
1460
+ -
1461
+ :name: Yemen
1462
+ :a2: YE
1463
+ :a3: YEM
1464
+ :numeric: 887
1465
+
1466
+ -
1467
+ :name: Zambia
1468
+ :a2: ZM
1469
+ :a3: ZMB
1470
+ :numeric: 894
1471
+
1472
+ -
1473
+ :name: Zimbabwe
1474
+ :a2: ZW
1475
+ :a3: ZWE
1476
+ :numeric: 716