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.
- data/.travis.yml +4 -0
- data/Gemfile.lock +1 -1
- data/Readme.md +3 -1
- data/cache/file_data_provider/{countries-bn_IN.txt → countries-BN_IN.txt} +0 -0
- data/cache/file_data_provider/countries-HU.txt +2 -2
- data/cache/file_data_provider/countries-IT.txt +1 -1
- data/cache/file_data_provider/countries-NL.txt +1 -1
- data/cache/file_data_provider/{countries-pt_BR.txt → countries-PT_BR.txt} +0 -0
- data/cache/file_data_provider/{countries-zh_CN.txt → countries-ZH_CN.txt} +0 -0
- data/cache/file_data_provider/{countries-zh_HK.txt → countries-ZH_HK.txt} +0 -0
- data/cache/file_data_provider/{countries-zh_TW.txt → countries-ZH_TW.txt} +0 -0
- data/cache/file_data_provider/{languages-bn_IN.txt → languages-BN_IN.txt} +0 -0
- data/cache/file_data_provider/languages-HR.txt +18 -18
- data/cache/file_data_provider/languages-NL.txt +1 -1
- data/cache/file_data_provider/{languages-pt_BR.txt → languages-PT_BR.txt} +0 -0
- data/cache/file_data_provider/languages-UK.txt +2 -2
- data/cache/file_data_provider/{languages-zh_CN.txt → languages-ZH_CN.txt} +0 -0
- data/cache/file_data_provider/{languages-zh_HK.txt → languages-ZH_HK.txt} +0 -0
- data/cache/file_data_provider/{languages-zh_TW.txt → languages-ZH_TW.txt} +0 -0
- data/lib/i18n_data.rb +2 -2
- data/lib/i18n_data/file_data_provider.rb +1 -1
- data/lib/i18n_data/version.rb +1 -1
- data/spec/i18n_data/file_data_provider_spec.rb +5 -0
- data/spec/i18n_data_spec.rb +2 -2
- metadata +15 -14
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
File without changes
|
@@ -209,7 +209,7 @@ ES;;Spanyolország
|
|
209
209
|
LK;;Srí Lanka
|
210
210
|
SD;;Szudán
|
211
211
|
SR;;Suriname
|
212
|
-
SS;;
|
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;;
|
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)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,7 +11,7 @@ AS;;asamski
|
|
11
11
|
AV;;avarski
|
12
12
|
AE;;avestički
|
13
13
|
AY;;ajmarski
|
14
|
-
AZ;;
|
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;;
|
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;;
|
39
|
+
DZ;;Dzongkha
|
40
40
|
EN;;engleski
|
41
41
|
EO;;esperanto
|
42
42
|
ET;;estonski
|
43
|
-
EE;;
|
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;;
|
57
|
+
GN;;Guarani
|
58
58
|
GU;;gudžaratski
|
59
59
|
HT;;haićanski kreolski
|
60
60
|
HA;;hauski
|
61
61
|
HE;;hebrejski
|
62
|
-
HZ;;
|
62
|
+
HZ;;Herero
|
63
63
|
HI;;hindski
|
64
|
-
HO;;
|
64
|
+
HO;;Hiri Motu
|
65
65
|
HR;;hrvatski
|
66
66
|
HU;;mađarski
|
67
|
-
IG;;
|
67
|
+
IG;;Igbo
|
68
68
|
IS;;islandski
|
69
69
|
IO;;ido
|
70
70
|
II;;Sichuan Yi; Nuosu
|
71
71
|
IU;;Inuktitut
|
72
|
-
IE;;
|
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;;
|
80
|
+
KN;;Kannada
|
81
81
|
KS;;kašmirski
|
82
82
|
KR;;kanurski
|
83
83
|
KK;;kazaški
|
84
84
|
KM;;kmerski
|
85
|
-
KI;;
|
85
|
+
KI;;Kikuyu; Gikuyu
|
86
86
|
RW;;Kinyarwanda
|
87
|
-
KY;;
|
88
|
-
KV;;
|
89
|
-
KG;;
|
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;;
|
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;;
|
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;;
|
163
|
+
BO;;tibetski
|
164
164
|
TI;;Tigrinya
|
165
165
|
TO;;Tonga (Tonga Islands)
|
166
166
|
TN;;Tswana
|
File without changes
|
@@ -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;;литовська
|
File without changes
|
File without changes
|
File without changes
|
data/lib/i18n_data.rb
CHANGED
data/lib/i18n_data/version.rb
CHANGED
@@ -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)
|
data/spec/i18n_data_spec.rb
CHANGED
@@ -63,7 +63,7 @@ describe I18nData do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "has language subtypes" do
|
66
|
-
I18nData.languages('
|
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('
|
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.
|
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-
|
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:
|
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:
|
236
|
+
hash: 2858300428554998618
|
236
237
|
requirements: []
|
237
238
|
rubyforge_project:
|
238
239
|
rubygems_version: 1.8.24
|