What wrong?
cat lib/tasks/gettext.rake
require 'gettext/utils'
# Tell ruby-gettext's ErbParser to parse .erb files as well # See also http://zargony.com/2007/07/29/using-ruby-gettext-with-edge-rails/ GetText::ErbParser.init(:extnames => ['.rhtml', '.erb'])
desc 'Update pot/po files' task :updatepo do GetText.update_pofiles('dic', Dir.glob("{app,lib}/**/*.{rb,rhtml,erb,rjs}"), 'dic') end
desc 'Create mo-files' task :makemo do GetText.create_mofiles(true, 'po', 'locale') end