spree ecommerce: setting default locale to German and stuff

10th January 2012 – 143 words

Spree is a fantastic eCommerce Rails-Engine. To change it, to speak German, one has to:

# Gemfile

# original repository not compatible at the moment, use fork
#gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git'
gem 'spree_i18n', :git => 'git://github.com/kares/spree_i18n.git'

# sh
bundle
rake spree_i18n:update_default
rake spree_i18n:sync
wget https://github.com/svenfuchs/rails-i18n/raw/master/rails/locale/de.yml -O config/locales/rails_de.yml

# config/initializers/spree.rb
if Spree::Config.instance
  Spree::Config.set(:default_locale => 'de')
end

this should get you started


Reposted from notes.it-jobs-und-stellen.de