mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Add translations for messages and remove old placeholder translation
This commit is contained in:
@@ -6,5 +6,5 @@ angular.module("admin.payments").controller "PaymentCtrl", ($scope, Payment, Sta
|
||||
$scope.submitPayment = () ->
|
||||
return false if $scope.submitted == true
|
||||
$scope.submitted = true
|
||||
StatusMessage.display 'progress', t("submitting_payment")
|
||||
StatusMessage.display 'progress', t("spree.admin.payments.source_forms.stripe.submitting_payment")
|
||||
Payment.purchase()
|
||||
|
||||
@@ -43,5 +43,5 @@ angular.module('admin.payments').factory 'Payment', (AdminStripeElements, curren
|
||||
PaymentResource.create({order_id: munged.order_id}, munged, (response, headers, status)=>
|
||||
$window.location.pathname = "/admin/orders/" + munged.order_id + "/payments"
|
||||
, (response) ->
|
||||
StatusMessage.display 'error', t("error saving payment")
|
||||
StatusMessage.display 'error', t("spree.admin.payments.source_forms.stripe.error_saving_payment")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user