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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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
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', '*.
config.i18n.default_locale = :'zh-CN'

But, when I restart my server and try to access the rails project via
I've got one message "can't convert Array into String", it comes from
this <%=h distance_of_time_in_words(, 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.