Hi!
===
Preface: While I playing around I18n's model translation I found that
there is no way to define common attribute name translations if two or
more model has same one. I have to define attribute translation per
models.
===
Example:
Lets assume that I have two model: category and product and both have
name attribute, and both attribute translation is same for my
application.
Now I have to do so:
===============
activerecord:
attributes:
category:
name: "Blah"
product:
name: "Blah"
I wonder something like that could be possible:
==========
activerecord:
attributes:
name: "Blah" <==common for all models!
user:
name: "I dont like blah" <== I can override for a model
Then:
Product.human_attribute_name("name") => "Blah"
Category.human_attribute_name("name") => "Blah"
...but...
User.human_attribute_name("name") => "I dont like blah"
====
ps.: Anyway, I18n is a great effort, very fun and elegant way to use
translations in Rails!:)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---