iso 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README.md +7 -18
  2. data/VERSION +1 -1
  3. data/iso.gemspec +2 -1
  4. data/locales/en.yml +1 -1
  5. data/locales/fr.yml +435 -0
  6. metadata +17 -16
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # iso
2
2
 
3
- This project is a subset implementation of the ISO spec.
3
+ [![Build Status](https://secure.travis-ci.org/tigrish/iso.png)](http://travis-ci.org/tigrish/iso)
4
4
 
5
- Currently only the language and region subtags are supported - there is no plan to implement the others.
5
+ This project is a ruby implementation of ISO 639-1 alpha2 and ISO 3166-1. It includes definitions of all two letter language and region codes.
6
6
 
7
7
  ## Languages
8
8
 
@@ -30,7 +30,7 @@ Regions are defined by **ISO 3166-1**; that is the 2 letter uppercase region cod
30
30
 
31
31
  ## Tags
32
32
 
33
- The combination of a language and a region is called a Tag ::
33
+ The combination of a language and a region is called a Tag :
34
34
 
35
35
  > ISO::Tag.new('pt-BR')
36
36
 
@@ -42,19 +42,8 @@ The combination of a language and a region is called a Tag ::
42
42
  @name="Portuguese">,
43
43
  @region=#<ISO::Region:0x007fe2ba412e28
44
44
  @code="BR",
45
- @name="Brazil">>
46
-
47
- ## Contributing to iso
48
-
49
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
50
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
51
- * Fork the project.
52
- * Start a feature/bugfix branch.
53
- * Commit and push until you are happy with your contribution.
54
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
55
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
56
-
57
- #### Copyright
58
-
59
- Copyright (c) 2012 Christopher Dell. See LICENSE.txt for further details.
45
+ @name="Brazil">>
46
+
47
+ ## I18n
60
48
 
49
+ Language and region names are internationalized - [contribute to the I18n project directly on Locale](http://www.localeapp.com/projects/1763) for any changes.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/iso.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{iso}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Christopher Dell}]
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
35
35
  "lib/iso/subtag.rb",
36
36
  "lib/iso/tag.rb",
37
37
  "locales/en.yml",
38
+ "locales/fr.yml",
38
39
  "spec/fixtures/base.yml",
39
40
  "spec/lib/iso/language_spec.rb",
40
41
  "spec/lib/iso/region_spec.rb",
data/locales/en.yml CHANGED
@@ -119,7 +119,7 @@ en:
119
119
  ng: Ndonga
120
120
  nl: Dutch
121
121
  nn: Norwegian Nynorsk
122
- false: Norwegian
122
+ 'no': Norwegian
123
123
  nr: South Ndebele
124
124
  nv: Navajo
125
125
  ny: Chichewa
data/locales/fr.yml ADDED
@@ -0,0 +1,435 @@
1
+ fr:
2
+ vendor:
3
+ iso:
4
+ languages:
5
+ aa: afar
6
+ ab: abkhaze
7
+ ae: avestique
8
+ af: afrikaans
9
+ ak: akan
10
+ am: amharique
11
+ an: Aragon
12
+ ar: arabe
13
+ as: assamais
14
+ av: avar
15
+ ay: aymara
16
+ az: azerbaïdjanais
17
+ ba: bashkir
18
+ be: biélorusse
19
+ bg: bulgare
20
+ bh: Bihari
21
+ bi: bichlamar
22
+ bm: bambara
23
+ bn: bengali
24
+ bo: tibétain
25
+ br: breton
26
+ bs: bosniaque
27
+ ca: catalan
28
+ ce: tchétchène
29
+ ch: chamorro
30
+ co: corse
31
+ cr: cris
32
+ cs: tchèque
33
+ cu: vieux slave
34
+ cv: tchouvache
35
+ cy: gallois
36
+ da: danois
37
+ de: allemand
38
+ dv: divehi
39
+ dz: dzongkha
40
+ ee: agnelle
41
+ el: grecque
42
+ en: anglais
43
+ eo: espéranto
44
+ es: espagnol
45
+ et: estonien
46
+ eu: basque
47
+ fa: perse
48
+ ff: fulah
49
+ fi: finlandais
50
+ fj: fidjien
51
+ fo: féroïen
52
+ fr: français
53
+ fy: frison
54
+ ga: irlandais
55
+ gd: gaélique
56
+ gl: galicien
57
+ gn: guarani
58
+ gu: gujarati
59
+ gv: manxois
60
+ ha: haoussa
61
+ he: hébreu
62
+ hi: hindi
63
+ ho: hiri
64
+ hr: croate
65
+ ht: haïtien
66
+ hu: hongrois
67
+ hy: arménien
68
+ hz: herero
69
+ ia: Interlingua
70
+ id: indonésien
71
+ ie: Interlingue
72
+ ig: igbo
73
+ ii: sichuan yi
74
+ ik: inupiak
75
+ io: ido
76
+ is: islandais
77
+ it: italien
78
+ iu: inuktitut
79
+ ja: japonais
80
+ jv: javanais
81
+ ka: géorgien
82
+ kg: kongo
83
+ ki: kikuyu
84
+ kj: kuanyama
85
+ kk: kazakh
86
+ kl: kalaallisut
87
+ km: khmer
88
+ kn: Kannada
89
+ ko: coréen
90
+ kr: kanuri
91
+ ks: cachemiri
92
+ ku: kurde
93
+ kv: komi
94
+ kw: cornouaillais
95
+ ky: kirghiz
96
+ la: latin
97
+ lb: luxembourgeois
98
+ lg: gande
99
+ li: limburgan
100
+ ln: lingala
101
+ lo: lao
102
+ lt: lituanien
103
+ lu: louba-katanga
104
+ lv: letton
105
+ mg: malgache
106
+ mh: marshallais
107
+ mi: maori
108
+ mk: macédonien
109
+ ml: malayalam
110
+ mn: mongol
111
+ mr: marathi
112
+ ms: malais
113
+ mt: maltais
114
+ my: birman
115
+ na: nauru
116
+ nb: norvégien bokmål
117
+ nd: ndebele du nord
118
+ ne: népalais
119
+ ng: ndonga
120
+ nl: néerlandais
121
+ nn: norvégien nynorsk
122
+ 'no': norvégien
123
+ nr: ndebele du sud
124
+ nv: navajo
125
+ ny: chichewa
126
+ oc: occitan
127
+ oj: ojibwa
128
+ om: oromo
129
+ or: oriya
130
+ os: ossète
131
+ pa: penjabi
132
+ pi: pali
133
+ pl: polonais
134
+ ps: pachtou
135
+ pt: portugais
136
+ qu: quechua
137
+ rm: romanche
138
+ rn: rundi
139
+ ro: roumain
140
+ ru: russe
141
+ rw: kinyarwanda
142
+ sa: sanskrit
143
+ sc: sarde
144
+ sd: sindhi
145
+ se: sami du nord
146
+ sg: sango
147
+ si: cinghalais
148
+ sk: slovaque
149
+ sl: slovène
150
+ sm: samoan
151
+ sn: shona
152
+ so: somalien
153
+ sq: albanais
154
+ sr: serbe
155
+ ss: swati
156
+ st: sotho du sud
157
+ su: soundanais
158
+ sv: suédois
159
+ sw: swahili
160
+ ta: tamoul
161
+ te: télougou
162
+ tg: tadjik
163
+ th: thaï
164
+ ti: tigrinya
165
+ tk: turkmène
166
+ tl: tagalog
167
+ tn: tswana
168
+ to: tonga
169
+ tr: turc
170
+ ts: tsonga
171
+ tt: tatar
172
+ tw: twi
173
+ ty: tahitien
174
+ ug: ouïghoure
175
+ uk: ukrainien
176
+ ur: ourdou
177
+ uz: ouzbek
178
+ ve: venda
179
+ vo: volapuk
180
+ vi: vietnamien
181
+ wa: wallonne
182
+ wo: wolof
183
+ xh: xhosa
184
+ yi: yiddish
185
+ yo: yorouba
186
+ za: zhuang
187
+ zh: chinois
188
+ zu: zoulou
189
+ regions:
190
+ AF: Afghanistan
191
+ AX: Aland Islands
192
+ AL: Albanie
193
+ DZ: Algérie
194
+ AS: Samoa américaines
195
+ AD: Andorre
196
+ AO: Angola
197
+ AI: Anguilla
198
+ AQ: Antarctique
199
+ AG: Antigua-et-Barbuda
200
+ AR: Argentine
201
+ AM: Arménie
202
+ AW: Aruba
203
+ AU: Australie
204
+ AT: Autriche
205
+ AZ: Azerbaïdjan
206
+ BS: Bahamas
207
+ BH: Bahreïn
208
+ BD: Bangladesh
209
+ BB: Barbade
210
+ BY: Belarus
211
+ BE: Belgique
212
+ BZ: Belize
213
+ BJ: Bénin
214
+ BM: Bermudes
215
+ BT: Bhoutan
216
+ BO: Bolivie
217
+ BA: Bosnie-Herzégovine
218
+ BW: Botswana
219
+ BV: Bouvet Island
220
+ BR: Brésil
221
+ IO: British Indian Ocean Territory
222
+ BN: Brunei Darussalam
223
+ BG: Bulgarie
224
+ BF: Burkina Faso
225
+ BI: Burundi
226
+ KH: Cambodge
227
+ CM: Cameroun
228
+ CA: Canada
229
+ CV: Cap-Vert
230
+ KY: Îles Caïmans
231
+ CF: République centrafricaine
232
+ TD: Tchad
233
+ CL: Chili
234
+ CN: Chine
235
+ CX: Christmas Island
236
+ CC: Cocos (Keeling)
237
+ CO: Colombie
238
+ KM: Comores
239
+ CD: Congo, la République démocratique du
240
+ CG: Congo
241
+ CK: Îles Cook
242
+ CR: Costa Rica
243
+ CI: Côte d'Ivoire
244
+ HR: Croatie
245
+ CU: Cuba
246
+ CY: Chypre
247
+ CZ: République tchèque
248
+ DK: Danemark
249
+ DJ: Djibouti
250
+ DM: Dominique
251
+ DO: République Dominicaine
252
+ EC: Equateur
253
+ EG: Egypte
254
+ SV: El Salvador
255
+ GQ: Guinée équatoriale
256
+ ER: L'Erythrée
257
+ EE: Estonie
258
+ ET: Ethiopie
259
+ FK: Îles Falkland (Malvinas)
260
+ FO: Îles Féroé
261
+ FJ: Fiji
262
+ FI: Finlande
263
+ FR: France
264
+ GF: Guyane française
265
+ PF: Polynésie française
266
+ TF: Terres australes françaises
267
+ GA: Gabon
268
+ GM: Gambie
269
+ GE: Géorgie
270
+ DE: Allemagne
271
+ GH: Ghana
272
+ GI: Gibraltar
273
+ GR: Grèce
274
+ GL: Groenland
275
+ GD: Grenade
276
+ GP: Guadeloupe
277
+ GU: Guam
278
+ GT: Guatemala
279
+ GG: Guernesey
280
+ GN: Guinée
281
+ GW: Guinée-Bissau
282
+ GY: Guyane
283
+ HT: Haïti
284
+ HM: L'île Heard et les îles McDonald
285
+ HN: Honduras
286
+ HK: Hong-Kong
287
+ HU: Hongrie
288
+ IS: Islande
289
+ IN: Inde
290
+ ID: Indonésie
291
+ IR: Iran (République islamique d ')
292
+ IQ: Irak
293
+ IE: Irlande
294
+ IM: Ile de Man
295
+ IL: Israël
296
+ IT: Italie
297
+ JM: Jamaïque
298
+ JP: Japon
299
+ JE: Jersey
300
+ JO: Jordanie
301
+ KZ: Kazakhstan
302
+ KE: Kenya
303
+ KI: Kiribati
304
+ KP: Corée, République populaire démocratique de
305
+ KR: Corée, République de
306
+ KW: Koweit
307
+ KG: Kirghizistan
308
+ LA: République démocratique populaire lao République
309
+ LV: Lettonie
310
+ LB: Liban
311
+ LS: Lesotho
312
+ LR: Libéria
313
+ LY: Jamahiriya arabe libyenne
314
+ LI: Liechtenstein
315
+ LT: Lituanie
316
+ LU: Luxembourg
317
+ MO: Macao
318
+ MK: Macédoine, ex-République yougoslave de
319
+ MG: Madagascar
320
+ MW: Malawi
321
+ MY: Malaisie
322
+ MV: Maldives
323
+ ML: Mali
324
+ MT: Malte
325
+ MH: Îles Marshall
326
+ MQ: Martinique
327
+ MR: Mauritanie
328
+ MU: Ile Maurice
329
+ YT: Mayotte
330
+ MX: Mexique
331
+ FM: Micronésie, États fédérés de
332
+ MD: Moldova, République de
333
+ MC: Monaco
334
+ MN: Mongolie
335
+ ME: Monténégro
336
+ MS: Montserrat
337
+ MA: Maroc
338
+ MZ: Mozambique
339
+ MM: Myanmar
340
+ NA: Namibie
341
+ NR: Nauru
342
+ NP: Népal
343
+ NL: Pays-Bas
344
+ AN: Antilles Néerlandaises
345
+ NC: Nouvelle-Calédonie
346
+ NZ: Nouvelle-Zélande
347
+ NI: Nicaragua
348
+ NE: Niger
349
+ NG: Nigeria
350
+ NU: Niue
351
+ NF: Norfolk Island
352
+ MP: Îles Mariannes du Nord
353
+ 'NO': Norvège
354
+ OM: Oman
355
+ PK: Pakistan
356
+ PW: Palau
357
+ PS: Territoire Palestinien Occupé,
358
+ PA: Panama
359
+ PG: Papouasie-Nouvelle-Guinée
360
+ PY: Paraguay
361
+ PE: Pérou
362
+ PH: Philippines
363
+ PN: Pitcairn
364
+ PL: Pologne
365
+ PT: Portugal
366
+ PR: Puerto Rico
367
+ QA: Qatar
368
+ RE: Réunion
369
+ RO: Roumanie
370
+ RU: Fédération de Russie
371
+ RW: Rwanda
372
+ BL: Saint-Barthélemy
373
+ SH: Sainte-Hélène
374
+ KN: Saint-Kitts-et-Nevis
375
+ LC: Sainte-Lucie
376
+ MF: Saint-Martin (partie française)
377
+ PM: Saint-Pierre-et-Miquelon
378
+ VC: Saint-Vincent-et-les Grenadines
379
+ WS: Samoa
380
+ SM: Saint-Marin
381
+ ST: Sao Tomé-et-Principe
382
+ SA: Arabie Saoudite
383
+ SN: Sénégal
384
+ RS: Serbie
385
+ SC: Seychelles
386
+ SL: Sierra Leone
387
+ SG: Singapour
388
+ SK: Slovaquie
389
+ SI: Slovénie
390
+ SB: Îles Salomon
391
+ SO: Somalie
392
+ ZA: Afrique du Sud
393
+ GS: Géorgie du Sud et les îles Sandwich du Sud
394
+ ES: Espagne
395
+ LK: Sri Lanka
396
+ SD: Soudan
397
+ SR: Suriname
398
+ SJ: Svalbard et Jan Mayen
399
+ SZ: Swaziland
400
+ SE: Suède
401
+ CH: Suisse
402
+ SY: République arabe syrienne
403
+ TW: Taiwan
404
+ TJ: Tadjikistan
405
+ TZ: Tanzanie, République-Unie de
406
+ TH: Thaïlande
407
+ TL: Timor-Leste
408
+ TG: Togo
409
+ TK: Tokelau
410
+ TO: Tonga
411
+ TT: Trinité-et-Tobago
412
+ TN: Tunisie
413
+ TR: Turquie
414
+ TM: Turkménistan
415
+ TC: Îles Turques et Caïques
416
+ TV: Tuvalu
417
+ UG: Ouganda
418
+ UA: Ukraine
419
+ AE: Émirats arabes unis
420
+ GB: Royaume-Uni
421
+ US: États-Unis
422
+ UM: États-Unis Îles Mineures Éloignées
423
+ UY: Uruguay
424
+ UZ: Ouzbékistan
425
+ VU: Vanuatu
426
+ VA: Cité du Vatican (Saint-Siège)
427
+ VE: Venezuela
428
+ VN: Viêt-Nam
429
+ VG: Virgin Islands (British)
430
+ VI: Virgin Islands (US)
431
+ WF: Wallis et Futuna
432
+ EH: Sahara Occidental
433
+ YE: Yémen
434
+ ZM: Zambie
435
+ ZW: Zimbabwe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &70269566174700 !ruby/object:Gem::Requirement
16
+ requirement: &70188441598820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70269566174700
24
+ version_requirements: *70188441598820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70269578659260 !ruby/object:Gem::Requirement
27
+ requirement: &70188441598340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.8.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70269578659260
35
+ version_requirements: *70188441598340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &70269578658780 !ruby/object:Gem::Requirement
38
+ requirement: &70188441597860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.12'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70269578658780
46
+ version_requirements: *70188441597860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70269578658300 !ruby/object:Gem::Requirement
49
+ requirement: &70188441597380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.2.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70269578658300
57
+ version_requirements: *70188441597380
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70269578657820 !ruby/object:Gem::Requirement
60
+ requirement: &70188441596900 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.8.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70269578657820
68
+ version_requirements: *70188441596900
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &70269578657340 !ruby/object:Gem::Requirement
71
+ requirement: &70188441596420 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70269578657340
79
+ version_requirements: *70188441596420
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: localeapp
82
- requirement: &70269578656860 !ruby/object:Gem::Requirement
82
+ requirement: &70188441595940 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70269578656860
90
+ version_requirements: *70188441595940
91
91
  description: A subset of the ISO spec implemented in ruby
92
92
  email: chris@tigrish.com
93
93
  executables: []
@@ -114,6 +114,7 @@ files:
114
114
  - lib/iso/subtag.rb
115
115
  - lib/iso/tag.rb
116
116
  - locales/en.yml
117
+ - locales/fr.yml
117
118
  - spec/fixtures/base.yml
118
119
  - spec/lib/iso/language_spec.rb
119
120
  - spec/lib/iso/region_spec.rb
@@ -135,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
136
  version: '0'
136
137
  segments:
137
138
  - 0
138
- hash: -1936047706480761074
139
+ hash: 3390383372012130098
139
140
  required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  none: false
141
142
  requirements: