grosser / gettext_i18n_rails

Rails: FastGettext, I18n integration -- simple, threadsafe and fast!
MIT License
268 stars 90 forks source link

Possible regression with haml files #156

Closed dgilperez closed 8 years ago

dgilperez commented 8 years ago

After updrading to latest version, my haml files stopped working, ie. translations are not found / removed from my app.po files.

rake gettext:find --trace seems to be skipping haml files (I see ** Invoke app/<haml-file> (first_time, not_needed) for each haml file.

When I do rake gettext:pack I see a lot of lines with the message No haml library could be found: haml or hamlit which I believe related to #151.

I'm using:

Anyone with the same problem? How may I debug this?

grosser commented 8 years ago

bundle show gettext_i18n_rails and add some puts around the area where it tries to load haml (lib/gettext_i18n_rails/base_parser.rb:28) ... somehow that fails :(

make sure to use bundle exec rake so the gems are available ...

dgilperez commented 8 years ago

My puts there are not showing anything 😞 . I keep seeing ** Invoke app/<haml-file> (first_time, not_needed) messages, new translations are not found. When I change the .po file directly and run (bundle exec) rake gettext:pack, now I don't see those No haml library could be found errors. Weird.

dgilperez commented 8 years ago

Ok, got it (https://github.com/grosser/gettext_i18n_rails/pull/154/files#diff-2b9d7692c58d6211213d94fc859b9747R26). Preparing a patch.