instance method
translate
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
translate(locale, key, options = {})
No documentation comment.
Parameters
-
localereq -
keyreq -
optionsopt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/missing.rb, line 56
def translate(locale, key, options = {})
super
rescue I18n::MissingTranslationData => e
self.store_default_translations(locale, key, options)
raise e
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/missing.rb line 56
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::ActiveRecord::Missing