[Rails] translation missing: en.date.formats.default
Getting a strange error on missing translation.
>>I18n.l(Order.first.created_at.to_date)
I18n::MissingTranslationData: translation missing:
en.date.formats.default
But if try this:
I18n.l(Order.first.created_at)
"2011-11-26 13:25:21 UTC"
this is in my config/locale/en.yml
en:
date:
formats:
default: "%Y-%m-%d %H:%M:%S %Z"
Any thought on why I am getting this error? thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home