grosser/gettext_i18n_rails — pull request #43 by pwim (2011-12-07 09:12:59+00:00)
Title: Default locale handling

The semantics of `FastGettext.set_locale(nil)` and `I18n.locale = nil` are slightly different.

With `I18n.locale = nil`, future calls to `I18n.locale` will return `I18n.default_locale`.

With `FastGettext.set_locale(nil)`, future calls to `FastGettext.locale` will return the previous value of `FastGettext.locale`.

In the FastGettext specs, this seems to be by design, so I have fixed this behaviour within `lib/gettext_i18n_rails/action_controller.rb`, but you might want to consider changing the behaviour in FastGettext instead.