Hi list,

I've just tried using i18n for human attribute naming. I use
namespaced models. This works fine in YAML using "my_namespace/
my_model', but I'd like to propose changing:

# File vendor/rails/activerecord/lib/active_record/base.rb
1312:           "#{klass.name.underscore}.#{attribute_key_name}""#
{klass.name.underscore}.#{attribute_key_name}"

to

1312:           "#{klass.name.underscore.gsub('/', '.')}.#
{attribute_key_name}""#{klass.name.underscore.gsub('/', '.')}.#
{attribute_key_name}"

This would allow the following in my YAML:

en-US:
  activerecord:
    attributes:
      my_namespace:
        my_model:
          ...

This, I feel is a lot cleaner. Does anyone have any thoughts on this?

--~--~---------~--~----~------------~-------~--~----~
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