Skip to content

Instantly share code, notes, and snippets.

@voodoorai2000
Created November 5, 2009 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voodoorai2000/227354 to your computer and use it in GitHub Desktop.
Save voodoorai2000/227354 to your computer and use it in GitHub Desktop.
#you will need this gem
#http://github.com/balinterdi/i15r
namespace :i18n do
desc "Convert text to i18n keys in all views"
task :text_to_key do
FileList["./app/views/**/*.html.erb"].each do |filename|
system "i15r #{filename}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment