Created
November 5, 2009 20:37
-
-
Save voodoorai2000/227354 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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