country-select-engine 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/.gitignore +25 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +97 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +105 -0
  6. data/Rakefile +29 -0
  7. data/config/locales/countries.de.yml +268 -0
  8. data/config/locales/countries.en-US.yml +268 -0
  9. data/config/locales/countries.en.yml +268 -0
  10. data/config/locales/countries.es.yml +268 -0
  11. data/config/locales/countries.fr.yml +268 -0
  12. data/config/locales/countries.it.yml +268 -0
  13. data/config/locales/countries.ja.yml +268 -0
  14. data/config/locales/countries.ru.yml +268 -0
  15. data/config/locales/countries.zh-CN.yml +268 -0
  16. data/config/locales/countries.zh-TW.yml +268 -0
  17. data/config/locales/currencies.de.yml +163 -0
  18. data/config/locales/currencies.en-US.yml +163 -0
  19. data/config/locales/currencies.en.yml +163 -0
  20. data/config/locales/currencies.es.yml +163 -0
  21. data/config/locales/currencies.fr.yml +163 -0
  22. data/config/locales/currencies.it.yml +163 -0
  23. data/config/locales/currencies.ja.yml +163 -0
  24. data/config/locales/currencies.ru.yml +163 -0
  25. data/config/locales/currencies.zh-CN.yml +163 -0
  26. data/config/locales/currencies.zh-TW.yml +163 -0
  27. data/config/locales/languages.de.yml +12 -0
  28. data/config/locales/languages.en-US.yml +12 -0
  29. data/config/locales/languages.en.yml +12 -0
  30. data/config/locales/languages.es.yml +12 -0
  31. data/config/locales/languages.fr.yml +12 -0
  32. data/config/locales/languages.it.yml +12 -0
  33. data/config/locales/languages.ja.yml +12 -0
  34. data/config/locales/languages.ru.yml +12 -0
  35. data/config/locales/languages.zh-CN.yml +12 -0
  36. data/config/locales/languages.zh-TW.yml +12 -0
  37. data/config/locales/timezones.de.yml +144 -0
  38. data/config/locales/timezones.en.yml +144 -0
  39. data/config/locales/timezones.es.yml +144 -0
  40. data/config/locales/timezones.fr.yml +144 -0
  41. data/config/locales/timezones.it.yml +144 -0
  42. data/config/locales/timezones.ja.yml +144 -0
  43. data/config/locales/timezones.ru.yml +144 -0
  44. data/config/locales/timezones.zh-CN.yml +144 -0
  45. data/config/locales/timezones.zh-TW.yml +144 -0
  46. data/config/routes.rb +2 -0
  47. data/country-select-engine.gemspec +26 -0
  48. data/lib/content_helper.rb +43 -0
  49. data/lib/country-select-engine/engine.rb +4 -0
  50. data/lib/country-select-engine/version.rb +3 -0
  51. data/lib/country-select-engine.rb +181 -0
  52. data/lib/parse_helper.rb +26 -0
  53. data/lib/tasks/import_locales.rake +72 -0
  54. data/script/convert_cldr.rb +116 -0
  55. data/script/google.yml +143 -0
  56. data/script/google.zh-TW.yml +143 -0
  57. data/script/rails +8 -0
  58. data/script/timezones.yml +144 -0
  59. data/script/translate_timezones.rb +26 -0
  60. data/spec/dummy/README.rdoc +261 -0
  61. data/spec/dummy/Rakefile +7 -0
  62. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  63. data/spec/dummy/app/assets/javascripts/dummy.js +2 -0
  64. data/spec/dummy/app/assets/stylesheets/application.css +14 -0
  65. data/spec/dummy/app/assets/stylesheets/dummy.css +4 -0
  66. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  67. data/spec/dummy/app/controllers/dummy_controller.rb +4 -0
  68. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  69. data/spec/dummy/app/helpers/dummy_helper.rb +2 -0
  70. data/spec/dummy/app/mailers/.gitkeep +0 -0
  71. data/spec/dummy/app/models/.gitkeep +0 -0
  72. data/spec/dummy/app/views/dummy/index.html.erb +41 -0
  73. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  74. data/spec/dummy/config/application.rb +62 -0
  75. data/spec/dummy/config/boot.rb +10 -0
  76. data/spec/dummy/config/database.yml +25 -0
  77. data/spec/dummy/config/environment.rb +5 -0
  78. data/spec/dummy/config/environments/development.rb +37 -0
  79. data/spec/dummy/config/environments/production.rb +67 -0
  80. data/spec/dummy/config/environments/test.rb +37 -0
  81. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  82. data/spec/dummy/config/initializers/inflections.rb +15 -0
  83. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  84. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  85. data/spec/dummy/config/initializers/session_store.rb +8 -0
  86. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  87. data/spec/dummy/config/routes.rb +60 -0
  88. data/spec/dummy/config.ru +4 -0
  89. data/spec/dummy/db/development.sqlite3 +0 -0
  90. data/spec/dummy/lib/assets/.gitkeep +0 -0
  91. data/spec/dummy/log/.gitkeep +0 -0
  92. data/spec/dummy/public/404.html +26 -0
  93. data/spec/dummy/public/422.html +26 -0
  94. data/spec/dummy/public/500.html +25 -0
  95. data/spec/dummy/public/favicon.ico +0 -0
  96. data/spec/dummy/script/rails +6 -0
  97. data/spec/localized_country_select_test.rb +134 -0
  98. data/spec/spec_helper.rb +32 -0
  99. data/vendor/assets/images/chosen-sprite.png +0 -0
  100. data/vendor/assets/javascripts/chosen.jquery.min.js +10 -0
  101. data/vendor/assets/stylesheets/chosen.css +396 -0
  102. metadata +209 -0
data/.gitignore ADDED
@@ -0,0 +1,25 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile ~/.gitignore_global
6
+
7
+ # Ignore bundler config
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+
13
+ # Ignore all logfiles and tempfiles.
14
+ /log/*.log
15
+ /tmp
16
+ /spec/dummy/tmp
17
+ /public/assets/
18
+ /config/secret_settings.yml
19
+
20
+ *.log
21
+ .DS_Store
22
+ .sass-cache/
23
+ *.bak
24
+ *~
25
+ *.swp
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in country-select-engine.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # jquery-rails is used by the dummy application
9
+ gem "jquery-rails"
10
+
11
+ # Declare any dependencies that are still in development here instead of in
12
+ # your gemspec. These might include edge Rails or gems from your path or
13
+ # Git. Remember to move these dependencies to your gemspec before releasing
14
+ # your gem to rubygems.org.
15
+
16
+ # To use debugger
17
+ # gem 'ruby-debug19', :require => 'ruby-debug'
data/Gemfile.lock ADDED
@@ -0,0 +1,97 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ country-select-engine (0.1.0)
5
+ rails (~> 3.2.3)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.5)
11
+ actionpack (= 3.2.5)
12
+ mail (~> 2.4.4)
13
+ actionpack (3.2.5)
14
+ activemodel (= 3.2.5)
15
+ activesupport (= 3.2.5)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.1)
19
+ rack (~> 1.4.0)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.1.3)
23
+ activemodel (3.2.5)
24
+ activesupport (= 3.2.5)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.5)
27
+ activemodel (= 3.2.5)
28
+ activesupport (= 3.2.5)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.5)
32
+ activemodel (= 3.2.5)
33
+ activesupport (= 3.2.5)
34
+ activesupport (3.2.5)
35
+ i18n (~> 0.6)
36
+ multi_json (~> 1.0)
37
+ arel (3.0.2)
38
+ builder (3.0.0)
39
+ erubis (2.7.0)
40
+ hike (1.2.1)
41
+ i18n (0.6.0)
42
+ journey (1.0.3)
43
+ jquery-rails (2.0.2)
44
+ railties (>= 3.2.0, < 5.0)
45
+ thor (~> 0.14)
46
+ json (1.7.3)
47
+ mail (2.4.4)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.18)
52
+ multi_json (1.3.6)
53
+ polyglot (0.3.3)
54
+ rack (1.4.1)
55
+ rack-cache (1.2)
56
+ rack (>= 0.4)
57
+ rack-ssl (1.3.2)
58
+ rack
59
+ rack-test (0.6.1)
60
+ rack (>= 1.0)
61
+ rails (3.2.5)
62
+ actionmailer (= 3.2.5)
63
+ actionpack (= 3.2.5)
64
+ activerecord (= 3.2.5)
65
+ activeresource (= 3.2.5)
66
+ activesupport (= 3.2.5)
67
+ bundler (~> 1.0)
68
+ railties (= 3.2.5)
69
+ railties (3.2.5)
70
+ actionpack (= 3.2.5)
71
+ activesupport (= 3.2.5)
72
+ rack-ssl (~> 1.3.2)
73
+ rake (>= 0.8.7)
74
+ rdoc (~> 3.4)
75
+ thor (>= 0.14.6, < 2.0)
76
+ rake (0.9.2.2)
77
+ rdoc (3.12)
78
+ json (~> 1.4)
79
+ sprockets (2.1.3)
80
+ hike (~> 1.2)
81
+ rack (~> 1.0)
82
+ tilt (~> 1.1, != 1.3.0)
83
+ sqlite3 (1.3.6)
84
+ thor (0.15.2)
85
+ tilt (1.3.3)
86
+ treetop (1.4.10)
87
+ polyglot
88
+ polyglot (>= 0.3.1)
89
+ tzinfo (0.3.33)
90
+
91
+ PLATFORMS
92
+ ruby
93
+
94
+ DEPENDENCIES
95
+ country-select-engine!
96
+ jquery-rails
97
+ sqlite3
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 YOURNAME
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.rdoc ADDED
@@ -0,0 +1,105 @@
1
+ == CountrySelectEngine
2
+
3
+ A Rails engine to provide localized country names, languages and currencies. For example, it translates 'en' to 'English' for language, 'USD' to 'US Dollar' for currency and 'US' to 'United States' for country.
4
+
5
+ It uses Rails internationalization framework (http://rails-i18n.org) for translation. It requires Rails 3.2 or later (and hpricot optionally).
6
+
7
+ You can easily translate country codes in your application like this:
8
+
9
+ <%= I18n.t 'US', :scope => 'countries' %>
10
+
11
+ And to create selection menu:
12
+
13
+ <%= localized_country_select(:user, :country, [], :include_blank => 'Please choose...') %>
14
+
15
+ will become:
16
+
17
+ <select name="user[country]" id="user_country">
18
+ <option value="">Please choose...</option>
19
+ <option disabled="disabled" value="">-------------</option>
20
+ <option value="AF">Afghanistan</option>
21
+ ...
22
+ <option value="ZW">Zimbabwe</option>
23
+ </select>
24
+
25
+ You can do the same for language ('en', 'ja', 'fr', etc.) and currency ('USD', 'GBP', 'EUR', etc.)
26
+
27
+ == Install
28
+
29
+ Add this gem in Gemfile of your application
30
+
31
+ gem 'country-select-engine'
32
+
33
+ or any variation with :path or :git
34
+
35
+ == Generating translation files
36
+
37
+ The translation files are generated through ruby-cldr:
38
+
39
+ thor cldr:download
40
+ thor cldr:export --merge
41
+
42
+ Then 'script/convert_cldr.rb' is used to tidy up.
43
+
44
+ == Generating translation files (deprecated)
45
+
46
+ If you want to regenerate your own, in your application, use
47
+
48
+ rake country_select:import_country[locales]
49
+
50
+ or in dummy application of this engine
51
+
52
+ rake app:country_select:import_country[locales]
53
+
54
+ Country names are imported from Unicode.org's CLDR repository (http://www.unicode.org/cldr/data/charts/summary/root.html)
55
+
56
+ Don't forget to restart the application when you add new locale.
57
+
58
+ == ActionView helper
59
+
60
+ ActionView helper code is adapted from Rails' default *country_select* plugin (previously in core).
61
+ See http://github.com/rails/country_select/tree/master/lib/country_select.rb
62
+
63
+ == Chosen javascript
64
+
65
+ It includes Chosen (http://harvesthq.github.com/chosen/) in assets for easiler selection.
66
+
67
+ == Options
68
+
69
+ @:exclude@ option
70
+
71
+ <%= localized_country_select(:user, :country, ['English'], :include_blank => 'Please choose...', :exclude => ['Afrikaans']) %>
72
+
73
+ @:only@ option
74
+
75
+ <%= localized_country_select(:user, :country, ['English'], :include_blank => 'Please choose...', :only => ['German', 'French']) %>
76
+
77
+ @:symbol@ option
78
+
79
+ ':symbol => :pretend' to prepend symbol to value in selection
80
+ ':symbol => :append' to append symbol to value in selection
81
+
82
+ == Framework usage
83
+
84
+ This engine should also integrate nicely with various formbuilders, including Formtastic
85
+
86
+ Formtastic example:
87
+
88
+ <%= semantic_form_for @user do |form| %>
89
+ ...
90
+ <%= form.input :home_country, :as => :country, :priority_countries => ['USA'], :include_blank => 'Please choose country...', :only => ['USA', 'Germany', 'France']) %>
91
+ ...
92
+ <% end %>
93
+
94
+ == Copyright
95
+
96
+ - Copyright (c) 2012 Yen-Ju Chen, released under the MIT license
97
+ - Copyright (c) 2008 Karel Minarik (www.karmi.cz), released under the MIT license
98
+
99
+ == Other resources
100
+
101
+ * http://github.com/rails/country_select (Default Rails plugin)
102
+ * http://github.com/russ/country_code_select (Stores country code, not name)
103
+ * http://github.com/onomojo/i18n-country-translations
104
+ * http://github.com/onomojo/i18n_country_select
105
+
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'CountrySelectEngine'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+
28
+ Bundler::GemHelper.install_tasks
29
+
@@ -0,0 +1,268 @@
1
+ de:
2
+ countries:
3
+ AD: Andorra
4
+ AE: Vereinigte Arabische Emirate
5
+ AF: Afghanistan
6
+ AG: Antigua und Barbuda
7
+ AI: Anguilla
8
+ AL: Albanien
9
+ AM: Armenien
10
+ AN: Niederländische Antillen
11
+ AO: Angola
12
+ AQ: Antarktis
13
+ AR: Argentinien
14
+ AS: Amerikanisch-Samoa
15
+ AT: Österreich
16
+ AU: Australien
17
+ AW: Aruba
18
+ AX: Alandinseln
19
+ AZ: Aserbaidschan
20
+ BA: Bosnien und Herzegowina
21
+ BB: Barbados
22
+ BD: Bangladesch
23
+ BE: Belgien
24
+ BF: Burkina Faso
25
+ BG: Bulgarien
26
+ BH: Bahrain
27
+ BI: Burundi
28
+ BJ: Benin
29
+ BL: St. Barthélemy
30
+ BM: Bermuda
31
+ BN: Brunei Darussalam
32
+ BO: Bolivien
33
+ BQ: British Antarctic Territory
34
+ BR: Brasilien
35
+ BS: Bahamas
36
+ BT: Bhutan
37
+ BV: Bouvetinsel
38
+ BW: Botsuana
39
+ BY: Belarus
40
+ BZ: Belize
41
+ CA: Kanada
42
+ CC: Kokosinseln
43
+ CD: Demokratische Republik Kongo
44
+ CF: Zentralafrikanische Republik
45
+ CG: Kongo
46
+ CH: Schweiz
47
+ CI: Côte d’Ivoire
48
+ CK: Cookinseln
49
+ CL: Chile
50
+ CM: Kamerun
51
+ CN: China
52
+ CO: Kolumbien
53
+ CR: Costa Rica
54
+ CS: Serbien und Montenegro
55
+ CT: Canton and Enderbury Islands
56
+ CU: Kuba
57
+ CV: Kap Verde
58
+ CX: Weihnachtsinsel
59
+ CY: Zypern
60
+ CZ: Tschechische Republik
61
+ DD: East Germany
62
+ DE: Deutschland
63
+ DJ: Dschibuti
64
+ DK: Dänemark
65
+ DM: Dominica
66
+ DO: Dominikanische Republik
67
+ DZ: Algerien
68
+ EC: Ecuador
69
+ EE: Estland
70
+ EG: Ägypten
71
+ EH: Westsahara
72
+ ER: Eritrea
73
+ ES: Spanien
74
+ ET: Äthiopien
75
+ FI: Finnland
76
+ FJ: Fidschi
77
+ FK: Falklandinseln
78
+ FM: Mikronesien
79
+ FO: Färöer
80
+ FQ: French Southern and Antarctic Territories
81
+ FR: Frankreich
82
+ FX: Metropolitan France
83
+ GA: Gabun
84
+ GB: Vereinigtes Königreich
85
+ GD: Grenada
86
+ GE: Georgien
87
+ GF: Französisch-Guayana
88
+ GG: Guernsey
89
+ GH: Ghana
90
+ GI: Gibraltar
91
+ GL: Grönland
92
+ GM: Gambia
93
+ GN: Guinea
94
+ GP: Guadeloupe
95
+ GQ: Äquatorialguinea
96
+ GR: Griechenland
97
+ GS: Südgeorgien und die Südlichen Sandwichinseln
98
+ GT: Guatemala
99
+ GU: Guam
100
+ GW: Guinea-Bissau
101
+ GY: Guyana
102
+ HK: Hongkong
103
+ HM: Heard- und McDonald-Inseln
104
+ HN: Honduras
105
+ HR: Kroatien
106
+ HT: Haiti
107
+ HU: Ungarn
108
+ ID: Indonesien
109
+ IE: Irland
110
+ IL: Israel
111
+ IM: Isle of Man
112
+ IN: Indien
113
+ IO: Britisches Territorium im Indischen Ozean
114
+ IQ: Irak
115
+ IR: Iran
116
+ IS: Island
117
+ IT: Italien
118
+ JE: Jersey
119
+ JM: Jamaika
120
+ JO: Jordanien
121
+ JP: Japan
122
+ JT: Johnston Island
123
+ KE: Kenia
124
+ KG: Kirgisistan
125
+ KH: Kambodscha
126
+ KI: Kiribati
127
+ KM: Komoren
128
+ KN: St. Kitts und Nevis
129
+ KP: Demokratische Volksrepublik Korea
130
+ KR: Republik Korea
131
+ KW: Kuwait
132
+ KY: Kaimaninseln
133
+ KZ: Kasachstan
134
+ LA: Laos
135
+ LB: Libanon
136
+ LC: St. Lucia
137
+ LI: Liechtenstein
138
+ LK: Sri Lanka
139
+ LR: Liberia
140
+ LS: Lesotho
141
+ LT: Litauen
142
+ LU: Luxemburg
143
+ LV: Lettland
144
+ LY: Libyen
145
+ MA: Marokko
146
+ MC: Monaco
147
+ MD: Republik Moldau
148
+ ME: Montenegro
149
+ MF: St. Martin
150
+ MG: Madagaskar
151
+ MH: Marshallinseln
152
+ MI: Midway Islands
153
+ MK: Mazedonien
154
+ ML: Mali
155
+ MM: Myanmar
156
+ MN: Mongolei
157
+ MO: Macao
158
+ MP: Nördliche Marianen
159
+ MQ: Martinique
160
+ MR: Mauretanien
161
+ MS: Montserrat
162
+ MT: Malta
163
+ MU: Mauritius
164
+ MV: Malediven
165
+ MW: Malawi
166
+ MX: Mexiko
167
+ MY: Malaysia
168
+ MZ: Mosambik
169
+ NA: Namibia
170
+ NC: Neukaledonien
171
+ NE: Niger
172
+ NF: Norfolkinsel
173
+ NG: Nigeria
174
+ NI: Nicaragua
175
+ NL: Niederlande
176
+ 'NO': Norwegen
177
+ NP: Nepal
178
+ NQ: Dronning Maud Land
179
+ NR: Nauru
180
+ NT: Neutral Zone
181
+ NU: Niue
182
+ NZ: Neuseeland
183
+ OM: Oman
184
+ PA: Panama
185
+ PC: Pacific Islands Trust Territory
186
+ PE: Peru
187
+ PF: Französisch-Polynesien
188
+ PG: Papua-Neuguinea
189
+ PH: Philippinen
190
+ PK: Pakistan
191
+ PL: Polen
192
+ PM: St. Pierre und Miquelon
193
+ PN: Pitcairn
194
+ PR: Puerto Rico
195
+ PS: Palästinensische Gebiete
196
+ PT: Portugal
197
+ PU: U.S. Miscellaneous Pacific Islands
198
+ PW: Palau
199
+ PY: Paraguay
200
+ PZ: Panama Canal Zone
201
+ QA: Katar
202
+ QO: Äußeres Ozeanien
203
+ QU: Europäische Union
204
+ RE: Réunion
205
+ RO: Rumänien
206
+ RS: Serbien
207
+ RU: Russische Föderation
208
+ RW: Ruanda
209
+ SA: Saudi-Arabien
210
+ SB: Salomonen
211
+ SC: Seychellen
212
+ SD: Sudan
213
+ SE: Schweden
214
+ SG: Singapur
215
+ SH: St. Helena
216
+ SI: Slowenien
217
+ SJ: Svalbard und Jan Mayen
218
+ SK: Slowakei
219
+ SL: Sierra Leone
220
+ SM: San Marino
221
+ SN: Senegal
222
+ SO: Somalia
223
+ SR: Suriname
224
+ ST: São Tomé und Príncipe
225
+ SU: Union of Soviet Socialist Republics
226
+ SV: El Salvador
227
+ SY: Syrien
228
+ SZ: Swasiland
229
+ TC: Turks- und Caicosinseln
230
+ TD: Tschad
231
+ TF: Französische Süd- und Antarktisgebiete
232
+ TG: Togo
233
+ TH: Thailand
234
+ TJ: Tadschikistan
235
+ TK: Tokelau
236
+ TL: Osttimor
237
+ TM: Turkmenistan
238
+ TN: Tunesien
239
+ TO: Tonga
240
+ TR: Türkei
241
+ TT: Trinidad und Tobago
242
+ TV: Tuvalu
243
+ TW: Taiwan
244
+ TZ: Tansania
245
+ UA: Ukraine
246
+ UG: Uganda
247
+ UM: Amerikanisch-Ozeanien
248
+ US: Vereinigte Staaten
249
+ UY: Uruguay
250
+ UZ: Usbekistan
251
+ VA: Vatikanstadt
252
+ VC: St. Vincent und die Grenadinen
253
+ VD: North Vietnam
254
+ VE: Venezuela
255
+ VG: Britische Jungferninseln
256
+ VI: Amerikanische Jungferninseln
257
+ VN: Vietnam
258
+ VU: Vanuatu
259
+ WF: Wallis und Futuna
260
+ WK: Wake Island
261
+ WS: Samoa
262
+ YD: People's Democratic Republic of Yemen
263
+ YE: Jemen
264
+ YT: Mayotte
265
+ ZA: Südafrika
266
+ ZM: Sambia
267
+ ZW: Simbabwe
268
+ ZZ: Unbekannte oder ungültige Region