g0nzo
May 29, 2006, 4:59pm
#1
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?
g0nzo
May 29, 2006, 5:46pm
#2
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
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
g0nzo
June 5, 2006, 6:08am
#3
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
g0nzo
June 13, 2006, 12:02pm
#4
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
g0nzo
August 15, 2006, 11:18pm
#5
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!