aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-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)"