class method
self.normalize_keys
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.normalize_keys(locale, key, scope, separator = nil)
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.
Parameters
-
localereq -
keyreq -
scopereq -
separatoropt = nil
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb, line 250
def normalize_keys(locale, key, scope, separator = nil)
separator ||= I18n.default_separator
keys = []
keys.concat normalize_key(locale, separator)
keys.concat normalize_key(scope, separator)
keys.concat normalize_key(key, separator)
keys
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb line 250
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n