Permalink
Browse files

A few more style changes

  • Loading branch information...
1 parent d5b0ba6 commit 1b0afb31dfc71674b054459c2e0418ca3a709467 @dhh dhh committed Oct 28, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
@@ -150,10 +150,10 @@ def load_path=(load_path)
# 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 @@ def default_exception_handler(exception, locale, key, options)
# 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

0 comments on commit 1b0afb3

Please sign in to comment.