aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/gettext.rake
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-06-23 09:33:42 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-23 09:33:42 +0100
commitdb1a388f0a7b37cc0ceb3ca07b995b34dabdba58 (patch)
treee34df5ae0dacdbf6c3b77542b22f2d9e3799d322 /lib/tasks/gettext.rake
parenta7cc84b9b2b430644fe23e6328d7ab289e7abf0a (diff)
parent7d0fea4b38c214a67b2fc4b56aa670e02a3cda61 (diff)
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
Diffstat (limited to 'lib/tasks/gettext.rake')
-rw-r--r--lib/tasks/gettext.rake4
1 files changed, 4 insertions, 0 deletions
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)"