I am installing globalize in a new rails project and when I start the
webrick server I get this error:
vendor/plugins/globalize/lib/globalize/localization/rfc_3066.rb:6:in
`parse': bad format for en_US, not rfc-3066 compliant (ArgumentError)
config/environment.rb
# Support for globalize plugin see:
#
http://www.globalize-rails.org/globalize/ include Globalize
Locale.set_base_language 'en_US'
Locale.set 'en_US'
# Set these for globalize unicode support
$KCODE = 'u'
require 'jcode'
app/controllers/application.rb
# support for unicode in globalize plugin
after_fileter :set_charset
def set_charset
unless @headers["Content-Type"] =~ /charset/i
@headers["Centent-Type"] ||= ""
@headers["Content-Type"]+= "; charset=utf-8"
end
end
Anyone have any idea of what I have missed?
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:
ByrneJB@...
Harte & Lyne Limited
http://www.harte-lyne.ca9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3