From: Arthur Chan Date: 2009-06-08T14:25:39+09:00 Subject: Chinese strftime Hi guys, I need to translate the strftime into chinese. I found a tutorial (ref: http://out-of-pc.blogspot.com/2008/01/ruby-on-rails.html) require 'date' Date::ABBR_DAYNAMES.replace %w(日 一 二 三 四 五 六) Date::DAYNAMES.replace %w(星期日 星期一 星期二 星期三 星期四 星期五 星期六) Date::ABBR_MONTHNAMES.replace %w(nil 1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月) Date::MONTHNAMES.replace %w(nil 一月 二月 三月 四月 五月 六月 七月 八月 九月 十月 十一月 十二月) It asked us to update the environment.rb. However, I found "replace can't modify frozen array" error when I restart the server. I don't know whether this way to update the frozen array is correct? Is there any better solution? My Rails is "2.0.2". Thanks much Arthur -- Posted via http://www.ruby-forum.com/.