Forum: Ruby on Rails Newbee met problems when do some i18n on rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jette C. (Guest)
on 2008-12-14 04:32
(Received via mailing list)
1. I have download the zh-CN.yml file from
http://github.com/svenfuchs/rails-i18n/tree/master/rails
locale
2. I have put this zh-CN.yml in to my locales folder.
3. I have modified the enviorment.rb like follow:
config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.
{rb,yml}')]
config.i18n.default_locale = :'zh-CN'

But, when I restart my server and try to access the rails project via
browser.
I've got one message "can't convert Array into String", it comes from
this <%=h distance_of_time_in_words(Time.now, item.expiredate, true)
%>
And it seems everything related to data and time got this message.

Any one can help me point out the problem I have?
This topic is locked and can not be replied to.