# Gettext 1.90 to 2.0.5

**URL:** <https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398>\
**Category:** Rails I18n\
**Created:** [January 11, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398 "2010-01-11T13:34:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ledowong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Post date:** [January 11, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398/1 "2010-01-11T13:34:02Z")

</div>

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-migration.html](http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html)

base on the following tutorial, we use before\_filter and set\_locale in  
application controller:  
[http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#before%2Fafter\_init\_gettext](http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#before%2Fafter_init_gettext)  
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.

---

<div class="post-metadata">

**Author:** ![ledowong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Post date:** [January 11, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398/2 "2010-01-11T13:35:35Z")

</div>

the gettext, gettext\_activerecord, gettext\_rails is version 2.1.0
