i18n_data 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ rvm:
2
+ - ree
3
+ - 1.9.2
4
+ - 1.9.3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n_data (0.3.2)
4
+ i18n_data (0.3.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/Readme.md CHANGED
@@ -56,4 +56,6 @@ Author
56
56
  ======
57
57
  [Michael Grosser](http://grosser.it)<br/>
58
58
  michael@grosser.it<br/>
59
- License: MIT
59
+ License: MIT<br/>
60
+ [![Build Status](https://secure.travis-ci.org/grosser/i18n_data.png)](http://travis-ci.org/grosser/i18n_data)
61
+
@@ -209,7 +209,7 @@ ES;;Spanyolország
209
209
  LK;;Srí Lanka
210
210
  SD;;Szudán
211
211
  SR;;Suriname
212
- SS;;Szudáni Köztársaság
212
+ SS;;Dél-Szudán
213
213
  SJ;;Svalbard-szigetek és Jan Mayen-sziget
214
214
  SZ;;Szváziföld
215
215
  SE;;Svédország
@@ -238,7 +238,7 @@ UM;;Amerikai Csendes-óceáni-szigetek
238
238
  UY;;Uruguay
239
239
  UZ;;Üzbegisztán
240
240
  VU;;Vanuatu
241
- VE;;Venezuela
241
+ VE;;Venezuelai Bolivári Köztársaság
242
242
  VN;;Vietnam
243
243
  VG;;Virgin-szigetek (brit)
244
244
  VI;;Virgin-szigetek (USA)
@@ -198,7 +198,7 @@ RS;;Serbia
198
198
  SC;;Seicelle
199
199
  SL;;Sierra Leone
200
200
  SG;;Singapore
201
- SX;;Sint Maarten (parte danese)
201
+ SX;;Sint Maarten (parte olandese)
202
202
  SK;;Slovacchia
203
203
  SI;;Slovenia
204
204
  SB;;Isole Salomone
@@ -1,5 +1,5 @@
1
1
  AF;;Afghanistan
2
- AX;;Åland-eilanden
2
+ AX;;Ålandseilanden
3
3
  AL;;Albanië
4
4
  DZ;;Algerije
5
5
  AS;;Amerikaans-Samoa
@@ -11,7 +11,7 @@ AS;;asamski
11
11
  AV;;avarski
12
12
  AE;;avestički
13
13
  AY;;ajmarski
14
- AZ;;azerski
14
+ AZ;;azerbejdžanski
15
15
  BA;;baškirski
16
16
  BM;;bambarski
17
17
  EU;;baskijski
@@ -24,7 +24,7 @@ BR;;bretonski
24
24
  BG;;bugarski
25
25
  MY;;burmanski
26
26
  CA;;katalonski; valencijski
27
- CH;;chamorro
27
+ CH;;Chamorro
28
28
  CE;;čečenski
29
29
  ZH;;kineski
30
30
  CU;;Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
@@ -34,13 +34,13 @@ CO;;korzički
34
34
  CR;;krijski
35
35
  CS;;češki
36
36
  DA;;danski
37
- DV;;divehi
37
+ DV;;divehi; maldivski
38
38
  NL;;nizozemski; flamanski
39
- DZ;;dzongkha
39
+ DZ;;Dzongkha
40
40
  EN;;engleski
41
41
  EO;;esperanto
42
42
  ET;;estonski
43
- EE;;ewe
43
+ EE;;Ewe
44
44
  FO;;ferojski
45
45
  FJ;;fidžijski
46
46
  FI;;finski
@@ -54,22 +54,22 @@ GA;;irski
54
54
  GL;;galicijski
55
55
  GV;;manski
56
56
  EL;;novogrčki (od 1453.)
57
- GN;;guaraní
57
+ GN;;Guarani
58
58
  GU;;gudžaratski
59
59
  HT;;haićanski kreolski
60
60
  HA;;hauski
61
61
  HE;;hebrejski
62
- HZ;;herero
62
+ HZ;;Herero
63
63
  HI;;hindski
64
- HO;;hiri motu
64
+ HO;;Hiri Motu
65
65
  HR;;hrvatski
66
66
  HU;;mađarski
67
- IG;;igbo
67
+ IG;;Igbo
68
68
  IS;;islandski
69
69
  IO;;ido
70
70
  II;;Sichuan Yi; Nuosu
71
71
  IU;;Inuktitut
72
- IE;;interlingue; okcidentalni
72
+ IE;;Interlingue; Occidental
73
73
  IA;;interlingua
74
74
  ID;;indonezijski
75
75
  IK;;Inupiaq
@@ -77,16 +77,16 @@ IT;;talijanski
77
77
  JV;;javanski
78
78
  JA;;japanski
79
79
  KL;;grenlandski
80
- KN;;kannada
80
+ KN;;Kannada
81
81
  KS;;kašmirski
82
82
  KR;;kanurski
83
83
  KK;;kazaški
84
84
  KM;;kmerski
85
- KI;;kikuyu
85
+ KI;;Kikuyu; Gikuyu
86
86
  RW;;Kinyarwanda
87
- KY;;kirgiski
88
- KV;;komi
89
- KG;;kongo
87
+ KY;;kirgiški
88
+ KV;;Komi
89
+ KG;;Kongo
90
90
  KO;;korejski
91
91
  KJ;;Kuanyama; Kwanyama
92
92
  KU;;kurdski
@@ -105,7 +105,7 @@ ML;;malajalamski
105
105
  MI;;maorski
106
106
  MR;;Marathi
107
107
  MS;;malajski
108
- MG;;malgaški
108
+ MG;;Malagasy
109
109
  MT;;malteški
110
110
  MO;;moldavski
111
111
  MN;;mongolski
@@ -126,7 +126,7 @@ OM;;Oromo
126
126
  OS;;osetski
127
127
  PA;;istočnopandžapski
128
128
  FA;;perzijski
129
- PI;;pāli
129
+ PI;;Pali
130
130
  PL;;poljski
131
131
  PT;;portugalski
132
132
  PS;;paštunski
@@ -160,7 +160,7 @@ TE;;teluški
160
160
  TG;;tadžički
161
161
  TL;;Tagalog
162
162
  TH;;Thai
163
- BO;;srednjotibetski
163
+ BO;;tibetski
164
164
  TI;;Tigrinya
165
165
  TO;;Tonga (Tonga Islands)
166
166
  TN;;Tswana
@@ -53,7 +53,7 @@ GD;;Gaelisch; Schots
53
53
  GA;;Iers
54
54
  GL;;Galiciaans
55
55
  GV;;Manx
56
- EL;;Grieks, Modern (1453-)
56
+ EL;;Grieks, Modern (vanaf 1453)
57
57
  GN;;Guarani
58
58
  GU;;Gujarati
59
59
  HT;;Haïtiaans; Haïtiaans Creools
@@ -58,7 +58,7 @@ GN;;гуарані
58
58
  GU;;гуджараті
59
59
  HT;;гаїтянська; креольська гаїтянська
60
60
  HA;;хауса
61
- HE;;Іврит
61
+ HE;;іврит
62
62
  HZ;;гереро
63
63
  HI;;хінді
64
64
  HO;;хірімоту
@@ -92,7 +92,7 @@ KJ;;кіньяма; кваньяма
92
92
  KU;;курдська
93
93
  LO;;лаоська
94
94
  LA;;латинська
95
- LV;;латвійська
95
+ LV;;латиська
96
96
  LI;;лімбурганська; лімбургенська; лімбургійська
97
97
  LN;;лінгала
98
98
  LT;;литовська
@@ -38,8 +38,8 @@ module I18nData
38
38
  # e.g. zh does not exist, but zh_CN does
39
39
  def normal_to_region_code(normal)
40
40
  {
41
- "ZH" => "ZH_CN",
42
- "BN" => "BN_IN",
41
+ "ZH" => "zh_CN",
42
+ "BN" => "bn_IN",
43
43
  }[normal] || normal
44
44
  end
45
45
 
@@ -44,7 +44,7 @@ module I18nData
44
44
  end
45
45
 
46
46
  def cache_file_for(type,language_code)
47
- file = "#{type}-#{language_code}"
47
+ file = "#{type}-#{language_code.upcase}"
48
48
  File.join(File.dirname(__FILE__), '..', '..', 'cache', 'file_data_provider', "#{file}.txt")
49
49
  end
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module I18nData
2
- VERSION = Version = "0.3.2"
2
+ VERSION = Version = "0.3.3"
3
3
  end
@@ -11,6 +11,11 @@ describe I18nData::FileDataProvider do
11
11
  I18nData::FileDataProvider.codes(x,y)
12
12
  end
13
13
 
14
+ it "always produces uppercase locales to avoid case-sensitive madness" do
15
+ cache_file = I18nData::FileDataProvider.send(:cache_file_for,"countries","yy_YY")
16
+ File.basename(cache_file).should == "countries-YY_YY.txt"
17
+ end
18
+
14
19
  it "preserves data when writing and then reading" do
15
20
  data = {"x"=>"y","z"=>"w"}
16
21
  I18nData::FileDataProvider.send(:write_to_file, data, @cache_file)
@@ -63,7 +63,7 @@ describe I18nData do
63
63
  end
64
64
 
65
65
  it "has language subtypes" do
66
- I18nData.languages('ZH_TW')['DA'].should == '丹麥語'
66
+ I18nData.languages('zh_TW')['DA'].should == '丹麥語'
67
67
  end
68
68
  end
69
69
  end
@@ -110,7 +110,7 @@ describe I18nData do
110
110
  end
111
111
 
112
112
  it "has language subtypes" do
113
- I18nData.countries('ZH_TW')['DK'].should == '丹麥'
113
+ I18nData.countries('zh_TW')['DK'].should == '丹麥'
114
114
  end
115
115
  end
116
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-19 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: michael@grosser.it
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - .gitignore
21
+ - .travis.yml
21
22
  - Gemfile
22
23
  - Gemfile.lock
23
24
  - Rakefile
@@ -30,6 +31,7 @@ files:
30
31
  - cache/file_data_provider/countries-BE.txt
31
32
  - cache/file_data_provider/countries-BG.txt
32
33
  - cache/file_data_provider/countries-BN.txt
34
+ - cache/file_data_provider/countries-BN_IN.txt
33
35
  - cache/file_data_provider/countries-BR.txt
34
36
  - cache/file_data_provider/countries-BS.txt
35
37
  - cache/file_data_provider/countries-CA.txt
@@ -85,6 +87,7 @@ files:
85
87
  - cache/file_data_provider/countries-PL.txt
86
88
  - cache/file_data_provider/countries-PS.txt
87
89
  - cache/file_data_provider/countries-PT.txt
90
+ - cache/file_data_provider/countries-PT_BR.txt
88
91
  - cache/file_data_provider/countries-RO.txt
89
92
  - cache/file_data_provider/countries-RU.txt
90
93
  - cache/file_data_provider/countries-RW.txt
@@ -111,12 +114,10 @@ files:
111
114
  - cache/file_data_provider/countries-WA.txt
112
115
  - cache/file_data_provider/countries-WO.txt
113
116
  - cache/file_data_provider/countries-XH.txt
117
+ - cache/file_data_provider/countries-ZH_CN.txt
118
+ - cache/file_data_provider/countries-ZH_HK.txt
119
+ - cache/file_data_provider/countries-ZH_TW.txt
114
120
  - cache/file_data_provider/countries-ZU.txt
115
- - cache/file_data_provider/countries-bn_IN.txt
116
- - cache/file_data_provider/countries-pt_BR.txt
117
- - cache/file_data_provider/countries-zh_CN.txt
118
- - cache/file_data_provider/countries-zh_HK.txt
119
- - cache/file_data_provider/countries-zh_TW.txt
120
121
  - cache/file_data_provider/languages-AF.txt
121
122
  - cache/file_data_provider/languages-AM.txt
122
123
  - cache/file_data_provider/languages-AR.txt
@@ -124,6 +125,7 @@ files:
124
125
  - cache/file_data_provider/languages-AZ.txt
125
126
  - cache/file_data_provider/languages-BE.txt
126
127
  - cache/file_data_provider/languages-BG.txt
128
+ - cache/file_data_provider/languages-BN_IN.txt
127
129
  - cache/file_data_provider/languages-BR.txt
128
130
  - cache/file_data_provider/languages-BS.txt
129
131
  - cache/file_data_provider/languages-CA.txt
@@ -171,6 +173,7 @@ files:
171
173
  - cache/file_data_provider/languages-PL.txt
172
174
  - cache/file_data_provider/languages-PS.txt
173
175
  - cache/file_data_provider/languages-PT.txt
176
+ - cache/file_data_provider/languages-PT_BR.txt
174
177
  - cache/file_data_provider/languages-RO.txt
175
178
  - cache/file_data_provider/languages-RU.txt
176
179
  - cache/file_data_provider/languages-RW.txt
@@ -189,12 +192,10 @@ files:
189
192
  - cache/file_data_provider/languages-VI.txt
190
193
  - cache/file_data_provider/languages-WA.txt
191
194
  - cache/file_data_provider/languages-XH.txt
195
+ - cache/file_data_provider/languages-ZH_CN.txt
196
+ - cache/file_data_provider/languages-ZH_HK.txt
197
+ - cache/file_data_provider/languages-ZH_TW.txt
192
198
  - cache/file_data_provider/languages-ZU.txt
193
- - cache/file_data_provider/languages-bn_IN.txt
194
- - cache/file_data_provider/languages-pt_BR.txt
195
- - cache/file_data_provider/languages-zh_CN.txt
196
- - cache/file_data_provider/languages-zh_HK.txt
197
- - cache/file_data_provider/languages-zh_TW.txt
198
199
  - example_output/all_names_for_DE.txt
199
200
  - example_output/all_names_for_FR.txt
200
201
  - example_output/all_names_for_GB.txt
@@ -223,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
224
  version: '0'
224
225
  segments:
225
226
  - 0
226
- hash: -3872978820631193356
227
+ hash: 2858300428554998618
227
228
  required_rubygems_version: !ruby/object:Gem::Requirement
228
229
  none: false
229
230
  requirements:
@@ -232,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
233
  version: '0'
233
234
  segments:
234
235
  - 0
235
- hash: -3872978820631193356
236
+ hash: 2858300428554998618
236
237
  requirements: []
237
238
  rubyforge_project:
238
239
  rubygems_version: 1.8.24