aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/gettext.rake
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-14 13:06:28 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-14 13:06:28 +0100
commit7bcaaf2b8e3e81ff963b5cd1b1586d727e92f51e (patch)
tree1ec3ddc739adf2f22e522c3e0ae7d2fc4ada9c22 /lib/tasks/gettext.rake
parent9046e51f3bc6e158f699421369890a8215808c04 (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.
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)"