class method self.new

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(locale, key, opts = nil)

No documentation comment.

Parameters

locale req
key req
opts opt = nil
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb, line 22
    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

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb line 22 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::MissingTranslationData

Type at least 2 characters to search.

↑↓ navigate · open · esc close