Add Globalize2 so that we get some nice fall backs to other languages when a translation is missing in the requested language.

This commit is contained in:
Shaun McDonald 2009-05-27 15:39:14 +00:00
parent 6ba51da46e
commit 283a3e9ba9
42 changed files with 2670 additions and 0 deletions

10
vendor/plugins/globalize2/init.rb vendored Normal file
View file

@ -0,0 +1,10 @@
require 'rails_edge_load_path_patch.rb' unless I18n.respond_to?(:load_path)
ActiveRecord::Base.send :include, Globalize::Model::ActiveRecord::Translated
I18n.backend = Globalize::Backend::Static.new
I18n.load_path = Globalize::LoadPath.new I18n.load_path
I18n.load_path << "#{File.dirname(__FILE__)}/lib/locale"
I18n.load_path << "#{RAILS_ROOT}/lib/locale"