diff options
| author | hukl <hukl@eight.local> | 2009-02-07 15:50:40 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-07 15:50:40 +0100 |
| commit | 36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (patch) | |
| tree | 5ded15331b192bf428af4c94d46d1abb28ef0690 /vendor/plugins/globalize2/init.rb | |
| parent | ce9645d0092d42c7bf8781378181ffbd4ff3d088 (diff) | |
added globalize2 plugin as well as some modifications
which use the new translation facilities.
backend mostly.
Diffstat (limited to 'vendor/plugins/globalize2/init.rb')
| -rw-r--r-- | vendor/plugins/globalize2/init.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/plugins/globalize2/init.rb b/vendor/plugins/globalize2/init.rb new file mode 100644 index 0000000..7b5428e --- /dev/null +++ b/vendor/plugins/globalize2/init.rb | |||
| @@ -0,0 +1,10 @@ | |||
| 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 | |||
