Forum: Ruby on Rails problem with globalize

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B9a732fc30c32098347a0177c75ee27b?d=identicon&s=25 Jeroen Houben (Guest)
on 2006-02-11 19:24
(Received via mailing list)
Hi,

Somehow the date translation example in globalize doesn't work for me.

Loading development environment.
 >> Locale.set("es-ES")
=> #<Globalize::Locale:0x254df78 @code="es-ES", @language=nil,
@country=nil>
 >> Time.now.localize("%d %B %Y")
=> "11 February 2006"
 >>

Any ideas??

Thanks!

Jeroen
D444791fa932ffdb231ff35458e1d1fa?d=identicon&s=25 Joshua Harvey (joshmh)
on 2006-02-11 19:57
Hi Jeroen,

First of all, there's a new mailing-list for Globalize -- check out:
http://globalize-rails.org/wiki/pages/MailingList. Also, feel free to
drop in on #globalize in IRC on freenode.

It looks like your language isn't getting loaded (@language=nil). Are
you sure your globalize_languages table is populated correctly?

Josh
http://globalize-rails.org
http://shnoo.gr

Jeroen Houben wrote:
> Hi,
>
> Somehow the date translation example in globalize doesn't work for me.
>
> Loading development environment.
>  >> Locale.set("es-ES")
> => #<Globalize::Locale:0x254df78 @code="es-ES", @language=nil,
> @country=nil>
>  >> Time.now.localize("%d %B %Y")
> => "11 February 2006"
>  >>
>
> Any ideas??
>
> Thanks!
>
> Jeroen
This topic is locked and can not be replied to.