improves generic error message
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<% if local_assigns[:message].present? %>
|
||||
<%= message %>
|
||||
<% else %>
|
||||
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.underscore}")) %>
|
||||
<%= t("form.not_saved_html", resource: t("form.#{resource.class.to_s.underscore}")) %>
|
||||
<% end %>
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
@@ -65,6 +65,6 @@ en:
|
||||
not_found: "not found."
|
||||
not_locked: "was not locked."
|
||||
not_saved:
|
||||
one: "1 error prevented this %{resource} from being saved:"
|
||||
other: "%{count} errors prevented this %{resource} from being saved:"
|
||||
one: "1 error prevented this %{resource} from being saved. Please check the marked fields to know how to correct them:"
|
||||
other: "%{count} errors prevented this %{resource} from being saved. Please check the marked fields to know how to correct them:"
|
||||
equal_to_current_password: "must be different than the current password."
|
||||
@@ -171,7 +171,7 @@ en:
|
||||
direct_message: private message
|
||||
error: error
|
||||
errors: errors
|
||||
not_saved: 'prevented this %{resource} from being saved:'
|
||||
not_saved_html: "prevented this %{resource} from being saved. <br>Please check the marked fields to know how to correct them:"
|
||||
policy: Privacy Policy
|
||||
proposal: Proposal
|
||||
proposal_notification: "Notification"
|
||||
|
||||
@@ -60,6 +60,6 @@ es:
|
||||
not_found: "no se ha encontrado."
|
||||
not_locked: "no estaba bloqueado."
|
||||
not_saved:
|
||||
one: "1 error impidió que este %{resource} fuera guardado:"
|
||||
other: "%{count} errores impidieron que este %{resource} fuera guardado:"
|
||||
one: "1 error impidió que este %{resource} fuera guardado. Por favor revisa los campos marcados para saber cómo corregirlos:"
|
||||
other: "%{count} errores impidieron que este %{resource} fuera guardado. Por favor revisa los campos marcados para saber cómo corregirlos:"
|
||||
equal_to_current_password: "debe ser diferente a la contraseña actual"
|
||||
|
||||
@@ -171,7 +171,7 @@ es:
|
||||
direct_message: el mensaje privado
|
||||
error: error
|
||||
errors: errores
|
||||
not_saved: 'impidieron guardar %{resource}:'
|
||||
not_saved_html: "impidieron guardar %{resource}. <br>Por favor revisa los campos marcados para saber cómo corregirlos:"
|
||||
policy: Política de privacidad
|
||||
proposal: la propuesta
|
||||
proposal_notification: "la notificación"
|
||||
|
||||
@@ -133,7 +133,7 @@ module CommonActions
|
||||
|
||||
def error_message(resource_model = nil)
|
||||
resource_model ||= "(.*)"
|
||||
/\d errors? prevented this #{resource_model} from being saved:/
|
||||
/\d errors? prevented this #{resource_model} from being saved. Please check the marked fields to know how to correct them:/
|
||||
end
|
||||
|
||||
def expect_to_be_signed_in
|
||||
|
||||
Reference in New Issue
Block a user