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?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---