<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>activerecord/test/cases/i18n_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1249,6 +1249,19 @@ module ActiveRecord #:nodoc:
         options[:count] ||= 1
         I18n.translate(defaults.shift, options.merge(:default =&gt; defaults, :scope =&gt; [:activerecord, :attributes]))
       end
+
+      # Transform the modelname into a more humane format, using I18n.
+      # Defaults to the basic humanize method.
+      # Default scope of the translation is activerecord.models
+      # Specify +options+ with additional translating options.
+      def human_name(options = {})
+        defaults = self_and_descendents_from_active_record.map do |klass|
+          :&quot;#{klass.name.underscore}&quot;
+        end 
+        defaults &lt;&lt; self.name.humanize
+        I18n.translate(defaults.shift, {:scope =&gt; [:activerecord, :models], :count =&gt; 1, :default =&gt; defaults}.merge(options))
+      end
+
       # True if this isn't a concrete subclass needing a STI type condition.
       def descends_from_active_record?
         if superclass.abstract_class?</diff>
      <filename>activerecord/lib/active_record/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c379582064b4f345ecb6bab999e2f1c5685313a8</id>
    </parent>
  </parents>
  <author>
    <name>Iain Hecker</name>
    <email>github@iain.nl</email>
  </author>
  <url>http://github.com/rails/rails/commit/ae8a35d8f6d5db6ae9a1877918d45c15d21e24fe</url>
  <id>ae8a35d8f6d5db6ae9a1877918d45c15d21e24fe</id>
  <committed-date>2008-08-20T08:39:43-07:00</committed-date>
  <authored-date>2008-08-16T11:01:42-07:00</authored-date>
  <message>Added Base.human_name method</message>
  <tree>9fc6857d9245e8d44cb95626f1c1899aacc4edef</tree>
  <committer>
    <name>Sven Fuchs</name>
    <email>svenfuchs@artweb-design.de</email>
  </committer>
</commit>
