2009-06-14 15:17:53 +00:00
|
|
|
en:
|
|
|
|
activerecord:
|
|
|
|
errors:
|
|
|
|
# The values :model, :attribute and :value are always available for interpolation
|
|
|
|
# The value :count is available when applicable. Can be used for pluralization.
|
|
|
|
messages:
|
|
|
|
inclusion: "is not included in the list"
|
|
|
|
exclusion: "is reserved"
|
|
|
|
invalid: "is invalid"
|
|
|
|
confirmation: "doesn't match confirmation"
|
|
|
|
accepted: "must be accepted"
|
|
|
|
empty: "can't be empty"
|
|
|
|
blank: "can't be blank"
|
2010-10-18 19:58:56 +00:00
|
|
|
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)"
|
2009-06-14 15:17:53 +00:00
|
|
|
taken: "has already been taken"
|
|
|
|
not_a_number: "is not a number"
|
2010-10-18 19:58:56 +00:00
|
|
|
greater_than: "must be greater than %{count}"
|
|
|
|
greater_than_or_equal_to: "must be greater than or equal to %{count}"
|
|
|
|
equal_to: "must be equal to %{count}"
|
|
|
|
less_than: "must be less than %{count}"
|
|
|
|
less_than_or_equal_to: "must be less than or equal to %{count}"
|
2009-06-14 15:17:53 +00:00
|
|
|
odd: "must be odd"
|
|
|
|
even: "must be even"
|
2010-10-18 19:58:56 +00:00
|
|
|
record_invalid: "Validation failed: %{errors}"
|
2009-06-14 15:17:53 +00:00
|
|
|
# Append your own errors here or at the model/attributes scope.
|
|
|
|
|
2009-12-29 00:17:51 +00:00
|
|
|
full_messages:
|
2010-10-18 19:58:56 +00:00
|
|
|
format: "%{attribute} %{message}"
|
2009-12-29 00:17:51 +00:00
|
|
|
|
2009-06-14 15:17:53 +00:00
|
|
|
# You can define own errors for models or model attributes.
|
|
|
|
# The values :model, :attribute and :value are always available for interpolation.
|
|
|
|
#
|
|
|
|
# For example,
|
|
|
|
# models:
|
|
|
|
# user:
|
2010-10-18 19:58:56 +00:00
|
|
|
# blank: "This is a custom blank message for %{model}: %{attribute}"
|
2009-06-14 15:17:53 +00:00
|
|
|
# attributes:
|
|
|
|
# login:
|
|
|
|
# blank: "This is a custom blank message for User login"
|
|
|
|
# Will define custom blank validation message for User model and
|
|
|
|
# custom blank validation message for login attribute of User model.
|
|
|
|
#models:
|
|
|
|
|
|
|
|
# Translate model names. Used in Model.human_name().
|
|
|
|
#models:
|
|
|
|
# For example,
|
|
|
|
# user: "Dude"
|
|
|
|
# will translate User model name to "Dude"
|
|
|
|
|
|
|
|
# Translate model attribute names. Used in Model.human_attribute_name(attribute).
|
|
|
|
#attributes:
|
|
|
|
# For example,
|
|
|
|
# user:
|
|
|
|
# login: "Handle"
|
|
|
|
# will translate User attribute "login" as "Handle"
|
|
|
|
|