Add missing activerecord error messages in english & spanish

This commit is contained in:
Bertocq
2017-11-18 10:52:38 +01:00
parent b2e59272cc
commit 886a3a0e2a
2 changed files with 11 additions and 1 deletions

View File

@@ -281,4 +281,9 @@ en:
attributes:
image:
image_width: "Width must be %{required_width}px"
image_height: "Height must be %{required_height}px"
image_height: "Height must be %{required_height}px"
messages:
record_invalid: "Validation failed: %{errors}"
restrict_dependent_destroy:
has_one: "Cannot delete record because a dependent %{record} exists"
has_many: "Cannot delete record because dependent %{record} exist"

View File

@@ -277,3 +277,8 @@ es:
image:
image_width: "Debe tener %{required_width}px de ancho"
image_height: "Debe tener %{required_height}px de alto"
messages:
record_invalid: "La validación falló: %{errors}"
restrict_dependent_destroy:
has_one: No se puede eliminar el registro porque existe un %{record} dependiente
has_many: No se puede eliminar el registro porque existen %{record} dependientes