spree_simple_product_translations 0.0.7.beta3 → 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +4 -7
  2. data/lib/tasks/install.rake +9 -9
  3. metadata +9 -8
data/README.md CHANGED
@@ -24,16 +24,13 @@ If you have pre-existing data, you'll need to run this rake task:
24
24
 
25
25
  rake spree:extensions:product_translations:globalize_legacy_data
26
26
 
27
- # Open issues
28
- ## Globalize3
29
- In the current version of [Globalize3](https://github.com/svenfuchs/globalize3) there is an issue with fallbacks. When you add new translations in the forms, but leave some of them blank, they won't fall back to the default locale. This is because [Globalize3](https://github.com/svenfuchs/globalize3) only loads fallbacks when the values are nil. Because of the way Rails handles these attributes, they will be stored as blank strings into the database.
30
-
31
- If you are using the fallbacks, you might want to use [my fork](https://github.com/jeroenj/globalize3) of [Globalize3](https://github.com/svenfuchs/globalize3) in your Gemfile until it gets merged into [Globalize3](https://github.com/svenfuchs/globalize3)'s [master branch](https://github.com/svenfuchs/globalize3):
27
+ ## Fallbacks for empty translations ##
32
28
 
33
- gem 'globalize3', :git => 'git://github.com/jeroenj/globalize3.git', :branch => 'fallbacks-master'
29
+ You might want to use fallbacks to the default locale if you haven't entered translations. By default fallbacks will only be loaded if the translation is `nil`. If you're entering translations through the forms, empty translations will be set to an empty string, causing fallbacks to not work. If you want to enable fallbacks for empty translations you can simply set the following configuration in an initializer in your app:
34
30
 
35
- For those interested, you can follow [the pull request here](https://github.com/svenfuchs/globalize3/pull/47).
31
+ Spree::Config.set :fallbacks_for_empty_translations => true
36
32
 
33
+ # Open issues
37
34
  ## Empty forms (properties & taxons)
38
35
  Spree is using symbols instead of objects to define `form_for`'s for properties and taxons. This causes the forms to be empty. This can be fixed by overriding both edit pages with the changes found in [this pull request](https://github.com/spree/spree/pull/326).
39
36
 
@@ -1,17 +1,18 @@
1
1
  namespace :spree_simple_product_translations do
2
2
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
3
3
  task :install do
4
- Rake::Task['spree_simple_product_translations:install:migrations'].invoke
4
+ # Rake::Task['spree_simple_product_translations:install:migrations'].invoke
5
5
  Rake::Task['spree_simple_product_translations:install:assets'].invoke
6
6
  end
7
7
 
8
8
  namespace :install do
9
- desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
10
- task :migrations do
11
- source = File.join(File.dirname(__FILE__), '..', '..', 'db')
12
- destination = File.join(Rails.root, 'db')
13
- Spree::FileUtilz.mirror_files(source, destination)
14
- end
9
+ # desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
10
+ # task :migrations do
11
+ # source = File.join(File.dirname(__FILE__), '..', '..', 'db')
12
+ # destination = File.join(Rails.root, 'db')
13
+ # puts "INFO: Mirroring migrations from #{source} to #{destination}"
14
+ # Spree::FileUtilz.mirror_files(source, destination)
15
+ # end
15
16
 
16
17
  desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
17
18
  task :assets do
@@ -21,5 +22,4 @@ namespace :spree_simple_product_translations do
21
22
  Spree::FileUtilz.mirror_files(source, destination)
22
23
  end
23
24
  end
24
-
25
- end
25
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_simple_product_translations
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196381
4
+ hash: 62196401
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 7
10
10
  - beta
11
- - 3
12
- version: 0.0.7.beta3
11
+ - 1
12
+ version: 0.1.0.beta1
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jeroen Jacobs
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-05-19 00:00:00 +02:00
20
+ date: 2011-09-21 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -44,12 +44,13 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- hash: 25
47
+ hash: 31098185
48
48
  segments:
49
49
  - 0
50
+ - 1
50
51
  - 0
51
- - 3
52
- version: 0.0.3
52
+ - beta
53
+ version: 0.1.0.beta
53
54
  type: :runtime
54
55
  version_requirements: *id002
55
56
  description: