#597 invalid

Inflection#humanize should call .t

Reported by contagion | October 16th, 2008 @ 05:04 AM

I come across the translation feature in extlib and think it's so brilliant.

I try to use is to localize the dm-validation error messages. All works great but the model's property names are not translate, because usually the message call humanize on the property's name, and humanize doesn't do the translation.

Since this method is intent to convert thing to string that more readable to end user, shouldn't it just call .t to return the localized string?

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) December 2nd, 2008 @ 04:34 AM

    • Assigned user cleared.
    • State changed from “new” to “invalid”

    I'm going to mark this as invalid for now because it brings up a whole host of issues regarding i18n, and if it's going to be optional or required in Extlib/Merb/DM or not. The .t method was sort of added a long time ago without any real discussion on how far we want to support translations in the affected packages.

    Would you mind posting a thread on the mailing list about this so we can begin discussing how i18n affects DM and Extlib?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket