Forum: Rails I18n gettext 1.90 to 2.0.5

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.
84655ec3aa602cd832e32e072671d092?d=identicon&s=25 Leonardo Wong (leonardowong)
on 2010-01-11 13:34
I upgrade our project from Rails 2.0.2 to Rails 2.3.5. We are using
gettext 1.9x, so I follow this tutorial to upgrade the gettext plugin.:
http://www.yotabanana.com/hiki/ruby-gettext-rails-...

base on the following tutorial, we use before_filter and set_locale in
application controller:
http://www.yotabanana.com/hiki/ruby-gettext-howto-...
however it does not work.

The first time the user set the locale, the page works, however when the
user go to other page, the locale setting either rollback or override by
user's browser settings.

I also tried I18n.locale and GetText.locale to set the locale, it
doesn't help.

Any idea what is gonig on in my case?

Thanks.
84655ec3aa602cd832e32e072671d092?d=identicon&s=25 Leonardo Wong (leonardowong)
on 2010-01-11 13:35
the gettext, gettext_activerecord, gettext_rails is version 2.1.0
This topic is locked and can not be replied to.