solidus_i18n 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.hound.yml +25 -0
  4. data/.rubocop.yml +7 -0
  5. data/.travis.yml +12 -0
  6. data/CONTRIBUTING.md +70 -0
  7. data/Gemfile +13 -0
  8. data/Guardfile +11 -0
  9. data/LICENSE.md +26 -0
  10. data/README.md +74 -0
  11. data/Rakefile +85 -0
  12. data/app/assets/javascripts/spree/backend/solidus_i18n.js +2 -0
  13. data/app/assets/javascripts/spree/backend/translations.js.coffee +5 -0
  14. data/app/assets/javascripts/spree/frontend/cart_decorator.js.coffee +5 -0
  15. data/app/assets/javascripts/spree/frontend/locale.js.coffee +3 -0
  16. data/app/assets/javascripts/spree/frontend/solidus_i18n.js +2 -0
  17. data/app/assets/stylesheets/spree/backend/solidus_i18n.css +8 -0
  18. data/app/assets/stylesheets/spree/frontend/solidus_i18n.css +8 -0
  19. data/app/controllers/spree/admin/general_settings_controller_decorator.rb +12 -0
  20. data/app/controllers/spree/api/base_controller_decorator.rb +3 -0
  21. data/app/controllers/spree/base_controller_decorator.rb +3 -0
  22. data/app/controllers/spree/locale_controller_decorator.rb +6 -0
  23. data/app/helpers/solidus_i18n/locale_helper.rb +31 -0
  24. data/app/overrides/spree/admin/general_settings/edit/localization_settings.html.erb.deface +20 -0
  25. data/app/overrides/spree/shared/_main_nav_bar/cart_link.html.erb.deface +9 -0
  26. data/app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface +16 -0
  27. data/bin/rails +7 -0
  28. data/config/initializers/country_names.rb +51 -0
  29. data/config/initializers/routing_filter.rb +2 -0
  30. data/config/locales/bg.yml +1330 -0
  31. data/config/locales/ca.yml +1334 -0
  32. data/config/locales/cs.yml +1363 -0
  33. data/config/locales/da.yml +1336 -0
  34. data/config/locales/de-CH.yml +1288 -0
  35. data/config/locales/de.yml +1477 -0
  36. data/config/locales/en-AU.yml +1334 -0
  37. data/config/locales/en-GB.yml +1338 -0
  38. data/config/locales/en-IN.yml +1336 -0
  39. data/config/locales/en-NZ.yml +1334 -0
  40. data/config/locales/es-CL.yml +1398 -0
  41. data/config/locales/es-EC.yml +1338 -0
  42. data/config/locales/es-MX.yml +1337 -0
  43. data/config/locales/es.yml +1338 -0
  44. data/config/locales/et.yml +1316 -0
  45. data/config/locales/fa.yml +1163 -0
  46. data/config/locales/fi.yml +1352 -0
  47. data/config/locales/fr.yml +1588 -0
  48. data/config/locales/id.yml +1335 -0
  49. data/config/locales/it.yml +1395 -0
  50. data/config/locales/ja.yml +1336 -0
  51. data/config/locales/ko.yml +1294 -0
  52. data/config/locales/lv.yml +1328 -0
  53. data/config/locales/nb.yml +1339 -0
  54. data/config/locales/nl.yml +1338 -0
  55. data/config/locales/pl.yml +1345 -0
  56. data/config/locales/pt-BR.yml +1364 -0
  57. data/config/locales/pt.yml +1290 -0
  58. data/config/locales/ro.yml +1335 -0
  59. data/config/locales/ru.yml +1400 -0
  60. data/config/locales/sk.yml +1345 -0
  61. data/config/locales/sl-SI.yml +1288 -0
  62. data/config/locales/sv.yml +1372 -0
  63. data/config/locales/th.yml +1330 -0
  64. data/config/locales/tr.yml +1291 -0
  65. data/config/locales/uk.yml +1447 -0
  66. data/config/locales/vi.yml +1290 -0
  67. data/config/locales/zh-CN.yml +1345 -0
  68. data/config/locales/zh-TW.yml +1293 -0
  69. data/config/routes.rb +6 -0
  70. data/db/migrate/20150609154031_remove_translations_from_spree_tables.rb +65 -0
  71. data/lib/generators/solidus_i18n/install/install_generator.rb +27 -0
  72. data/lib/solidus_i18n/configuration.rb +9 -0
  73. data/lib/solidus_i18n/controller_locale_helper.rb +29 -0
  74. data/lib/solidus_i18n/engine.rb +45 -0
  75. data/lib/solidus_i18n/locale.rb +13 -0
  76. data/lib/solidus_i18n/utils.rb +56 -0
  77. data/lib/solidus_i18n/version.rb +18 -0
  78. data/lib/solidus_i18n.rb +8 -0
  79. data/lib/tasks/solidus_i18n/upgrade.rake +43 -0
  80. data/solidus_i18n.gemspec +46 -0
  81. data/spec/controllers/locales_controller_spec.rb +24 -0
  82. data/spec/features/admin/translations_spec.rb +33 -0
  83. data/spec/features/russian_errors_translation_spec.rb +17 -0
  84. data/spec/features/translation_spec.rb +31 -0
  85. data/spec/features/translations_spec.rb +28 -0
  86. data/spec/spec_helper.rb +31 -0
  87. data/spec/support/capybara.rb +11 -0
  88. data/spec/support/database_cleaner.rb +23 -0
  89. data/spec/support/factory_girl.rb +5 -0
  90. data/spec/support/i18n.rb +5 -0
  91. data/spec/support/spree.rb +12 -0
  92. metadata +411 -0
metadata ADDED
@@ -0,0 +1,411 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: solidus_i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas von Deyen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: i18n_data
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.7.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails-i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: kaminari-i18n
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.3.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.3.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: routing-filter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.5.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.5.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: solidus_core
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: deface
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: capybara
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.4.4
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.4.4
125
+ - !ruby/object:Gem::Dependency
126
+ name: coffee-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 4.0.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 4.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: database_cleaner
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.3'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.3'
153
+ - !ruby/object:Gem::Dependency
154
+ name: factory_girl
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '4.5'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '4.5'
167
+ - !ruby/object:Gem::Dependency
168
+ name: ffaker
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 1.25.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 1.25.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: poltergeist
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1.5'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.5'
195
+ - !ruby/object:Gem::Dependency
196
+ name: pry-rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 0.3.0
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 0.3.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: 0.24.1
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 0.24.1
223
+ - !ruby/object:Gem::Dependency
224
+ name: rspec-rails
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '3.1'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '3.1'
237
+ - !ruby/object:Gem::Dependency
238
+ name: sass-rails
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: 5.0.0
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: 5.0.0
251
+ - !ruby/object:Gem::Dependency
252
+ name: simplecov
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '0.9'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: '0.9'
265
+ - !ruby/object:Gem::Dependency
266
+ name: guard-rspec
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: 4.2.0
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: 4.2.0
279
+ description: Provides locale information for use in Solidus.
280
+ email: tvd@magiclabs.de
281
+ executables: []
282
+ extensions: []
283
+ extra_rdoc_files: []
284
+ files:
285
+ - ".gitignore"
286
+ - ".hound.yml"
287
+ - ".rubocop.yml"
288
+ - ".travis.yml"
289
+ - CONTRIBUTING.md
290
+ - Gemfile
291
+ - Guardfile
292
+ - LICENSE.md
293
+ - README.md
294
+ - Rakefile
295
+ - app/assets/javascripts/spree/backend/solidus_i18n.js
296
+ - app/assets/javascripts/spree/backend/translations.js.coffee
297
+ - app/assets/javascripts/spree/frontend/cart_decorator.js.coffee
298
+ - app/assets/javascripts/spree/frontend/locale.js.coffee
299
+ - app/assets/javascripts/spree/frontend/solidus_i18n.js
300
+ - app/assets/stylesheets/spree/backend/solidus_i18n.css
301
+ - app/assets/stylesheets/spree/frontend/solidus_i18n.css
302
+ - app/controllers/spree/admin/general_settings_controller_decorator.rb
303
+ - app/controllers/spree/api/base_controller_decorator.rb
304
+ - app/controllers/spree/base_controller_decorator.rb
305
+ - app/controllers/spree/locale_controller_decorator.rb
306
+ - app/helpers/solidus_i18n/locale_helper.rb
307
+ - app/overrides/spree/admin/general_settings/edit/localization_settings.html.erb.deface
308
+ - app/overrides/spree/shared/_main_nav_bar/cart_link.html.erb.deface
309
+ - app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface
310
+ - bin/rails
311
+ - config/initializers/country_names.rb
312
+ - config/initializers/routing_filter.rb
313
+ - config/locales/bg.yml
314
+ - config/locales/ca.yml
315
+ - config/locales/cs.yml
316
+ - config/locales/da.yml
317
+ - config/locales/de-CH.yml
318
+ - config/locales/de.yml
319
+ - config/locales/en-AU.yml
320
+ - config/locales/en-GB.yml
321
+ - config/locales/en-IN.yml
322
+ - config/locales/en-NZ.yml
323
+ - config/locales/es-CL.yml
324
+ - config/locales/es-EC.yml
325
+ - config/locales/es-MX.yml
326
+ - config/locales/es.yml
327
+ - config/locales/et.yml
328
+ - config/locales/fa.yml
329
+ - config/locales/fi.yml
330
+ - config/locales/fr.yml
331
+ - config/locales/id.yml
332
+ - config/locales/it.yml
333
+ - config/locales/ja.yml
334
+ - config/locales/ko.yml
335
+ - config/locales/lv.yml
336
+ - config/locales/nb.yml
337
+ - config/locales/nl.yml
338
+ - config/locales/pl.yml
339
+ - config/locales/pt-BR.yml
340
+ - config/locales/pt.yml
341
+ - config/locales/ro.yml
342
+ - config/locales/ru.yml
343
+ - config/locales/sk.yml
344
+ - config/locales/sl-SI.yml
345
+ - config/locales/sv.yml
346
+ - config/locales/th.yml
347
+ - config/locales/tr.yml
348
+ - config/locales/uk.yml
349
+ - config/locales/vi.yml
350
+ - config/locales/zh-CN.yml
351
+ - config/locales/zh-TW.yml
352
+ - config/routes.rb
353
+ - db/migrate/20150609154031_remove_translations_from_spree_tables.rb
354
+ - lib/generators/solidus_i18n/install/install_generator.rb
355
+ - lib/solidus_i18n.rb
356
+ - lib/solidus_i18n/configuration.rb
357
+ - lib/solidus_i18n/controller_locale_helper.rb
358
+ - lib/solidus_i18n/engine.rb
359
+ - lib/solidus_i18n/locale.rb
360
+ - lib/solidus_i18n/utils.rb
361
+ - lib/solidus_i18n/version.rb
362
+ - lib/tasks/solidus_i18n/upgrade.rake
363
+ - solidus_i18n.gemspec
364
+ - spec/controllers/locales_controller_spec.rb
365
+ - spec/features/admin/translations_spec.rb
366
+ - spec/features/russian_errors_translation_spec.rb
367
+ - spec/features/translation_spec.rb
368
+ - spec/features/translations_spec.rb
369
+ - spec/spec_helper.rb
370
+ - spec/support/capybara.rb
371
+ - spec/support/database_cleaner.rb
372
+ - spec/support/factory_girl.rb
373
+ - spec/support/i18n.rb
374
+ - spec/support/spree.rb
375
+ homepage: https://solidus.io
376
+ licenses:
377
+ - BSD-3
378
+ metadata: {}
379
+ post_install_message:
380
+ rdoc_options: []
381
+ require_paths:
382
+ - lib
383
+ required_ruby_version: !ruby/object:Gem::Requirement
384
+ requirements:
385
+ - - ">="
386
+ - !ruby/object:Gem::Version
387
+ version: '0'
388
+ required_rubygems_version: !ruby/object:Gem::Requirement
389
+ requirements:
390
+ - - ">="
391
+ - !ruby/object:Gem::Version
392
+ version: '0'
393
+ requirements:
394
+ - none
395
+ rubyforge_project:
396
+ rubygems_version: 2.4.8
397
+ signing_key:
398
+ specification_version: 4
399
+ summary: Provides locale information for use in Solidus.
400
+ test_files:
401
+ - spec/controllers/locales_controller_spec.rb
402
+ - spec/features/admin/translations_spec.rb
403
+ - spec/features/russian_errors_translation_spec.rb
404
+ - spec/features/translation_spec.rb
405
+ - spec/features/translations_spec.rb
406
+ - spec/spec_helper.rb
407
+ - spec/support/capybara.rb
408
+ - spec/support/database_cleaner.rb
409
+ - spec/support/factory_girl.rb
410
+ - spec/support/i18n.rb
411
+ - spec/support/spree.rb