From 50ff148670666eea68e2da78b29e2415608319dd Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Wed, 8 Feb 2012 15:51:40 +0000 Subject: Update all the PO files as well as the POT when running our gettext commands. Also, don't word-wrap. Includes non-word-wrapped source files. --- lib/tasks/gettext.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/tasks/gettext.rake') diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index 8ffd5ce1b..56e9f6df6 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -13,7 +13,10 @@ namespace :gettext do #merge tmp.pot and existing pot FileUtils.mkdir_p('locale') - GetText::msgmerge("locale/app.pot", temp_pot, "version 0.0.1", :po_root => 'locale', :msgmerge=>[ :no_fuzzy_matching, :sort_output ]) + GetText::msgmerge("locale/app.pot", temp_pot, "alaveteli", :po_root => 'locale', :msgmerge=>[ :no_wrap, :sort_output ]) + Dir.glob("locale/*/app.po") do |po_file| + GetText::msgmerge(po_file, temp_pot, "alaveteli", :po_root => 'locale', :msgmerge=>[ :no_wrap, :sort_output ]) + end File.delete(temp_pot) end -- cgit v1.2.3