diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index c9965fa..c753a39 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -106,4 +106,10 @@ file 'tmp/makemo.stamp' do |t| touch t.name end +task :updatepo => 'gettext:po:update' do + Dir.glob('**/*.po').each do |po| + sh "cp #{po} #{po}.tmp && msguniq -o #{po} #{po}.tmp && rm -f #{po}.tmp" + end +end + # vim: ft=ruby -- libgit2 0.21.2