lib/active_support/vendor.rb in activesupport-2.3.5 vs lib/active_support/vendor.rb in activesupport-2.3.6.pre
- old
+ new
@@ -19,10 +19,18 @@
rescue Gem::LoadError
$:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.12"
end
begin
- gem 'i18n', '>= 0.1.3'
+ gem 'i18n', '>= 0.3.3'
rescue Gem::LoadError
- $:.unshift "#{File.dirname(__FILE__)}/vendor/i18n-0.1.3/lib"
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/i18n-0.3.3/lib"
end
require 'i18n'
+
+module I18n
+ if !respond_to?(:normalize_translation_keys) && respond_to?(:normalize_keys)
+ def self.normalize_translation_keys(*args)
+ normalize_keys(*args)
+ end
+ end
+end