Add translations for messages and remove old placeholder translation

This commit is contained in:
stveep
2018-06-29 23:18:59 +01:00
parent f9a221e2ff
commit ff7dc811e9
4 changed files with 7 additions and 4 deletions

View File

@@ -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()

View File

@@ -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")
)

View File

@@ -2612,7 +2612,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using
payments:
source_forms:
stripe:
no_payment_via_admin_backend: Creating Stripe-based payments from the admin backend is not possible at this time
error_saving_payment: Error saving payment
submitting_payment: Submitting payment...
products:
new:
title: 'New Product'

View File

@@ -2380,7 +2380,9 @@ en_GB:
payments:
source_forms:
stripe:
no_payment_via_admin_backend: Creating Stripe-based payments from the admin backend is not possible at this time
error_saving_payment: Error saving payment
submitting_payment: Submitting payment...
products:
new:
title: 'New Product'