#!/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
end
