added all I18n error messages in README example

This commit is contained in:
Adam Meehan 2009-12-11 11:08:52 +11:00
parent a6712de5ff
commit 0c38b6abd1

View File

@ -332,8 +332,14 @@ Rails 2.2+ using the I18n system to define new defaults:
activerecord:
errors:
messages:
on_or_before: "must be equal to or before {{restriction}}"
on_or_after: "must be equal to or after {{restriction}}"
invalid_date: "is not a valid date"
invalid_time: "is not a valid time"
invalid_datetime: "is not a valid datetime"
equal_to: "must be equal to {{restriction}}"
before: "must be before {{restriction}}"
on_or_before: "must be on or before {{restriction}}"
after: "must be after {{restriction}}"
on_or_after: "must be on or after {{restriction}}"
between: "must be between {{earliest}} and {{latest}}"
The {{restriction}} signifies where the interpolation value for the restriction