Merge pull request #5484 from rmklaus12/5336-errormsg-translation

Added translation keys to error messages partial and en.yml file to a…
This commit is contained in:
Luis Ramos
2020-06-10 23:00:07 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -1,10 +1,9 @@
- if target && target.errors.any?
#errorExplanation.errorExplanation
%h2
= Spree.t(:errors_prohibited_this_record_from_being_saved, count: target.errors.count)
\:
= t(".errors_prohibited_this_record_from_being_saved", count: target.errors.count)
%p
= Spree.t(:there_were_problems_with_the_following_fields)
= t(".there_were_problems_with_the_following_fields")
\:
%ul
- target.errors.full_messages.each do |msg|

View File

@@ -3098,6 +3098,12 @@ See the %{link} to find out more about %{sitename}'s features and to start using
actions:
update: "Update"
shared:
error_messages:
errors_prohibited_this_record_from_being_saved:
one: "1 error prohibited this record from being saved:"
other: "%{count} errors prohibited this record from being saved:"
there_were_problems_with_the_following_fields: "There were problems with the following fields"
errors:
messages:
blank: "can't be blank"