1 2 3 4 5 6 7 8 9 10 11 12 13
namespace :gettext do desc 'Rewrite .po files into a consistent msgmerge format' task :clean do load_gettext Dir.glob("locale/*/app.po") do |po_file| GetText::msgmerge(po_file, po_file, 'alaveteli', :msgmerge => [:sort_output, :no_location, :no_wrap]) end end end