diff --git a/app/models/poll.rb b/app/models/poll.rb index 4c2fcecb8..72901d9d4 100644 --- a/app/models/poll.rb +++ b/app/models/poll.rb @@ -43,7 +43,7 @@ class Poll < ActiveRecord::Base def date_range unless starts_at.present? && ends_at.present? && starts_at <= ends_at - errors.add(:starts_at, I18n.t('activerecord.errors.invalid_date_range')) + errors.add(:starts_at, I18n.t('errors.messages.invalid_date_range')) end end diff --git a/config/locales/activerecord.en.yml b/config/locales/activerecord.en.yml index 11e8442e2..b0f06f7df 100644 --- a/config/locales/activerecord.en.yml +++ b/config/locales/activerecord.en.yml @@ -82,7 +82,6 @@ en: description: "Description" external_url: "Link to additional documentation" errors: - invalid_date_range: "Invalid date range" models: user: attributes: diff --git a/config/locales/activerecord.es.yml b/config/locales/activerecord.es.yml index 8b3407d53..2349e9272 100644 --- a/config/locales/activerecord.es.yml +++ b/config/locales/activerecord.es.yml @@ -82,7 +82,6 @@ es: description: "Descripción" external_url: "Enlace a documentación adicional" errors: - invalid_date_range: "El rango de fechas no es válido" models: user: attributes: diff --git a/config/locales/en.yml b/config/locales/en.yml index f90dac037..4f632166f 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -139,6 +139,7 @@ en: errors: messages: user_not_found: User not found + invalid_date_range: "Invalid date range" form: accept_terms: I agree to the %{policy} and the %{conditions} accept_terms_title: I agree to the Privacy Policy and the Terms and conditions of use diff --git a/config/locales/es.yml b/config/locales/es.yml index fa90809ff..8440d2390 100755 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -139,6 +139,7 @@ es: errors: messages: user_not_found: No se encontró el usuario + invalid_date_range: "El rango de fechas no es válido" form: accept_terms: Acepto la %{policy} y las %{conditions} accept_terms_title: Acepto la Política de privacidad y las Condiciones de uso