Commit 4c515160f8a0835365f437fddbf707148f006f36
1 parent
b8dc46aa
Exists in
master
and in
15 other branches
Restore `makemo` task, reusing gettext:mo:update
Extracted from the existing noosfero:translations:compile
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
lib/tasks/gettext.rake
... | ... | @@ -99,4 +99,11 @@ languages.each do |lang| |
99 | 99 | end |
100 | 100 | end |
101 | 101 | |
102 | +task :makemo => 'tmp/makemo.stamp' | |
103 | +file 'tmp/makemo.stamp' do |t| | |
104 | + sh 'find po plugins/*/po -name "*.po" -exec touch "{}" ";"' | |
105 | + Rake::Task['gettext:mo:update'].invoke | |
106 | + touch t.name | |
107 | +end | |
108 | + | |
102 | 109 | # vim: ft=ruby | ... | ... |
lib/tasks/translation.rake
... | ... | @@ -6,8 +6,7 @@ namespace :noosfero do |
6 | 6 | |
7 | 7 | desc 'Compiles all translations' |
8 | 8 | task :compile do |
9 | - sh 'find po plugins/*/po -name "*.po" -exec touch "{}" ";"' | |
10 | - Rake::Task['gettext:mo:update'].invoke | |
9 | + Rake::Task['makemo'].invoke | |
11 | 10 | Rake::Task['noosfero:doc:translate'].invoke |
12 | 11 | end |
13 | 12 | end | ... | ... |