tog fresh install issue with locales

15 views
Skip to first unread message

sethg

unread,
Jun 15, 2010, 11:15:49 PM6/15/10
to tog_users
I just installed tog -- I am running rails 2.3.8

I am getting error when I run ruby script/server.

I installed it before in 2.3.5 and it is running fine but that was
some time ago and the install package has changed -- I'd liek to
reinstall and start from scratch.

can someone assist?

undefined method `available_locales' for #<I18n::Backend::Simple:
0x102de0898>

-Seth

Dan B

unread,
Jun 16, 2010, 1:22:49 AM6/16/10
to tog_users
I don't know the official reason for this problem, but I know I fixed
it on my install by deleting the i18n components in tog_core and using
the i18n gem instead. The files were:

:100644 000000 3ad7a33... 0000000... D vendor/plugins/tog_core/lib/
i18n.rb
:100644 000000 bdda55d... 0000000... D vendor/plugins/tog_core/lib/
i18n/backend/simple.rb
:100644 000000 0f3eff1... 0000000... D vendor/plugins/tog_core/lib/
i18n/exceptions.rb

I stopped after that.

-- Dan

Alberto Molpeceres

unread,
Jun 16, 2010, 5:08:18 AM6/16/10
to tog_...@googlegroups.com
Umm... good to know. That code has written before Rails had official
support for i18n, so probably it doesn't make sense anymore to have it
there. I'll remove it after a few tests.

Thank you,

al.

> --
> You received this message because you are subscribed to the Google Groups "tog_users" group.
> To post to this group, send email to tog_...@googlegroups.com.
> To unsubscribe from this group, send email to tog_users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tog_users?hl=en.
>
>

sethg

unread,
Jun 17, 2010, 10:53:19 AM6/17/10
to tog_users
so can you tell me eactly what I need to do to make this work?

delete the i18n.rb file and folder in tog_cor/lib

then install the gem i18n ?

thx for helping.

sg

On Jun 16, 5:08 am, Alberto Molpeceres <albe...@linkingpaths.com>
wrote:

Alberto Molpeceres

unread,
Jun 17, 2010, 10:58:36 AM6/17/10
to tog_...@googlegroups.com
Yes, that should make the trick. You will also need to require that
gem in config/environment.rb

al.

--
Alberto Molpeceres.
Linking Paths.

Simple registration for your events. http://www.stagehq.com

sethg

unread,
Jun 18, 2010, 9:42:34 PM6/18/10
to tog_users
thanks for the help, much appreciated. it worked perfectly.

sg

On Jun 17, 10:58 am, Alberto Molpeceres <albe...@linkingpaths.com>
wrote:
> Yes, that should make the trick. You will also need to require that
> gem in config/environment.rb
>
>    al.
>
> --
> Alberto Molpeceres.
> Linking Paths.
>
> Simple registration for your events.http://www.stagehq.com
Reply all
Reply to author
Forward
0 new messages