Whilst trying to localize the date/time tag 2009-12-01 21:49:59 +0900
I kept getting the error TypeError: can't convert nil into String
coming from activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/
lib/i18n/backend/simple.rb:62:in `gsub!'
Whilst trying to localize the date/time tag 2009-12-01 21:49:59 +0900
I kept getting the error TypeError: can't convert nil into String
coming from activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/
lib/i18n/backend/simple.rb:62:in `gsub!'
object.mon was being called as 12, where the array index would have
been 11 for the 12th item hence the error being made,
I added a dummy 0 month item in my localization file and it worked...
Well looking at the various translation files at
http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale/ they
all have a dummy valye as the first month name, so it would certainly
seem that the rails i18n folks are aware of it. They've got a google
group which would be the sensible place to discuss this further