From 886a3a0e2a89114230f3758a44454202d1e953b6 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Sat, 18 Nov 2017 10:52:38 +0100 Subject: [PATCH] Add missing activerecord error messages in english & spanish --- config/locales/en/activerecord.yml | 7 ++++++- config/locales/es/activerecord.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/locales/en/activerecord.yml b/config/locales/en/activerecord.yml index bceaf5106..0e0c20dfd 100644 --- a/config/locales/en/activerecord.yml +++ b/config/locales/en/activerecord.yml @@ -281,4 +281,9 @@ en: attributes: image: image_width: "Width must be %{required_width}px" - image_height: "Height must be %{required_height}px" \ No newline at end of file + 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" \ No newline at end of file diff --git a/config/locales/es/activerecord.yml b/config/locales/es/activerecord.yml index d0d3294cd..b52f0bdb8 100644 --- a/config/locales/es/activerecord.yml +++ b/config/locales/es/activerecord.yml @@ -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 \ No newline at end of file