# File lib/action_view/helpers/translation_helper.rb, line 13
      def translate(keys, options = {})
        if multiple_keys = keys.is_a?(Array)
          ActiveSupport::Deprecation.warn "Giving an array to translate is deprecated, please give a symbol or a string instead", caller
        end

        options[:raise] = true
        keys = scope_keys_by_partial(keys)

        translations = I18n.translate(keys, options)
        translations = [translations] if !multiple_keys && translations.size > 1
        translations = html_safe_translation_keys(keys, translations)

        if multiple_keys || translations.size > 1
          translations
        else
          translations.first
        end
      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