Problem with globalize

Hi!

I’ve downloaded globalize (Revision 196: /globalize/branches/for-1.1),
run rake globalize:setup, which created new tables, set
Locale.set_base_language ‘pl-PL’ in enviroment.rb, but when i start the
server, i get this error:
C:/…/active_support/dependencies.rb:123:in `const_missing’:
uninitialized constant Locale (NameError)

When i try to run rake test:plugins i get the same error. Why is Locale
not initialized? Do i have to do something more to initialize this
plugin?

hello!

put:

include Globalize

into config/environment.rb

I think better you set Locale.set_base_language ‘en-US’ in your
environment.rb and Locale.set ‘pl-PL’ on a controller filter.

good luck :slight_smile:

2006/5/29, szymek [email protected]:

not initialized? Do i have to do something more to initialize this
plugin?


Posted via http://www.ruby-forum.com/.


Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion


andré ribeiro camargo
proprietário
boa idéia software livre :: boaideia.inf.br

SOFTWARE LIVRE
socialmente justo
econômicamente viável
tecnologicamente sustentável

André Camargo wrote:

hello!

put:

include Globalize

into config/environment.rb

I am having the same problem. But Globalize is allready include in
config/environment.rb - with no luck:

config/environment.rb:

[…]
include Globalize
Locale.set_base_language ‘en-US’
Locale.set ‘en-US’

Any hints for me?

Thanks for help,

Guido

Guido wrote:

config/environment.rb:

[…]
include Globalize
Locale.set_base_language ‘en-US’
Locale.set ‘en-US’

I also had to restart WEBrick before it worked for me.

d

Guido wrote:

I also had to restart WEBrick before it worked for me.

d

Holla, I guess I’ve should’ve been to bed at this time… So thanx for
the hint… a restart did the job for me too!

Thanks!