Skip to content

Commit

Permalink
Enables fallbacks. globalize3 master commit a6d2d5f084d54e7593e600df7…
Browse files Browse the repository at this point in the history
…cd6c9be49bdff68 needs to be added to spree app Gemfile
  • Loading branch information
jeroenj committed Aug 11, 2011
1 parent 2c1541c commit 4a50e92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/spree_product_translations.rb
Expand Up @@ -11,31 +11,31 @@ def self.activate
end

::Product.class_eval do
translates :name, :description, :meta_description, :meta_keywords
translates :name, :description, :meta_description, :meta_keywords, :fallbacks_for_empty_translations => true
end

::Property.class_eval do
translates :presentation
translates :presentation, :fallbacks_for_empty_translations => true
end

::Prototype.class_eval do
translates :name
translates :name, :fallbacks_for_empty_translations => true
end

::Taxonomy.class_eval do
translates :name
translates :name, :fallbacks_for_empty_translations => true
end

::Taxon.class_eval do
translates :name, :description
translates :name, :description, :fallbacks_for_empty_translations => true
end

::OptionType.class_eval do
translates :presentation
translates :presentation, :fallbacks_for_empty_translations => true
end

::OptionValue.class_eval do
translates :presentation
translates :presentation, :fallbacks_for_empty_translations => true
end

# Enable I18n fallbacks
Expand Down
2 changes: 1 addition & 1 deletion spree_product_translations.gemspec
Expand Up @@ -13,6 +13,6 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'

s.add_dependency('globalize3', '~> 0.1.0.beta')
s.add_dependency('globalize3', '~> 0.2.0.beta1')
s.add_dependency('spree_core', '>= 0.40.3')
end

0 comments on commit 4a50e92

Please sign in to comment.