mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
i18nize the global error message
This commit is contained in:
@@ -45,7 +45,7 @@ class SplitCheckoutController < ::BaseController
|
||||
if @shipping_method_id.blank?
|
||||
@order.errors.add(:base, "no_shipping_method_selected")
|
||||
end
|
||||
flash.now[:error] = "Saving failed, please update the highlighted fields: #{@order.errors.full_messages}"
|
||||
flash.now[:error] = "#{I18n.t('split_checkout.errors.global')}"
|
||||
render :edit
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1692,6 +1692,7 @@ en:
|
||||
submit: Complete order
|
||||
cancel: Back to Payment method
|
||||
errors:
|
||||
global: "Saving failed, please update the highlighted fields."
|
||||
required: Field cannot be blank
|
||||
invalid_number: "Please enter a valid phone number"
|
||||
invalid_email: "Please enter a valid email address"
|
||||
|
||||
Reference in New Issue
Block a user