]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/rails-i18n/script/update.rb
Merged I18N branch to head.
[rails.git] / vendor / plugins / rails-i18n / script / update.rb
1 curr_dir = File.expand_path(File.dirname(__FILE__))
2 rails_locale_dir = File.expand_path(File.join(curr_dir, "..", "rails"))
3
4 puts "Fetching latest Rails locale files to #{rails_locale_dir}"
5
6 exec %(
7   curl -Lo '#{rails_locale_dir}/action_view.yml' http://github.com/rails/rails/tree/master/actionpack/lib/action_view/locale/en.yml?raw=true
8
9   curl -Lo '#{rails_locale_dir}/active_record.yml' http://github.com/rails/rails/tree/master/activerecord/lib/active_record/locale/en.yml?raw=true
10
11   curl -Lo '#{rails_locale_dir}/active_support.yml' http://github.com/rails/rails/tree/master/activesupport/lib/active_support/locale/en.yml?raw=true
12 )