aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/gettext.rake
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-20 10:59:54 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-20 10:59:54 +0100
commit7d0fea4b38c214a67b2fc4b56aa670e02a3cda61 (patch)
tree85e77cf7ba0656efbacf1497baff2ef96887bd3b /lib/tasks/gettext.rake
parent6ef57090e436e01bc5de801bc7acb6bfadb5c490 (diff)
parent6c4c822ef7a4491bf821326af779e5be9118c0a1 (diff)
Merge branch 'master' into develop
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)"