en.yml 1.4 KB
Newer Older
1
en:
2
  errors:
R
Rizwan Reza 已提交
3
    # The default format to use in full error messages.
4
    format: "%{attribute} %{message}"
5

6 7 8 9 10 11
    # 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"
12
      confirmation: "doesn't match %{attribute}"
13 14 15
      accepted: "must be accepted"
      empty: "can't be empty"
      blank: "can't be blank"
16
      present: "must be blank"
17 18 19 20 21 22 23 24 25
      too_long:
        one: "is too long (maximum is 1 character)"
        other: "is too long (maximum is %{count} characters)" 
      too_short:
        one: "is too short (minimum is 1 character)"
        other: "is too short (minimum is %{count} characters)"
      wrong_length:
        one: "is the wrong length (should be 1 character)"
        other: "is the wrong length (should be %{count} characters)"
26
      not_a_number: "is not a number"
27
      not_an_integer: "must be an integer"
28 29 30 31 32
      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}"
33
      other_than: "must be other than %{count}"
34 35
      odd: "must be odd"
      even: "must be even"