Created
November 20, 2012 03:13
-
-
Save rpontes/4115714 to your computer and use it in GitHub Desktop.
Error admin spree_i18n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in Spree/admin/overview#index | |
Showing /home/vagrant/local/ruby/gems/gems/spree_core-1.2.2/app/views/spree/admin/shared/_translations.html.erb where line #7 raised: | |
undefined method `delete_if' for "translation missing: pt-BR.date.month_names":String | |
Extracted source (around line #7): | |
4: :scope => 'spree.date_picker', | |
5: :default => 'yy/mm/dd'), | |
6: :abbr_day_names => I18n.t(:abbr_day_names, :scope => :date), | |
7: :month_names => I18n.t(:month_names, :scope => :date).delete_if(&:blank?), | |
8: :previous => I18n.t(:previous), | |
9: :next => I18n.t(:next), | |
10: :no_results => I18n.t(:no_results), | |
Trace of template inclusion: /home/vagrant/local/ruby/gems/gems/spree_core-1.2.2/app/views/spree/admin/shared/_head.html.erb, /home/vagrant/local/ruby/gems/gems/spree_core-1.2.2/app/views/spree/layouts/admin.html.erb | |
Rails.root: /vagrant/store |
It doesn't help. For example
ru.date.month_names is missing in ru.yml file from spree_i18n gem.
I did add it and got the same exception as above...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
1-edit "/store/config/application.rb" add this line==> config.i18n.default_locale = :"pt-BR"
2-copy https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/pt-BR.yml to /store/config/locales/pt-BR.yml
3-restart server