# Newbee met problems when do some i18n on rails

**URL:** <https://www.ruby-forum.com/t/newbee-met-problems-when-do-some-i18n-on-rails/155587>\
**Category:** Rails\
**Created:** [December 14, 2008, 3:32am UTC](https://www.ruby-forum.com/t/newbee-met-problems-when-do-some-i18n-on-rails/155587 "2008-12-14T03:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jette](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d9b06d/32.png) [@jette](https://www.ruby-forum.com/u/jette)\
**Post date:** [December 14, 2008, 3:32am UTC](https://www.ruby-forum.com/t/newbee-met-problems-when-do-some-i18n-on-rails/155587/1 "2008-12-14T03:32:01Z")

</div>

1. I have download the zh-CN.yml file from  
[http://github.com/svenfuchs/rails-i18n/tree/master/rails](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?
