google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

[PATCH] Active Record validation messages not humanized #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Active Record validation messages are humanized sentences by default. For
example:

"Name can't be blank"
"Master price can't be blank"

for name and master_price attributes.

With globalite enabled this messages are:

"name can't be blank"
"master_price can't be blank"

Solution:

It's just to add humanize method to the localized attribute name. 

Here is a patch

Original issue reported on code.google.com by jca...@gmail.com on 4 Jun 2008 at 3:59

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mattAimo...@gmail.com on 4 Jun 2008 at 4:15