diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-12 14:36:09 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-12 14:44:20 +0100 |
commit | 5d5b362c177a575aba7afffe64c22d854c70feb0 (patch) | |
tree | de3effa25e3662eeac2d75338625b8a466772ee1 /lib/tasks | |
parent | 905655c7a37b6159b1468ef455ae2a179b6f9069 (diff) |
Remove unused task.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gettext.rake | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index ace7205ae..31893f1b8 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -9,27 +9,5 @@ namespace :gettext do end end - desc "Update pot file only, without fuzzy guesses (these are done by Transifex)" - task :findpot => :environment do - load_gettext - $LOAD_PATH << File.join(File.dirname(__FILE__),'..','..','lib') - require 'gettext_i18n_rails/haml_parser' - files = files_to_translate - - #write found messages to tmp.pot - temp_pot = "tmp.pot" - GetText::rgettext(files, temp_pot) - #merge tmp.pot and existing pot - FileUtils.mkdir_p('locale') - 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 - - def files_to_translate - Dir.glob("{app,lib,config,locale}/**/*.{rb,erb,haml,rhtml}") - end end |