I have an app that contains en.yml and cn.yml which both contain equal amount of translations. With en.yml i dont have any problems, but with cn.yml I have problems with datetime_select control.
I get: undefined method `-' for "translation missing: cn.date.order":String
If I add cn.date.order i get: undefined method `-' for "some text":String
How can I fix that?
PS: I am using ruby 1.9.3 and ROR 3.0.17
Do you mean zh-CN? We don't have a locale named cn.
I've changed to zh-CN and i get the same thing: undefined method `-' for "translation missing: zh-CN.date.order":String
Do you have gem 'rails-i18n' in your Gemfile?
This error message shows that the date.order entry is missing from the zh-CN locale.
If you want to solve this by adding date.order entry to your own locale file, you should give it an array like as:
I've added the text to locale file and now it works fine. I dont have gem 'rails-i18n' in the Gemfile.