vendor/rails/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
# Merges the given locale, key and scope into a single array of keys.
# Splits keys that contain dots into multiple keys. Makes sure all
# keys are Symbols.
Merges the given locale, key and scope into a single array of keys.
Splits keys that contain dots into multiple keys. Makes sure all
keys are Symbols.
Merges the given locale key and scope into a single array of keys . Splits keys that contain dots into multiple keys . Makes sure all 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}
    end
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 } end
Merges the given locale, key and scope into a single array of keys.
Merges the given locale key and scope into a single array of keys .
locale
key
scope