def translation_key
      key = name.gsub(/Motivation\z/, '')
      key.gsub!(/^.*::/, '')
      key.gsub!(/([A-Z\d]+)([A-Z][a-z])/,'\1_\2')
      key.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
      key.tr!("-", "_")
      key.downcase!
    end
def translation_key
      key = name.gsub(/Motivation\z/, '')
      key.gsub!(/^.*::/, '')
      key.gsub!(/([A-Z\d]+)([A-Z][a-z])/,'\1_\2')
      key.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
      key.tr!("-", "_")
      key.downcase!
    end
Returns the underscored name used in the full i18n translation key

 Example:

  UserProjectMotivation.translation_key # => "user_project"