Hi,

The thing that allways annoys me in translations and validations in
rails is gender. In Polish, Russian and many other languages words
have gender and validation messages should be different for each
gender.

I was talking to Yaroslav (http://github.com/yaroslav) and he said the
he created set of unisex messages. I couldn't find out good way to
make polish messages unisex (you can do it but it seems so
unnatural...). So I've monke patched validations to support somthing
like that: http://pastie.org/303000

Gender of word "lamp" is feminine in polish so :feminine key will be
picked up. The good part of this solution is that error messages look
more natural and I don't have to set custom messages for all of my
attributes.

The obvious drawback is size of translation tables.

I can't see any more drawbacks right now so it would be great if
someone could review that idea.

Implementation looks like that: http://pastie.org/303921 - any
thougths on how to achieve it without monkey patching?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to