HI,

I am developing an application in new rails etch, trying to use
globalize2.

I placed the initializer in config/initializers/globalize.rb :
######################################
ActiveRecord::Base.send :include,
Globalize::Model::ActiveRecord::Translated
I18n.send :include, Globalize::LoadPath::I18n

I18n.load_path << "#{RAILS_ROOT}/app/locales"
I18n.load_locales :en, :de
I18n.fallbacks.map :de => :en, :he => :en

I18n.default_locale = 'en-US'

# globalize comp
LOCALES = [:en, :de]
#######################################
but when I start the server I get the following error:

/Users/fwalter/development/manager/config/initializers/globalize.rb:2:
warning: toplevel constant I18n referenced by
Globalize::LoadPath::I18n
Exiting
/Users/fwalter/development/manager/vendor/rails/activesupport/lib/
active_support/vendor/builder-2.1.2/blankslate.rb:106:in
`blankslate_original_append_features': cyclic include detected
(ArgumentError)
        from /Users/fwalter/development/manager/vendor/rails/activesupport/
lib/active_support/vendor/builder-2.1.2/blankslate.rb:106:in
`append_features'
        from /Users/fwalter/development/manager/config/initializers/
globalize.rb:2:in `include'
        from /Users/fwalter/development/manager/config/initializers/
globalize.rb:2:in `send'
        from /Users/fwalter/development/manager/config/initializers/
globalize.rb:2
        from /Users/fwalter/development/manager/vendor/rails/activesupport/
lib/active_support/dependencies.rb:141:in
`load_without_new_constant_marking'
        from /Users/fwalter/development/manager/vendor/rails/activesupport/
lib/active_support/dependencies.rb:141:in `load'
        from /Users/fwalter/development/manager/vendor/rails/activesupport/
lib/active_support/dependencies.rb:507:in `new_constants_in'
        from /Users/fwalter/development/manager/vendor/rails/activesupport/
lib/active_support/dependencies.rb:141:in `load'
         ... 33 levels...
        from /Users/fwalter/development/manager/vendor/rails/railties/lib/
commands/server.rb:49
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
        from script/server:3

i placed some yml files in  app/locales/ :

all.yml
en/en.yml
de/de.yml

do you have any quick bugfixes?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to