From 4c515160f8a0835365f437fddbf707148f006f36 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 19 Jan 2016 16:19:29 -0200 Subject: [PATCH] Restore `makemo` task, reusing gettext:mo:update --- lib/tasks/gettext.rake | 7 +++++++ lib/tasks/translation.rake | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index c4ee772..c9965fa 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -99,4 +99,11 @@ languages.each do |lang| end end +task :makemo => 'tmp/makemo.stamp' +file 'tmp/makemo.stamp' do |t| + sh 'find po plugins/*/po -name "*.po" -exec touch "{}" ";"' + Rake::Task['gettext:mo:update'].invoke + touch t.name +end + # vim: ft=ruby diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake index 65a905a..d46d293 100644 --- a/lib/tasks/translation.rake +++ b/lib/tasks/translation.rake @@ -6,8 +6,7 @@ namespace :noosfero do desc 'Compiles all translations' task :compile do - sh 'find po plugins/*/po -name "*.po" -exec touch "{}" ";"' - Rake::Task['gettext:mo:update'].invoke + Rake::Task['makemo'].invoke Rake::Task['noosfero:doc:translate'].invoke end end -- libgit2 0.21.2