From 1b0afb31dfc71674b054459c2e0418ca3a709467 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Oct 2008 19:38:26 +0100 Subject: A few more style changes --- activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb') diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb index 344c77aecf..9b0b69f58b 100755 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb @@ -150,10 +150,10 @@ module I18n # I18n.t [:foo, :bar], :scope => :baz def translate(key, options = {}) locale = options.delete(:locale) || I18n.locale - backend.translate locale, key, options + backend.translate(locale, key, options) rescue I18n::ArgumentError => e raise e if options[:raise] - send @@exception_handler, e, locale, key, options + send(@@exception_handler, e, locale, key, options) end alias :t :translate @@ -180,8 +180,8 @@ module I18n # keys are Symbols. def normalize_translation_keys(locale, key, scope) keys = [locale] + Array(scope) + [key] - keys = keys.map{|k| k.to_s.split(/\./) } - keys.flatten.map{|k| k.to_sym} + keys = keys.map { |k| k.to_s.split(/\./) } + keys.flatten.map { |k| k.to_sym } end end end \ No newline at end of file -- cgit v1.2.3