Methods

Class/Module Index [+]

Quicksearch

I18n::MissingTranslationData

Attributes

key[R]
locale[R]
options[R]

Public Class Methods

new(locale, key, opts = nil) click to toggle source
# File lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb, line 21
def initialize(locale, key, opts = nil)
  @key, @locale, @options = key, locale, opts || {}
  keys = I18n.normalize_keys(locale, key, options[:scope])
  keys << 'no key' if keys.size < 2
  super "translation missing: #{keys.join(', ')}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.