class method
self.new
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.new(locale, key, options)
No documentation comment.
Parameters
-
localereq -
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb, line 14
def initialize(locale, key, options)
@key, @locale, @options = key, locale, options
keys = I18n.send(:normalize_translation_keys, locale, key, options[:scope])
keys << 'no key' if keys.size < 2
super "translation missing: #{keys.join(', ')}"
end
Defined in activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::MissingTranslationData