aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-02-08 15:51:40 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-02-08 15:51:40 +0000
commit50ff148670666eea68e2da78b29e2415608319dd (patch)
treeb65d8aee43ffaebce2fc2533ed4e723a23acba82 /lib/tasks
parent93d7b6376b405869018bab7580d88c29339e8981 (diff)
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.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gettext.rake5
1 files changed, 4 insertions, 1 deletions
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