Add rails error translation strings

This commit is contained in:
Arpit Jalan 2015-02-06 20:16:24 +05:30
parent d8f8e03128
commit 8bbd36f40e
1 changed files with 45 additions and 1 deletions

View File

@ -57,14 +57,58 @@ en:
purge_reason: "Automatically deleted as abandoned, unactivated account" purge_reason: "Automatically deleted as abandoned, unactivated account"
disable_remote_images_download_reason: "Remote images download was disabled because there wasn't enough disk space available." disable_remote_images_download_reason: "Remote images download was disabled because there wasn't enough disk space available."
errors: errors: &errors
format: ! '%{attribute} %{message}'
messages: messages:
too_long_validation: "is limited to %{max} characters; you entered %{length}." too_long_validation: "is limited to %{max} characters; you entered %{length}."
invalid_boolean: "Invalid boolean." invalid_boolean: "Invalid boolean."
taken: "has already been taken. (group names are case insensitive)" taken: "has already been taken. (group names are case insensitive)"
accepted: must be accepted
blank: can't be blank
present: must be blank
confirmation: ! "doesn't match %{attribute}"
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
not_an_integer: must be an integer
odd: must be odd
record_invalid: ! 'Validation failed: %{errors}'
restrict_dependent_destroy:
one: "Cannot delete record because a dependent %{record} exists"
many: "Cannot delete record because dependent %{record} exist"
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)
other_than: "must be other than %{count}"
template:
body: ! 'There were problems with the following fields:'
header:
one: 1 error prohibited this %{model} from being saved
other: ! '%{count} errors prohibited this %{model} from being saved'
embed: embed:
load_from_remote: "There was an error loading that post." load_from_remote: "There was an error loading that post."
activemodel:
errors:
<<: *errors
activerecord:
errors:
<<: *errors
bulk_invite: bulk_invite:
file_should_be_csv: "The uploaded file should be of csv or txt format." file_should_be_csv: "The uploaded file should be of csv or txt format."