grosser/gettext_i18n_rails — Issue #47: rake gettext no listed
Author: karellm
Created: 2011-12-21 20:51:38+00:00
State: open

Hi,

I'm trying to implement gettext in my app and I'm a bit confused. First of all, there are gettext, gettext_i18n_rails and fast_gettext. The last two projects document different implementations. Which one should I follow in a Rails 3.1 app?

I tried your exemple application and `rake gettext -T` returns something. Though, with the same gems `fast_gettext` and `gettext` but not `gettext_i18n_rails`, I don't get nothing with a `rake gettext -T`. I tried bundle update, restarting the app... everything I can think of.

If I had the `gettext_i18n_rails` gem, I get the rake methods (with the same error as bug #42) and these errors appear:
Creating scope :page. Overwriting existing method ActiveRecord::SessionStore::Session.page.
Creating scope :page. Overwriting existing method User.page.
Creating scope :page. Overwriting existing method Internship.page.
Creating scope :page. Overwriting existing method Globalize::ActiveRecord::Translation.page.
Creating scope :page. Overwriting existing method .page.
Creating scope :page. Overwriting existing method Offer.page.
Creating scope :page. Overwriting existing method Favourite.page.

Regarding configuration, I have a `fast_gettext.rb` initializer:
FastGettext.add_text_domain 'app', :path => 'locale'
FastGettext.default_available_locales = ['en','fr']
FastGettext.default_text_domain = 'app'

And `environment.rb` has:
GettextI18nRails.translations_are_html_safe = true

Do you have any idea of what is going on? Thanks