Skip to content

Instantly share code, notes, and snippets.

@mclosson
Created February 24, 2011 05:34
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 mclosson/841814 to your computer and use it in GitHub Desktop.
Save mclosson/841814 to your computer and use it in GitHub Desktop.
Dir.chdir('public')
Dir.glob("**/**").select {|file| File.file?(file)}.each do |file|
File.open(file, 'r').each_with_index do |line, index|
puts "#{file} #{index}: #{line}" if line.include?('I18n.t(')
end
end
@etagwerker
Copy link

I ended up doing this: https://gist.github.com/843719

I didn't know if Dir.chdir would cause problems, so I decided not to use it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment