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:
parent
6ba51da46e
commit
283a3e9ba9
42 changed files with 2670 additions and 0 deletions
10
vendor/plugins/globalize2/init.rb
vendored
Normal file
10
vendor/plugins/globalize2/init.rb
vendored
Normal 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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue