aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/gettext.rake
blob: 31893f1b83bc812a32cc2b8b80f41986d73858db (plain)
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