mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
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:
@@ -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|
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user