mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Merge pull request #3177 from techAPJ/patch-1
Add rails error translation strings
This commit is contained in:
commit
3a25516557
1 changed files with 45 additions and 1 deletions
|
@ -57,14 +57,58 @@ en:
|
|||
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."
|
||||
|
||||
errors:
|
||||
errors: &errors
|
||||
format: ! '%{attribute} %{message}'
|
||||
messages:
|
||||
too_long_validation: "is limited to %{max} characters; you entered %{length}."
|
||||
invalid_boolean: "Invalid boolean."
|
||||
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:
|
||||
load_from_remote: "There was an error loading that post."
|
||||
|
||||
activemodel:
|
||||
errors:
|
||||
<<: *errors
|
||||
activerecord:
|
||||
errors:
|
||||
<<: *errors
|
||||
|
||||
bulk_invite:
|
||||
file_should_be_csv: "The uploaded file should be of csv or txt format."
|
||||
|
||||
|
|
Loading…
Reference in a new issue