diff options
author | Abd ar-Rahman Hamidi <bakhtiyor.h@gmail.com> | 2013-04-04 08:31:48 +0500 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2014-05-02 18:32:11 +0200 |
commit | 6604ce63e837efb4c4ddf9f42392e9b0440e3c7e (patch) | |
tree | 8dcf2776a85850cee3eea1fc9bb282970504e123 /activemodel/lib | |
parent | d4a2f7e8cc7a3af81a5ddf81ce35eec82665dc7c (diff) | |
download | rails-6604ce63e837efb4c4ddf9f42392e9b0440e3c7e.tar.gz rails-6604ce63e837efb4c4ddf9f42392e9b0440e3c7e.tar.bz2 rails-6604ce63e837efb4c4ddf9f42392e9b0440e3c7e.zip |
Add singular and plural form for some validation messages
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/locale/en.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/locale/en.yml b/activemodel/lib/active_model/locale/en.yml index 540e8132d3..bf07945fe1 100644 --- a/activemodel/lib/active_model/locale/en.yml +++ b/activemodel/lib/active_model/locale/en.yml @@ -14,9 +14,15 @@ en: empty: "can't be empty" blank: "can't be blank" present: "must be blank" - 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)" + 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)" not_a_number: "is not a number" not_an_integer: "must be an integer" greater_than: "must be greater than %{count}" |