diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-14 13:06:28 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-14 13:06:28 +0100 |
commit | 7bcaaf2b8e3e81ff963b5cd1b1586d727e92f51e (patch) | |
tree | 1ec3ddc739adf2f22e522c3e0ae7d2fc4ada9c22 | |
parent | 9046e51f3bc6e158f699421369890a8215808c04 (diff) |
Upgrade to latest gettext_i18n_rails. As we are now using a gem, we also need to explicitly include the rake tasts from that gem.
-rw-r--r-- | Gemfile.lock | 6 | ||||
-rw-r--r-- | lib/tasks/gettext.rake | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index e271f8572..70e6992ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ GIT remote: git@github.com:sebbacon/gettext_i18n_rails.git - revision: 7b62102bf355a564eeca2e0dcd05f73f073935b0 + revision: 2616d7e76872942d6e2351974a7e3fa4c2f933e2 specs: - gettext_i18n_rails (0.6.1) + gettext_i18n_rails (0.6.2) fast_gettext GEM @@ -21,7 +21,7 @@ GEM annotate (2.4.0) columnize (0.3.6) fakeweb (1.3.0) - fast_gettext (0.6.1) + fast_gettext (0.6.7) gettext (2.1.0) locale (>= 2.0.5) json (1.5.4) diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index 56e9f6df6..787b4029f 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -1,3 +1,7 @@ +# Rails won't automatically load rakefiles from gems - see +# http://stackoverflow.com/questions/1878640/including-rake-tasks-in-gems +Dir["#{Gem.searcher.find('gettext_i18n_rails').full_gem_path}/lib/tasks/**/*.rake"].each { |ext| load ext } + namespace :gettext do desc "Update pot file only, without fuzzy guesses (these are done by Transifex)" |