- I have download the zh-CN.yml file from
http://github.com/svenfuchs/rails-i18n/tree/master/rails
locale - I have put this zh-CN.yml in to my locales folder.
- 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?