# File lib/action_view/helpers/translation_helper.rb, line 6 def translate(key, options = {}) options[:raise] = true I18n.translate(key, options) rescue I18n::MissingTranslationData => e keys = I18n.send(:normalize_translation_keys, e.locale, e.key, e.options[:scope]) content_tag('span', keys.join(', '), :class => 'translation_missing') end