Jean-Baptiste Barth, 2010-09-02 12:48
#!/usr/bin/env ruby
Dir.glob("config/locales/*.yml") do |locale|
puts "Fixing #{locale}"
content = File.read(locale)
File.open(locale, 'w') do |f|
f.write content.gsub(/\{\{(.*?)}}/,'%{\1}')
end