Project

General

Profile

Defect #5608 ยป locales_update.rb

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
end
    (1-1/1)