grosser/gettext_i18n_rails — pull request #103 by kou (2013-09-16 09:46:06+00:00)
Title: Use GetText::Tools::Task introduced since gettext 3.0.0

This commit is for #101.

This commit requires gettext 3.0.1 (it is not released yet) or
later. Older gettext doesn't support. (Is it OK?)

This commit also disables lazy gettext gem require. Because we don't
use GetText::Tools::Task after requiring gettext gem. (Is it OK?)

We can add shim code to support both gettext 3.0.1 or later and old
versions. We try to require `gettext/tools/task`. If we succeed it, we
assume that we have gettext 3.0.1 or later. We use this commit's
code. If we fail it, we assume that we have old gettext. We use the
previous code.

@grosser, what do you think about this approach?
If you are OK for this approach. I will release gettext 3.0.1.
If you are not OK, I can retry a pull request that reflects your suggestion. :-)