world-flags 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -356,6 +356,10 @@ $("li.flag").click(function() {
356
356
  });
357
357
  ```
358
358
 
359
+ ## TODO for version 1.0
360
+
361
+ Suggestions welcome ;)
362
+
359
363
  ## Enjoy
360
364
 
361
365
  Copyright (2012) Kristian Mandrup
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -1,253 +1,253 @@
1
1
  {
2
2
  "en": {
3
- "ad": "Catalan",
4
- "ae": "Arabic",
5
- "af": "Afghan",
6
- "ag": "Antigua and Barbuda",
7
- "ai": "French",
8
- "al": "Albanian",
9
- "am": "Armenian",
10
- "ao": "Portuguese",
3
+ "ad": "ad:Catalan",
4
+ "ae": "ar-ae:Arabic",
5
+ "af": "af:Afghan",
6
+ "ag": "en-ag:English",
7
+ "ai": "fr-ai:French",
8
+ "al": "al:Albanian",
9
+ "am": "am:Armenian",
10
+ "ao": "pt-ao:Portuguese",
11
11
  "aq": "None",
12
- "ar": "Spanish",
13
- "as": "Samoan",
14
- "at": "Austrian",
15
- "au": "English",
16
- "aw": "English",
17
- "ax": "English",
18
- "az": "Dutch",
19
- "ba": "Azerbaijani",
20
- "bb": ["Bosnian", "Serbian", "Croatian"],
21
- "bd": "English",
22
- "be": "Bengali",
23
- "bf": ["Dutch", "French", "German"],
24
- "bg": "French",
25
- "bh": "Bulgarian",
26
- "bi": "Arabic",
27
- "bj": ["Kirundi", "French"],
28
- "bl": "French",
29
- "bm": "English",
30
- "bn": "Malay",
31
- "bo": "Spanish",
32
- "bq": "Dutch",
33
- "br": "Portuguese",
34
- "bs": "English",
35
- "bt": "Dzongkha",
36
- "bv": "Norwegian",
37
- "bw": ["English", "Setswana"],
38
- "by": ["Belarusian", "Russian"],
39
- "bz": "French",
40
- "ca": "English",
41
- "cc": "English",
42
- "cd": "French",
43
- "cf": "French",
44
- "cg": "French",
45
- "ch": ["German", "French", "Italian"],
46
- "ci": "French",
47
- "ck": "English",
48
- "cl": "Spanish",
49
- "cm": ["French", "English"],
50
- "cn": "Chinese",
51
- "co": "Spanish",
52
- "cr": "Spanish",
53
- "cu": "Spanish",
54
- "cv": "Portuguese",
55
- "cw": ["Papiamentu", "Dutch"],
56
- "cx": "English",
57
- "cy": ["Greek", "Turkish"],
58
- "cz": "Czech",
59
- "de": "German",
60
- "dj": ["French", "Arabic"],
61
- "dk": "Danish",
62
- "dm": "Spanish",
63
- "do": "Spanish",
64
- "dz": "French",
65
- "ec": "Spanish",
66
- "ee": "Estonian",
67
- "eg": "Arabic",
68
- "eh": "Arabic",
69
- "er": ["Arabic", "English"],
70
- "es": "Spanish",
71
- "et": "Amharic",
72
- "fi": ["Finnish", "Swedish"],
73
- "fj": "English",
74
- "fk": "English",
75
- "fm": "English",
76
- "fo": ["Faroese", "Danish"],
77
- "fr": "French",
78
- "ga": "French",
79
- "gb": "English",
80
- "gd": "English",
81
- "ge": "English",
82
- "gf": "French",
83
- "gg": "English",
84
- "gh": "English",
85
- "gi": "English",
86
- "gl": "Danish",
87
- "gm": "English",
88
- "gn": "French",
89
- "gp": "French",
90
- "gq": "French",
91
- "gr": "Greek",
92
- "gs": "Georgian",
93
- "gt": "Spanish",
94
- "gu": "French",
95
- "gw": "French",
96
- "gy": "English",
97
- "hk": ["English", "Chinese"],
98
- "hm": "English",
99
- "hn": "Spanish",
100
- "hr": "Croatian",
101
- "ht": "French",
102
- "hu": "Hungarian",
103
- "id": ["Indonesian","Vietnamese"],
104
- "ie": "Irish",
105
- "il": ["Hebrew", "Arabic"],
106
- "im": "English",
107
- "in": ["Hindi", "English"],
108
- "io": "English",
109
- "iq": ["Arabic", "Kurdish"],
110
- "ir": "Persian",
111
- "is": "Icelandic",
112
- "it": "Italian",
113
- "je": "English",
114
- "jm": "English",
115
- "jo": "Jordanian",
116
- "jp": "Japanese",
117
- "ke": "English",
118
- "kg": ["Kyrgyz", "Russian"],
119
- "kh": "French",
120
- "ki": ["English", "Gilbertese"],
121
- "km": ["Comorian", "Arabic", "French"],
122
- "kn": "English",
123
- "kp": "Korean",
124
- "kr": "Korean",
125
- "kw": "Arabic",
126
- "ky": "English",
127
- "kz": ["Kazakh", "Russian"],
128
- "la": "Lao",
129
- "lb": "Arabic",
130
- "lc": "English",
131
- "li": "German",
132
- "lk": ["Sinhala", "Tamil"],
133
- "lr": "English",
134
- "ls": ["Sesotho", "English"],
135
- "lt": "Lithuanian",
136
- "lu": ["Luxembourgish", "French", "German"],
137
- "lv": "Latvian",
138
- "ly": "Arabic",
139
- "ma": ["Arabic", "Berber"],
140
- "mc": "French",
141
- "md": "Romanian",
142
- "me": ["Serbian", "Bosnian", "Albanian", "Croatian"],
143
- "mf": "French",
144
- "mg": "French",
145
- "mh": "English",
146
- "mk": "Macedonian",
147
- "ml": "French",
148
- "mm": "Burmese",
149
- "mn": "Mongolian",
150
- "mo": "French",
151
- "mp": "English",
152
- "mq": "French",
153
- "mr": "English",
154
- "ms": "French",
155
- "mt": "French",
156
- "mu": "English",
157
- "mv": "Dhivehi",
158
- "mw": ["Chichewa", "English"],
159
- "mx": "Spanish",
160
- "my": "Malaysian",
161
- "mz": "French",
162
- "na": "English",
163
- "nc": "French",
164
- "ne": "French",
165
- "nf": "English",
166
- "ng": "English",
167
- "ni": "Spanish",
168
- "nl": "Dutch",
169
- "no": "Norwegian",
170
- "np": "Nepalese",
171
- "nr": ["English", "Nauruan"],
172
- "nu": ["Niuean", "English"],
173
- "nz": "English",
174
- "om": "Arabic",
175
- "pa": "Spanish",
176
- "pe": "Spanish",
177
- "pf": "French",
178
- "pg": "English",
179
- "ph": "Filipino",
180
- "pk": "Arabic",
181
- "pl": "Polish",
182
- "pm": "French",
183
- "pn": "English",
184
- "pr": "Spanish",
185
- "ps": ["Arabic", "Hebrew", "English"],
186
- "pt": "Portuguese",
187
- "pw": ["Palaun", "English"],
188
- "py": "Spanish",
189
- "qa": "Arabic",
190
- "re": "French",
191
- "ro": "Romanian",
192
- "rs": "Serbian",
193
- "ru": "Russian",
194
- "rw": "French",
195
- "sa": "Arabic",
196
- "sb": "English",
197
- "sc": ["French", "English"],
198
- "sd": "Arabic",
199
- "se": "Swedish",
200
- "sg": ["English", "Malay", "Chinese"],
201
- "sh": "Spanish",
202
- "si": "Slovenian",
203
- "sj": "Norwegian",
204
- "sk": "Slovakian",
205
- "sl": "French",
206
- "sm": "Italian",
207
- "sn": "Senegalese",
208
- "so": ["Somali", "Arabic"],
209
- "sr": "French",
210
- "ss": "French",
211
- "st": "French",
212
- "sv": "Spanish",
213
- "sx": "Dutch",
214
- "sy": "Arabic",
215
- "sz": ["Swati", "English"],
216
- "tc": "English",
217
- "td": "French",
218
- "tf": "French",
219
- "tg": "French",
220
- "th": "Thai",
221
- "tj": ["Tajik", "Russian"],
222
- "tk": ["Tokelauan", "English"],
223
- "tl": ["Tetum", "Portuguese"],
224
- "tm": ["Turkmen", "Russian"],
225
- "tn": "French",
226
- "to": "French",
227
- "tr": "Turkish",
228
- "tt": "French",
229
- "tv": ["Tuvaluan", "English"],
230
- "tw": ["Chinese", "Taiwanese"],
231
- "tz": ["Swahili", "English"],
232
- "ua": ["Ukrainian", "Russian"],
233
- "ug": ["Swahili", "English"],
234
- "um": "English",
235
- "us": "English",
236
- "uy": "Spanish",
237
- "uz": ["Uzbek", "Russian"],
238
- "va": ["Latin", "Italian"],
239
- "vc": "French",
240
- "ve": "Spanish",
241
- "vg": "English",
242
- "vi": "English",
243
- "vn": "Vietnamese",
244
- "vu": ["Bislama", "English", "French"],
245
- "wf": "French",
246
- "ws": ["Samoan", "English"],
247
- "ye": "Arabic",
248
- "yt": "French",
249
- "za": ["Afrikaans", "English", "Ndebele", "Sotho", "Swazi", "Tswana", "Tsonga", "Venda", "Xhosa", "Zulu"],
250
- "zm": "English",
251
- "zw": ["English", "Shona", "Sindebele"]
12
+ "ar": "es-ar:Spanish",
13
+ "as": "as:Samoan",
14
+ "at": "au:Austrian",
15
+ "au": "en-au:English",
16
+ "aw": "en-aw:English",
17
+ "ax": "en-ax:English",
18
+ "az": "nl-az:Dutch",
19
+ "ba": "ba:Azerbaijani",
20
+ "bb": ["bo:Bosnian", "se:Serbian", "hr:Croatian"],
21
+ "bd": "en-bd:English",
22
+ "be": "be-be:Bengali",
23
+ "bf": ["nl-bf:Dutch", "fr-bf:French", "de-bf:German"],
24
+ "bg": "fr-bg:French",
25
+ "bh": "bu:Bulgarian",
26
+ "bi": "ar-bi:Arabic",
27
+ "bj": ["bj:Kirundi", "fr-bj:French"],
28
+ "bl": "fr-bl:French",
29
+ "bm": "en-bm:English",
30
+ "bn": "ma-bn:Malay",
31
+ "bo": "es-bo:Spanish",
32
+ "bq": "nl-bq:Dutch",
33
+ "br": "pt-br:Portuguese",
34
+ "bs": "en-bs:English",
35
+ "bt": "bt:Dzongkha",
36
+ "bv": "nb-bv:Norwegian",
37
+ "bw": ["en-bw:English", "bw:Setswana"],
38
+ "by": ["be:Belarusian", "ru-by:Russian"],
39
+ "bz": "fr-bz:French",
40
+ "ca": "en-ca:English",
41
+ "cc": "en-cc:English",
42
+ "cd": "fr-cd:French",
43
+ "cf": "fr-cf:French",
44
+ "cg": "fr-cg:French",
45
+ "ch": ["de-ch:German", "fr-ch:French", "it-ch:Italian"],
46
+ "ci": "fr-ci:French",
47
+ "ck": "en-ck:English",
48
+ "cl": "es-cl:Spanish",
49
+ "cm": ["fr-cm:French", "en-cm:English"],
50
+ "cn": "zh:Chinese",
51
+ "co": "es:Spanish",
52
+ "cr": "es-cr:Spanish",
53
+ "cu": "es-cu:Spanish",
54
+ "cv": "pt-cv:Portuguese",
55
+ "cw": ["cw:Papiamentu", "nl-cw:Dutch"],
56
+ "cx": "en-cx:English",
57
+ "cy": ["gr-cy:Greek", "tr-cy:Turkish"],
58
+ "cz": "cz:Czech",
59
+ "de": "de:German",
60
+ "dj": ["fr-dj:French", "ar-dj:Arabic"],
61
+ "dk": "da:Danish",
62
+ "dm": "es-dm:Spanish",
63
+ "do": "es-do:Spanish",
64
+ "dz": "fr-dz:French",
65
+ "ec": "es-ec:Spanish",
66
+ "ee": "ee:Estonian",
67
+ "eg": "ar-eg:Arabic",
68
+ "eh": "ar-eh:Arabic",
69
+ "er": ["ar-er:Arabic", "en-er:English"],
70
+ "es": "es:Spanish",
71
+ "et": "et:Amharic",
72
+ "fi": ["gi:Finnish", "sv-fi:Swedish"],
73
+ "fj": "en-fj:English",
74
+ "fk": "en-fk:English",
75
+ "fm": "en-fm:English",
76
+ "fo": ["fo:Faroese", "da-fo:Danish"],
77
+ "fr": "fr:French",
78
+ "ga": "fr-ga:French",
79
+ "gb": "en-gb:English",
80
+ "gd": "en-gd:English",
81
+ "ge": "en-ge:English",
82
+ "gf": "fr-gf:French",
83
+ "gg": "en-gg:English",
84
+ "gh": "en-gh:English",
85
+ "gi": "en-gi:English",
86
+ "gl": "da:Danish",
87
+ "gm": "en-gm:English",
88
+ "gn": "fr-gn:French",
89
+ "gp": "fr-gp:French",
90
+ "gq": "fr-gq:French",
91
+ "gr": "gr:Greek",
92
+ "gs": "ge:Georgian",
93
+ "gt": "es-gt:Spanish",
94
+ "gu": "fr-gu:French",
95
+ "gw": "fr-gw:French",
96
+ "gy": "en-gy:English",
97
+ "hk": ["en-hk:English", "zh-hk:Chinese"],
98
+ "hm": "en-hm:English",
99
+ "hn": "es-hn:Spanish",
100
+ "hr": "hr:Croatian",
101
+ "ht": "fr-ht:French",
102
+ "hu": "hu:Hungarian",
103
+ "id": ["id:Indonesian","vn-id:Vietnamese"],
104
+ "ie": "ie:Irish",
105
+ "il": ["il:Hebrew", "ar-il:Arabic"],
106
+ "im": "en-im:English",
107
+ "in": ["in:Hindi", "en-in:English"],
108
+ "io": "en:English",
109
+ "iq": ["ar-iq:Arabic", "tr:Kurdish"],
110
+ "ir": "ir:Persian",
111
+ "is": "is:Icelandic",
112
+ "it": "it:Italian",
113
+ "je": "en-je:English",
114
+ "jm": "en-jm:English",
115
+ "jo": "jo:Jordanian",
116
+ "jp": "jp:Japanese",
117
+ "ke": "en-ke:English",
118
+ "kg": ["kg:Kyrgyz", "ru-kg:Russian"],
119
+ "kh": "fr-kh:French",
120
+ "ki": ["en-ki:English", "ki:Gilbertese"],
121
+ "km": ["km:Comorian", "ar-km:Arabic", "fr-km:French"],
122
+ "kn": "en-kn:English",
123
+ "kp": "kp:Korean",
124
+ "kr": "kr:Korean",
125
+ "kw": "ar-kw:Arabic",
126
+ "ky": "en-ky:English",
127
+ "kz": ["kz:Kazakh", "ru-kz:Russian"],
128
+ "la": "la:Lao",
129
+ "lb": "ar-lb:Arabic",
130
+ "lc": "en-lc:English",
131
+ "li": "de-li:German",
132
+ "lk": ["lk:Sinhala", "Tamil"],
133
+ "lr": "en-lr:English",
134
+ "ls": ["ls:Sesotho", "en:English"],
135
+ "lt": "lt:Lithuanian",
136
+ "lu": ["lu:Luxembourgish", "fr-lu:French", "de-lu:German"],
137
+ "lv": "lv:Latvian",
138
+ "ly": "ar-ly:Arabic",
139
+ "ma": ["ar-ma:Arabic", "ma:Berber"],
140
+ "mc": "fr-mc:French",
141
+ "md": "ro-md:Romanian",
142
+ "me": ["se:Serbian", "bo:Bosnian", "al:Albanian", "hr:Croatian"],
143
+ "mf": "fr-mf:French",
144
+ "mg": "fr-mg:French",
145
+ "mh": "en-mh:English",
146
+ "mk": "mk:Macedonian",
147
+ "ml": "fr-ml:French",
148
+ "mm": "mm:Burmese",
149
+ "mn": "mn:Mongolian",
150
+ "mo": "fr-mo:French",
151
+ "mp": "en-mp:English",
152
+ "mq": "fr-mq:French",
153
+ "mr": "en-mr:English",
154
+ "ms": "fr-ms:French",
155
+ "mt": "fr-mt:French",
156
+ "mu": "en-mu:English",
157
+ "mv": "mv:Dhivehi",
158
+ "mw": ["mw:Chichewa", "en-mw:English"],
159
+ "mx": "es-mx:Spanish",
160
+ "my": "ma:Malaysian",
161
+ "mz": "fr-mz:French",
162
+ "na": "en-na:English",
163
+ "nc": "fr-nc:French",
164
+ "ne": "fr-ne:French",
165
+ "nf": "en-nf:English",
166
+ "ng": "en-ng:English",
167
+ "ni": "es-ni:Spanish",
168
+ "nl": "nl:Dutch",
169
+ "no": "nb:Norwegian",
170
+ "np": "np:Nepalese",
171
+ "nr": ["en:English", "nr:Nauruan"],
172
+ "nu": ["nu:Niuean", "en-nu:English"],
173
+ "nz": "en-nz:English",
174
+ "om": "ar-om:Arabic",
175
+ "pa": "es-pa:Spanish",
176
+ "pe": "es-pe:Spanish",
177
+ "pf": "fr-pf:French",
178
+ "pg": "en-pg:English",
179
+ "ph": "ph:Filipino",
180
+ "pk": "ar-pk:Arabic",
181
+ "pl": "pl:Polish",
182
+ "pm": "fr-pm:French",
183
+ "pn": "en-pn:English",
184
+ "pr": "es-pr:Spanish",
185
+ "ps": ["ar-ps:Arabic", "ps:Hebrew", "en-ps:English"],
186
+ "pt": "pt:Portuguese",
187
+ "pw": ["pw:Palaun", "en:English"],
188
+ "py": "es-py:Spanish",
189
+ "qa": "ar-qu:Arabic",
190
+ "re": "fr-re:French",
191
+ "ro": "ro:Romanian",
192
+ "rs": "se-rs:Serbian",
193
+ "ru": "ru:Russian",
194
+ "rw": "fr-rw:French",
195
+ "sa": "ar-sa:Arabic",
196
+ "sb": "en-sb:English",
197
+ "sc": ["fr-sc:French", "en-sc:English"],
198
+ "sd": "ar-sd:Arabic",
199
+ "se": "sv:Swedish",
200
+ "sg": ["en-sg:English", "ma-sg:Malay", "zh-sg:Chinese"],
201
+ "sh": "es-sh:Spanish",
202
+ "si": "si:Slovenian",
203
+ "sj": "nb:Norwegian",
204
+ "sk": "sk:Slovakian",
205
+ "sl": "fr-sl:French",
206
+ "sm": "it-sm:Italian",
207
+ "sn": "se:Senegalese",
208
+ "so": ["so:Somali", "ar-so:Arabic"],
209
+ "sr": "fr-sr:French",
210
+ "ss": "fr-ss:French",
211
+ "st": "fr-st:French",
212
+ "sv": "es-sv:Spanish",
213
+ "sx": "nl-sx:Dutch",
214
+ "sy": "ar-sy:Arabic",
215
+ "sz": ["sz:Swati", "en-sz:English"],
216
+ "tc": "en-tc:English",
217
+ "td": "fr-td:French",
218
+ "tf": "fr-tf:French",
219
+ "tg": "fr-tg:French",
220
+ "th": "th:Thai",
221
+ "tj": ["tj:Tajik", "ru-tj:Russian"],
222
+ "tk": ["tk:Tokelauan", "en-tk:English"],
223
+ "tl": ["tl:Tetum", "pt-tl:Portuguese"],
224
+ "tm": ["tm:Turkmen", "ru-tm:Russian"],
225
+ "tn": "fr-tn:French",
226
+ "to": "fr-to:French",
227
+ "tr": "tr:Turkish",
228
+ "tt": "fr-tt:French",
229
+ "tv": ["tv:Tuvaluan", "en-tv:English"],
230
+ "tw": ["zh:Chinese", "zh-tw:Taiwanese"],
231
+ "tz": ["tz:Swahili", "en:English"],
232
+ "ua": ["uk:Ukrainian", "ru-ua:Russian"],
233
+ "ug": ["ug:Swahili", "en-ug:English"],
234
+ "um": "en-um:English",
235
+ "us": "en-us:English",
236
+ "uy": "es-uy:Spanish",
237
+ "uz": ["uz:Uzbek", "ru-uz:Russian"],
238
+ "va": ["va:Latin", "it:Italian"],
239
+ "vc": "fr-vc:French",
240
+ "ve": "es-ve:Spanish",
241
+ "vg": "en-vg:English",
242
+ "vi": "en-vi:English",
243
+ "vn": "vn:Vietnamese",
244
+ "vu": ["vu:Bislama", "en-vu:English", "fr-vu:French"],
245
+ "wf": "fr-wf:French",
246
+ "ws": ["as:Samoan", "en-ws:English"],
247
+ "ye": "ar-ye:Arabic",
248
+ "yt": "fr-yt:French",
249
+ "za": ["af:Afrikaans", "za-en:English", "Ndebele", "Sotho", "Swazi", "Tswana", "Tsonga", "Venda", "Xhosa", "Zulu"],
250
+ "zm": "en:English",
251
+ "zw": ["en-zw:English", "Shona", "Sindebele"]
252
252
  }
253
253
  }
@@ -22,6 +22,13 @@ describe WorldFlags::Helper::View do
22
22
  output = flags_list 32 do
23
23
  flags [:ar, :gb]
24
24
  end
25
- output.should == "<ul class=\"f32\"><li class=\"flag ar\" data-cc=\"ar\" data-country_name=\"Argentina\" data-language_name=\"Spanish\" data-locale=\"ar\">&nbsp;</li><li class=\"flag gb\" data-cc=\"gb\" data-country_name=\"United Kingdom\" data-language_name=\"English\" data-locale=\"gb\">&nbsp;</li></ul>"
25
+ output.should == "<ul class=\"f32\"><li class=\"flag ar\" data-cc=\"ar\" data-country_name=\"Argentina\" data-language_name=\"es-ar:Spanish\" data-locale=\"ar\">&nbsp;</li><li class=\"flag gb\" data-cc=\"gb\" data-country_name=\"United Kingdom\" data-language_name=\"en-gb:English\" data-locale=\"gb\">&nbsp;</li></ul>"
26
+ end
27
+
28
+ it "should list flags for Zaire with multiple language combis" do
29
+ output = flags_list 32 do
30
+ flags [:tw]
31
+ end
32
+ output.should == "<ul class=\"f32\"><li class=\"flag tw\" data-cc=\"tw\" data-country_name=\"United States\" data-language_name=\"zh:Chinese zh-tw:Taiwanese\" data-locale=\"tw\">&nbsp;</li></ul>"
26
33
  end
27
34
  end
data/world-flags.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "world-flags"
8
- s.version = "0.3.5"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: world-flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: 240785203955185004
197
+ hash: -558446436876807119
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  none: false
200
200
  requirements: