From 36a2f1f3c085dd81171cf7d8220770d4ff921ab3 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 7 Feb 2009 15:50:40 +0100 Subject: added globalize2 plugin as well as some modifications which use the new translation facilities. backend mostly. --- vendor/plugins/globalize2/init.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vendor/plugins/globalize2/init.rb (limited to 'vendor/plugins/globalize2/init.rb') diff --git a/vendor/plugins/globalize2/init.rb b/vendor/plugins/globalize2/init.rb new file mode 100644 index 00000000..7b5428ec --- /dev/null +++ b/vendor/plugins/globalize2/init.rb @@ -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" + -- cgit v1.3