Hi Sven,
sorry for the late reply. Yes, I'm talking about validation messages.
It should be
Konnte diese Akte nicht speichern: 2 Fehler
but instead it is
Konnte diese file item nicht speichern: 2 Fehler
Note that "file item" has no underscore in the message! But in the YML
and in the file name itself - file_item.rb - it does have an
underscore of course.
I looked into this a bit and it seems that activerecord/base.rb
human_name is never called. I edited it to always return "Bla", but
that didn't change anything. Changing human_attribute_name to always
return "Bla", did work, however.
I was under the impression that human_name is called here:
http://github.com/rails/rails/tree/master/activerecord/lib/active_record/validations.rb#L104
But when I change
:model => @base.class.human_name,
to
:model => "Bla",
it dosen't make a difference, either. weird!
- Johannes