spree-contrib / spree_i18n

I18n translation files for Spree Commerce.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
348 stars 762 forks source link

Error: Don't know how to build task 'spree_i18n:update_default' #89

Closed sabrina2 closed 12 years ago

sabrina2 commented 12 years ago

Hi,

I installed spree_i18n as described here: https://github.com/spree/spree_i18n

Then I added the line config.i18n.default_locale = :de to config/application.rb.

When I try to run $ rake spree_i18n:update_default as described here: http://guides.spreecommerce.com/i18n.html#refreshing-the-default-locale

I get an error:

rake aborted!
Don't know how to build task 'spree_i18n:update_default' 

Regards, Sabrina

radar commented 12 years ago

I would assume this is because you're running it inside a Rails application, rather than inside the spree_i18n project itself. This task is only available inside spree_i18n.

Why were you trying to run it inside an app?

sabrina2 commented 12 years ago

Oh yes, you're right! I missed the big red note on top of the instructions (http://guides.spreecommerce.com/i18n.html#creating-and-modifying-locales): "These instructions pertain to the use of the spree_18n gem. They assume that you are working with your locale files within the context of the spree_i18n source code. It is certainly possible to work with locale files directly within your Rails application but the Rake tasks would need to be adjusted slightly if you intended to use them."