On Thu, Oct 23, 2008 at 10:47 PM, Save The Vinyls
<[EMAIL PROTECTED]> wrote:
>
> On Oct 23, 10:31 pm, Diego Carrion <[EMAIL PROTECTED]> wrote:
> > Hi Vinyl Saver (j/k :p)
> >
> > I think it should be *errors* and not *error* in your yml file, here:
> >
> > active_record:
> >     error:
> >
> > cheers
> >
>

Alright, now it works. The old one:

  active_record:
    error:
      header_message: ["1 error prohibited this {{object_name}} from
being saved", "{{count}} errors prohibited this {{object_name}} from
being saved"]
      message: "there were problems with the following fields:"
    error_messages:
      accepted: "must be accepted"
      blank: "can't be blank"
      confirmation: "doesn't match confirmation"
      empty: "can't be empty"
      equal_to: "must be equal to {{count}}"
      even: "must be even"
      exclusion: "is reserved"
      greater_than: "must be greater than {{count}}"
      greater_than_or_equal_to: "must be greater than or equal to {{count}}"
      inclusion: "is not included in the list"
      invalid: "is invalid"
      less_than: "must be less than {{count}}"
      less_than_or_equal_to: "must be less than or equal to {{count}}"
      not_a_number: "is not a number"
      odd: "must be odd"
      taken: "is already taken"
      too_long: "is too long (maximum is {{count}} characters)"
      too_short: "is too short (minimum is {{count}} characters)"
      wrong_length: "is the wrong length (should be {{count}} characters)"

Now is:

activerecord:
    errors:
      templates:
        header:
          one: "1 error prohibited this {{model}} from being saved"
          other: "{{count}} errors prohibited this {{model}} from being saved"
        body: "there were problems with the following fields:"
      messages:
        accepted: "must be accepted"
        blank: "can't be blank"
        confirmation: "doesn't match confirmation"
        empty: "can't be empty"
        equal_to: "must be equal to {{count}}"
        even: "must be even"
        exclusion: "is reserved"
        greater_than: "must be greater than {{count}}"
        greater_than_or_equal_to: "must be greater than or equal to {{count}}"
        inclusion: "is not included in the list"
        invalid: "is invalid"
        less_than: "must be less than {{count}}"
        less_than_or_equal_to: "must be less than or equal to {{count}}"
        not_a_number: "is not a number"
        odd: "must be odd"
        taken: "is already taken"
        too_long: "is too long (maximum is {{count}} characters)"
        too_short: "is too short (minimum is {{count}} characters)"
        wrong_length: "is the wrong length (should be {{count}} characters)"

Might require some more polishing though.

Cheers!

--
http://www.home.no/reddvinylene

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to rails-i18n@googlegroups.com
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