]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/globalize2/init.rb
and the accompanying SWF
[rails.git] / vendor / plugins / globalize2 / init.rb
1 require 'rails_edge_load_path_patch.rb' unless I18n.respond_to?(:load_path)
2
3 ActiveRecord::Base.send :include, Globalize::Model::ActiveRecord::Translated
4
5 I18n.backend = Globalize::Backend::Static.new
6
7 I18n.load_path = Globalize::LoadPath.new I18n.load_path
8 I18n.load_path << "#{File.dirname(__FILE__)}/lib/locale"
9 I18n.load_path << "#{RAILS_ROOT}/lib/locale"
10