i18n_data 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -0
- data/Gemfile.lock +30 -0
- data/Rakefile +9 -9
- data/{README.markdown → Readme.md} +11 -8
- data/VERSION +1 -1
- data/cache/file_data_provider/countries-AF.txt +10 -7
- data/cache/file_data_provider/countries-AM.txt +8 -5
- data/cache/file_data_provider/countries-AR.txt +11 -8
- data/cache/file_data_provider/countries-AS.txt +249 -0
- data/cache/file_data_provider/countries-AZ.txt +8 -5
- data/cache/file_data_provider/countries-BE.txt +79 -76
- data/cache/file_data_provider/countries-BG.txt +11 -8
- data/cache/file_data_provider/countries-BN.txt +9 -6
- data/cache/file_data_provider/countries-BR.txt +8 -5
- data/cache/file_data_provider/countries-BS.txt +12 -9
- data/cache/file_data_provider/countries-CA.txt +20 -17
- data/cache/file_data_provider/countries-CS.txt +32 -29
- data/cache/file_data_provider/countries-CY.txt +8 -5
- data/cache/file_data_provider/countries-DA.txt +13 -10
- data/cache/file_data_provider/countries-DE.txt +34 -31
- data/cache/file_data_provider/countries-DZ.txt +11 -8
- data/cache/file_data_provider/countries-EL.txt +11 -8
- data/cache/file_data_provider/countries-EN.txt +11 -8
- data/cache/file_data_provider/countries-EO.txt +8 -5
- data/cache/file_data_provider/countries-ES.txt +11 -8
- data/cache/file_data_provider/countries-ET.txt +10 -7
- data/cache/file_data_provider/countries-EU.txt +64 -61
- data/cache/file_data_provider/countries-FA.txt +64 -61
- data/cache/file_data_provider/countries-FI.txt +8 -5
- data/cache/file_data_provider/countries-FO.txt +8 -5
- data/cache/file_data_provider/countries-FR.txt +8 -5
- data/cache/file_data_provider/countries-GA.txt +10 -7
- data/cache/file_data_provider/countries-GL.txt +11 -8
- data/cache/file_data_provider/countries-GU.txt +11 -8
- data/cache/file_data_provider/countries-HE.txt +10 -7
- data/cache/file_data_provider/countries-HI.txt +8 -5
- data/cache/file_data_provider/countries-HR.txt +10 -7
- data/cache/file_data_provider/countries-HU.txt +11 -8
- data/cache/file_data_provider/countries-HY.txt +8 -5
- data/cache/file_data_provider/countries-ID.txt +7 -4
- data/cache/file_data_provider/countries-IS.txt +183 -180
- data/cache/file_data_provider/countries-IT.txt +9 -6
- data/cache/file_data_provider/countries-JA.txt +55 -52
- data/cache/file_data_provider/countries-KA.txt +8 -5
- data/cache/file_data_provider/countries-KK.txt +9 -6
- data/cache/file_data_provider/countries-KM.txt +8 -5
- data/cache/file_data_provider/countries-KN.txt +8 -5
- data/cache/file_data_provider/countries-KO.txt +13 -10
- data/cache/file_data_provider/countries-KU.txt +8 -5
- data/cache/file_data_provider/countries-LT.txt +7 -4
- data/cache/file_data_provider/countries-LV.txt +56 -53
- data/cache/file_data_provider/countries-MI.txt +44 -41
- data/cache/file_data_provider/countries-MK.txt +10 -7
- data/cache/file_data_provider/countries-ML.txt +8 -5
- data/cache/file_data_provider/countries-MN.txt +8 -5
- data/cache/file_data_provider/countries-MR.txt +8 -5
- data/cache/file_data_provider/countries-MS.txt +8 -5
- data/cache/file_data_provider/countries-MT.txt +8 -5
- data/cache/file_data_provider/countries-NB.txt +9 -6
- data/cache/file_data_provider/countries-NE.txt +13 -10
- data/cache/file_data_provider/countries-NL.txt +7 -4
- data/cache/file_data_provider/countries-NN.txt +8 -5
- data/cache/file_data_provider/countries-OC.txt +8 -5
- data/cache/file_data_provider/countries-OR.txt +249 -0
- data/cache/file_data_provider/countries-PA.txt +20 -17
- data/cache/file_data_provider/countries-PL.txt +9 -6
- data/cache/file_data_provider/countries-PS.txt +9 -6
- data/cache/file_data_provider/countries-PT.txt +8 -5
- data/cache/file_data_provider/countries-RO.txt +44 -41
- data/cache/file_data_provider/countries-RU.txt +8 -5
- data/cache/file_data_provider/countries-RW.txt +8 -5
- data/cache/file_data_provider/countries-SI.txt +249 -0
- data/cache/file_data_provider/countries-SK.txt +8 -5
- data/cache/file_data_provider/countries-SL.txt +8 -5
- data/cache/file_data_provider/countries-SO.txt +8 -5
- data/cache/file_data_provider/countries-SQ.txt +8 -5
- data/cache/file_data_provider/countries-SR.txt +8 -5
- data/cache/file_data_provider/countries-SV.txt +14 -11
- data/cache/file_data_provider/countries-SW.txt +9 -6
- data/cache/file_data_provider/countries-TA.txt +8 -5
- data/cache/file_data_provider/countries-TE.txt +172 -169
- data/cache/file_data_provider/countries-TH.txt +7 -4
- data/cache/file_data_provider/countries-TI.txt +8 -5
- data/cache/file_data_provider/countries-TK.txt +8 -5
- data/cache/file_data_provider/countries-TL.txt +8 -5
- data/cache/file_data_provider/countries-TR.txt +35 -32
- data/cache/file_data_provider/countries-TT.txt +8 -5
- data/cache/file_data_provider/countries-UG.txt +249 -0
- data/cache/file_data_provider/countries-UK.txt +57 -54
- data/cache/file_data_provider/countries-VE.txt +8 -5
- data/cache/file_data_provider/countries-VI.txt +8 -5
- data/cache/file_data_provider/countries-WA.txt +8 -5
- data/cache/file_data_provider/countries-WO.txt +8 -5
- data/cache/file_data_provider/countries-XH.txt +8 -5
- data/cache/file_data_provider/countries-ZU.txt +8 -5
- data/cache/file_data_provider/languages-AF.txt +1 -1
- data/cache/file_data_provider/languages-AM.txt +1 -1
- data/cache/file_data_provider/languages-AR.txt +1 -1
- data/cache/file_data_provider/languages-AS.txt +185 -0
- data/cache/file_data_provider/languages-AZ.txt +1 -1
- data/cache/file_data_provider/languages-BE.txt +103 -103
- data/cache/file_data_provider/languages-BG.txt +103 -103
- data/cache/file_data_provider/languages-BR.txt +1 -1
- data/cache/file_data_provider/languages-BS.txt +1 -1
- data/cache/file_data_provider/languages-CA.txt +14 -14
- data/cache/file_data_provider/languages-CS.txt +2 -2
- data/cache/file_data_provider/languages-CY.txt +1 -1
- data/cache/file_data_provider/languages-DA.txt +1 -1
- data/cache/file_data_provider/languages-DE.txt +2 -2
- data/cache/file_data_provider/languages-EL.txt +2 -2
- data/cache/file_data_provider/languages-EN.txt +1 -1
- data/cache/file_data_provider/languages-EO.txt +2 -2
- data/cache/file_data_provider/languages-ES.txt +1 -1
- data/cache/file_data_provider/languages-ET.txt +1 -1
- data/cache/file_data_provider/languages-EU.txt +1 -1
- data/cache/file_data_provider/languages-FA.txt +1 -1
- data/cache/file_data_provider/languages-FI.txt +1 -1
- data/cache/file_data_provider/languages-FR.txt +182 -182
- data/cache/file_data_provider/languages-GA.txt +9 -9
- data/cache/file_data_provider/languages-GL.txt +73 -73
- data/cache/file_data_provider/languages-GU.txt +64 -64
- data/cache/file_data_provider/languages-HE.txt +1 -1
- data/cache/file_data_provider/languages-HI.txt +1 -1
- data/cache/file_data_provider/languages-HR.txt +1 -1
- data/cache/file_data_provider/languages-HU.txt +8 -8
- data/cache/file_data_provider/languages-ID.txt +1 -1
- data/cache/file_data_provider/languages-IS.txt +96 -96
- data/cache/file_data_provider/languages-IT.txt +2 -2
- data/cache/file_data_provider/languages-JA.txt +2 -2
- data/cache/file_data_provider/languages-KN.txt +185 -0
- data/cache/file_data_provider/languages-KO.txt +147 -147
- data/cache/file_data_provider/languages-LT.txt +1 -1
- data/cache/file_data_provider/languages-LV.txt +139 -139
- data/cache/file_data_provider/languages-MI.txt +34 -34
- data/cache/file_data_provider/languages-MK.txt +1 -1
- data/cache/file_data_provider/languages-ML.txt +185 -0
- data/cache/file_data_provider/languages-MN.txt +1 -1
- data/cache/file_data_provider/languages-MR.txt +2 -2
- data/cache/file_data_provider/languages-MS.txt +1 -1
- data/cache/file_data_provider/languages-MT.txt +1 -1
- data/cache/file_data_provider/languages-NB.txt +1 -1
- data/cache/file_data_provider/languages-NL.txt +3 -3
- data/cache/file_data_provider/languages-NN.txt +1 -1
- data/cache/file_data_provider/languages-OC.txt +1 -1
- data/cache/file_data_provider/languages-OR.txt +185 -0
- data/cache/file_data_provider/languages-PA.txt +1 -1
- data/cache/file_data_provider/languages-PL.txt +5 -5
- data/cache/file_data_provider/languages-PS.txt +1 -1
- data/cache/file_data_provider/languages-PT.txt +1 -1
- data/cache/file_data_provider/languages-RO.txt +134 -134
- data/cache/file_data_provider/languages-RU.txt +2 -2
- data/cache/file_data_provider/languages-RW.txt +1 -1
- data/cache/file_data_provider/languages-SK.txt +5 -5
- data/cache/file_data_provider/languages-SL.txt +15 -15
- data/cache/file_data_provider/languages-SR.txt +1 -1
- data/cache/file_data_provider/languages-SV.txt +1 -1
- data/cache/file_data_provider/languages-TA.txt +1 -1
- data/cache/file_data_provider/languages-TE.txt +185 -0
- data/cache/file_data_provider/languages-TH.txt +15 -15
- data/cache/file_data_provider/languages-TI.txt +1 -1
- data/cache/file_data_provider/languages-TR.txt +1 -1
- data/cache/file_data_provider/languages-TT.txt +1 -1
- data/cache/file_data_provider/languages-UK.txt +184 -184
- data/cache/file_data_provider/languages-VE.txt +1 -1
- data/cache/file_data_provider/languages-VI.txt +1 -1
- data/cache/file_data_provider/languages-WA.txt +1 -1
- data/cache/file_data_provider/languages-XH.txt +1 -1
- data/cache/file_data_provider/languages-ZU.txt +1 -1
- data/i18n_data.gemspec +191 -191
- data/lib/i18n_data/live_data_provider.rb +5 -3
- data/spec/i18n_data/file_data_provider_spec.rb +2 -2
- data/spec/i18n_data/live_data_provider_spec.rb +3 -3
- data/spec/i18n_data_spec.rb +5 -6
- metadata +52 -58
- data/.gitignore +0 -3
data/i18n_data.gemspec
CHANGED
@@ -1,209 +1,209 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.2.
|
7
|
+
s.name = "i18n_data"
|
8
|
+
s.version = "0.2.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date =
|
13
|
-
s.email =
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
"README.markdown"
|
16
|
-
]
|
12
|
+
s.date = "2012-01-25"
|
13
|
+
s.email = "michael@grosser.it"
|
17
14
|
s.files = [
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
15
|
+
"CHANGELOG",
|
16
|
+
"Gemfile",
|
17
|
+
"Gemfile.lock",
|
18
|
+
"Rakefile",
|
19
|
+
"Readme.md",
|
20
|
+
"VERSION",
|
21
|
+
"cache/file_data_provider/countries-AF.txt",
|
22
|
+
"cache/file_data_provider/countries-AM.txt",
|
23
|
+
"cache/file_data_provider/countries-AR.txt",
|
24
|
+
"cache/file_data_provider/countries-AS.txt",
|
25
|
+
"cache/file_data_provider/countries-AZ.txt",
|
26
|
+
"cache/file_data_provider/countries-BE.txt",
|
27
|
+
"cache/file_data_provider/countries-BG.txt",
|
28
|
+
"cache/file_data_provider/countries-BN.txt",
|
29
|
+
"cache/file_data_provider/countries-BR.txt",
|
30
|
+
"cache/file_data_provider/countries-BS.txt",
|
31
|
+
"cache/file_data_provider/countries-CA.txt",
|
32
|
+
"cache/file_data_provider/countries-CS.txt",
|
33
|
+
"cache/file_data_provider/countries-CY.txt",
|
34
|
+
"cache/file_data_provider/countries-DA.txt",
|
35
|
+
"cache/file_data_provider/countries-DE.txt",
|
36
|
+
"cache/file_data_provider/countries-DZ.txt",
|
37
|
+
"cache/file_data_provider/countries-EL.txt",
|
38
|
+
"cache/file_data_provider/countries-EN.txt",
|
39
|
+
"cache/file_data_provider/countries-EO.txt",
|
40
|
+
"cache/file_data_provider/countries-ES.txt",
|
41
|
+
"cache/file_data_provider/countries-ET.txt",
|
42
|
+
"cache/file_data_provider/countries-EU.txt",
|
43
|
+
"cache/file_data_provider/countries-FA.txt",
|
44
|
+
"cache/file_data_provider/countries-FI.txt",
|
45
|
+
"cache/file_data_provider/countries-FO.txt",
|
46
|
+
"cache/file_data_provider/countries-FR.txt",
|
47
|
+
"cache/file_data_provider/countries-GA.txt",
|
48
|
+
"cache/file_data_provider/countries-GL.txt",
|
49
|
+
"cache/file_data_provider/countries-GU.txt",
|
50
|
+
"cache/file_data_provider/countries-HE.txt",
|
51
|
+
"cache/file_data_provider/countries-HI.txt",
|
52
|
+
"cache/file_data_provider/countries-HR.txt",
|
53
|
+
"cache/file_data_provider/countries-HU.txt",
|
54
|
+
"cache/file_data_provider/countries-HY.txt",
|
55
|
+
"cache/file_data_provider/countries-ID.txt",
|
56
|
+
"cache/file_data_provider/countries-IS.txt",
|
57
|
+
"cache/file_data_provider/countries-IT.txt",
|
58
|
+
"cache/file_data_provider/countries-JA.txt",
|
59
|
+
"cache/file_data_provider/countries-KA.txt",
|
60
|
+
"cache/file_data_provider/countries-KK.txt",
|
61
|
+
"cache/file_data_provider/countries-KM.txt",
|
62
|
+
"cache/file_data_provider/countries-KN.txt",
|
63
|
+
"cache/file_data_provider/countries-KO.txt",
|
64
|
+
"cache/file_data_provider/countries-KU.txt",
|
65
|
+
"cache/file_data_provider/countries-LT.txt",
|
66
|
+
"cache/file_data_provider/countries-LV.txt",
|
67
|
+
"cache/file_data_provider/countries-MI.txt",
|
68
|
+
"cache/file_data_provider/countries-MK.txt",
|
69
|
+
"cache/file_data_provider/countries-ML.txt",
|
70
|
+
"cache/file_data_provider/countries-MN.txt",
|
71
|
+
"cache/file_data_provider/countries-MR.txt",
|
72
|
+
"cache/file_data_provider/countries-MS.txt",
|
73
|
+
"cache/file_data_provider/countries-MT.txt",
|
74
|
+
"cache/file_data_provider/countries-NB.txt",
|
75
|
+
"cache/file_data_provider/countries-NE.txt",
|
76
|
+
"cache/file_data_provider/countries-NL.txt",
|
77
|
+
"cache/file_data_provider/countries-NN.txt",
|
78
|
+
"cache/file_data_provider/countries-OC.txt",
|
79
|
+
"cache/file_data_provider/countries-OR.txt",
|
80
|
+
"cache/file_data_provider/countries-PA.txt",
|
81
|
+
"cache/file_data_provider/countries-PL.txt",
|
82
|
+
"cache/file_data_provider/countries-PS.txt",
|
83
|
+
"cache/file_data_provider/countries-PT.txt",
|
84
|
+
"cache/file_data_provider/countries-RO.txt",
|
85
|
+
"cache/file_data_provider/countries-RU.txt",
|
86
|
+
"cache/file_data_provider/countries-RW.txt",
|
87
|
+
"cache/file_data_provider/countries-SI.txt",
|
88
|
+
"cache/file_data_provider/countries-SK.txt",
|
89
|
+
"cache/file_data_provider/countries-SL.txt",
|
90
|
+
"cache/file_data_provider/countries-SO.txt",
|
91
|
+
"cache/file_data_provider/countries-SQ.txt",
|
92
|
+
"cache/file_data_provider/countries-SR.txt",
|
93
|
+
"cache/file_data_provider/countries-SV.txt",
|
94
|
+
"cache/file_data_provider/countries-SW.txt",
|
95
|
+
"cache/file_data_provider/countries-TA.txt",
|
96
|
+
"cache/file_data_provider/countries-TE.txt",
|
97
|
+
"cache/file_data_provider/countries-TH.txt",
|
98
|
+
"cache/file_data_provider/countries-TI.txt",
|
99
|
+
"cache/file_data_provider/countries-TK.txt",
|
100
|
+
"cache/file_data_provider/countries-TL.txt",
|
101
|
+
"cache/file_data_provider/countries-TR.txt",
|
102
|
+
"cache/file_data_provider/countries-TT.txt",
|
103
|
+
"cache/file_data_provider/countries-UG.txt",
|
104
|
+
"cache/file_data_provider/countries-UK.txt",
|
105
|
+
"cache/file_data_provider/countries-VE.txt",
|
106
|
+
"cache/file_data_provider/countries-VI.txt",
|
107
|
+
"cache/file_data_provider/countries-WA.txt",
|
108
|
+
"cache/file_data_provider/countries-WO.txt",
|
109
|
+
"cache/file_data_provider/countries-XH.txt",
|
110
|
+
"cache/file_data_provider/countries-ZU.txt",
|
111
|
+
"cache/file_data_provider/languages-AF.txt",
|
112
|
+
"cache/file_data_provider/languages-AM.txt",
|
113
|
+
"cache/file_data_provider/languages-AR.txt",
|
114
|
+
"cache/file_data_provider/languages-AS.txt",
|
115
|
+
"cache/file_data_provider/languages-AZ.txt",
|
116
|
+
"cache/file_data_provider/languages-BE.txt",
|
117
|
+
"cache/file_data_provider/languages-BG.txt",
|
118
|
+
"cache/file_data_provider/languages-BR.txt",
|
119
|
+
"cache/file_data_provider/languages-BS.txt",
|
120
|
+
"cache/file_data_provider/languages-CA.txt",
|
121
|
+
"cache/file_data_provider/languages-CS.txt",
|
122
|
+
"cache/file_data_provider/languages-CY.txt",
|
123
|
+
"cache/file_data_provider/languages-DA.txt",
|
124
|
+
"cache/file_data_provider/languages-DE.txt",
|
125
|
+
"cache/file_data_provider/languages-EL.txt",
|
126
|
+
"cache/file_data_provider/languages-EN.txt",
|
127
|
+
"cache/file_data_provider/languages-EO.txt",
|
128
|
+
"cache/file_data_provider/languages-ES.txt",
|
129
|
+
"cache/file_data_provider/languages-ET.txt",
|
130
|
+
"cache/file_data_provider/languages-EU.txt",
|
131
|
+
"cache/file_data_provider/languages-FA.txt",
|
132
|
+
"cache/file_data_provider/languages-FI.txt",
|
133
|
+
"cache/file_data_provider/languages-FR.txt",
|
134
|
+
"cache/file_data_provider/languages-GA.txt",
|
135
|
+
"cache/file_data_provider/languages-GL.txt",
|
136
|
+
"cache/file_data_provider/languages-GU.txt",
|
137
|
+
"cache/file_data_provider/languages-HE.txt",
|
138
|
+
"cache/file_data_provider/languages-HI.txt",
|
139
|
+
"cache/file_data_provider/languages-HR.txt",
|
140
|
+
"cache/file_data_provider/languages-HU.txt",
|
141
|
+
"cache/file_data_provider/languages-ID.txt",
|
142
|
+
"cache/file_data_provider/languages-IS.txt",
|
143
|
+
"cache/file_data_provider/languages-IT.txt",
|
144
|
+
"cache/file_data_provider/languages-JA.txt",
|
145
|
+
"cache/file_data_provider/languages-KN.txt",
|
146
|
+
"cache/file_data_provider/languages-KO.txt",
|
147
|
+
"cache/file_data_provider/languages-LT.txt",
|
148
|
+
"cache/file_data_provider/languages-LV.txt",
|
149
|
+
"cache/file_data_provider/languages-MI.txt",
|
150
|
+
"cache/file_data_provider/languages-MK.txt",
|
151
|
+
"cache/file_data_provider/languages-ML.txt",
|
152
|
+
"cache/file_data_provider/languages-MN.txt",
|
153
|
+
"cache/file_data_provider/languages-MR.txt",
|
154
|
+
"cache/file_data_provider/languages-MS.txt",
|
155
|
+
"cache/file_data_provider/languages-MT.txt",
|
156
|
+
"cache/file_data_provider/languages-NB.txt",
|
157
|
+
"cache/file_data_provider/languages-NL.txt",
|
158
|
+
"cache/file_data_provider/languages-NN.txt",
|
159
|
+
"cache/file_data_provider/languages-OC.txt",
|
160
|
+
"cache/file_data_provider/languages-OR.txt",
|
161
|
+
"cache/file_data_provider/languages-PA.txt",
|
162
|
+
"cache/file_data_provider/languages-PL.txt",
|
163
|
+
"cache/file_data_provider/languages-PS.txt",
|
164
|
+
"cache/file_data_provider/languages-PT.txt",
|
165
|
+
"cache/file_data_provider/languages-RO.txt",
|
166
|
+
"cache/file_data_provider/languages-RU.txt",
|
167
|
+
"cache/file_data_provider/languages-RW.txt",
|
168
|
+
"cache/file_data_provider/languages-SK.txt",
|
169
|
+
"cache/file_data_provider/languages-SL.txt",
|
170
|
+
"cache/file_data_provider/languages-SR.txt",
|
171
|
+
"cache/file_data_provider/languages-SV.txt",
|
172
|
+
"cache/file_data_provider/languages-TA.txt",
|
173
|
+
"cache/file_data_provider/languages-TE.txt",
|
174
|
+
"cache/file_data_provider/languages-TH.txt",
|
175
|
+
"cache/file_data_provider/languages-TI.txt",
|
176
|
+
"cache/file_data_provider/languages-TR.txt",
|
177
|
+
"cache/file_data_provider/languages-TT.txt",
|
178
|
+
"cache/file_data_provider/languages-UK.txt",
|
179
|
+
"cache/file_data_provider/languages-VE.txt",
|
180
|
+
"cache/file_data_provider/languages-VI.txt",
|
181
|
+
"cache/file_data_provider/languages-WA.txt",
|
182
|
+
"cache/file_data_provider/languages-XH.txt",
|
183
|
+
"cache/file_data_provider/languages-ZU.txt",
|
184
|
+
"example_output/all_names_for_DE.txt",
|
185
|
+
"example_output/all_names_for_FR.txt",
|
186
|
+
"example_output/all_names_for_GB.txt",
|
187
|
+
"example_output/all_names_for_US.txt",
|
188
|
+
"i18n_data.gemspec",
|
189
|
+
"lib/i18n_data.rb",
|
190
|
+
"lib/i18n_data/file_data_provider.rb",
|
191
|
+
"lib/i18n_data/live_data_provider.rb",
|
192
|
+
"spec/i18n_data/file_data_provider_spec.rb",
|
193
|
+
"spec/i18n_data/live_data_provider_spec.rb",
|
194
|
+
"spec/i18n_data_spec.rb",
|
195
|
+
"spec/spec_helper.rb"
|
189
196
|
]
|
190
|
-
s.homepage =
|
191
|
-
s.
|
197
|
+
s.homepage = "https://github.com/grosser/i18n_data"
|
198
|
+
s.licenses = ["MIT"]
|
192
199
|
s.require_paths = ["lib"]
|
193
|
-
s.rubygems_version =
|
194
|
-
s.summary =
|
195
|
-
s.test_files = [
|
196
|
-
"spec/spec_helper.rb",
|
197
|
-
"spec/i18n_data/file_data_provider_spec.rb",
|
198
|
-
"spec/i18n_data/live_data_provider_spec.rb",
|
199
|
-
"spec/i18n_data_spec.rb"
|
200
|
-
]
|
200
|
+
s.rubygems_version = "1.8.10"
|
201
|
+
s.summary = "country/language names and 2-letter-code pairs, in 85 languages"
|
201
202
|
|
202
203
|
if s.respond_to? :specification_version then
|
203
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
204
204
|
s.specification_version = 3
|
205
205
|
|
206
|
-
if Gem::Version.new(Gem::
|
206
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
207
207
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
208
208
|
else
|
209
209
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
@@ -49,11 +49,13 @@ module I18nData
|
|
49
49
|
def translations(type, language_code)
|
50
50
|
begin
|
51
51
|
url = TRANSLATIONS[type]+"#{language_code.downcase}.po"
|
52
|
-
data = open(url).
|
52
|
+
data = open(url).read
|
53
53
|
rescue
|
54
|
-
raise NoTranslationAvailable, "for #{type} and language code = #{language_code}"
|
54
|
+
raise NoTranslationAvailable, "for #{type} and language code = #{language_code} (#{$!})"
|
55
55
|
end
|
56
56
|
|
57
|
+
data = data.force_encoding('utf-8') if data.respond_to?(:force_encoding) # 1.9
|
58
|
+
data = data.split("\n")
|
57
59
|
po_to_hash data
|
58
60
|
end
|
59
61
|
memoize :translations
|
@@ -97,4 +99,4 @@ module I18nData
|
|
97
99
|
REXML::Document.new(xml)
|
98
100
|
end
|
99
101
|
end
|
100
|
-
end
|
102
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
require 'i18n_data/file_data_provider'
|
3
3
|
|
4
4
|
describe I18nData::FileDataProvider do
|
@@ -21,4 +21,4 @@ describe I18nData::FileDataProvider do
|
|
21
21
|
I18nData::FileDataProvider.send(:write_to_file,{}, @cache_file)
|
22
22
|
lambda{read("XX","YY")}.should raise_error I18nData::NoTranslationAvailable
|
23
23
|
end
|
24
|
-
end
|
24
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
require 'i18n_data/live_data_provider'
|
3
3
|
|
4
4
|
describe I18nData::LiveDataProvider do
|
5
5
|
describe :po_to_hash do
|
6
6
|
def po_to_hash(text)
|
7
|
-
I18nData::LiveDataProvider.send(:po_to_hash,text)
|
7
|
+
I18nData::LiveDataProvider.send(:po_to_hash,text.split("\n"))
|
8
8
|
end
|
9
9
|
|
10
10
|
it "parses po file into translations" do
|
@@ -41,4 +41,4 @@ EOF
|
|
41
41
|
po_to_hash(text)[long_name].should == "Kirchenslavisch"
|
42
42
|
end
|
43
43
|
end
|
44
|
-
end
|
44
|
+
end
|
data/spec/i18n_data_spec.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
require "spec_helper"
|
2
3
|
|
3
4
|
NUM_2_LETTER_LANGUAGES = 185
|
4
|
-
NUM_COUNTRIES =
|
5
|
+
NUM_COUNTRIES = 249
|
5
6
|
|
6
7
|
describe I18nData do
|
7
8
|
require "i18n_data/live_data_provider"
|
@@ -11,9 +12,7 @@ describe I18nData do
|
|
11
12
|
hash.detect{|k,v| k.to_s.empty? or v.to_s.empty?}
|
12
13
|
end
|
13
14
|
|
14
|
-
|
15
|
-
providers << I18nData::LiveDataProvider unless ENV['RUN_CODE_RUN']
|
16
|
-
providers.each do |provider|
|
15
|
+
[I18nData::FileDataProvider, I18nData::LiveDataProvider].each do |provider|
|
17
16
|
describe "using #{provider}" do
|
18
17
|
before :all do
|
19
18
|
I18nData.data_provider = provider
|
@@ -145,4 +144,4 @@ describe I18nData do
|
|
145
144
|
it "has a VERSION" do
|
146
145
|
I18nData::VERSION.should =~ /^\d+\.\d+\.\d+$/
|
147
146
|
end
|
148
|
-
end
|
147
|
+
end
|