From 747b747e2dcc0517e7b385094fd1eea4d6295e7b Mon Sep 17 00:00:00 2001 From: Paulo Vilarinho Date: Thu, 17 Dec 2020 18:04:55 -0300 Subject: [PATCH] adds translation key to the included in price validation --- app/models/spree/tax_rate.rb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/spree/tax_rate.rb b/app/models/spree/tax_rate.rb index 0e25c59b63..84a0a7b0dd 100644 --- a/app/models/spree/tax_rate.rb +++ b/app/models/spree/tax_rate.rb @@ -7,7 +7,7 @@ module Spree return if Zone.default_tax - record.errors.add(:included_in_price, Spree.t(:included_price_validation)) + record.errors.add(:included_in_price, Spree.t("errors.messages.included_price_validation")) end end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 495a94ea50..c8aac8726f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3221,6 +3221,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using payment_state: "Payment State" errors: messages: + included_price_validation: "cannot be selected unless you have set a Default Tax Zone" blank: "can't be blank" layouts: admin: