From ff7dc811e9f3d0be4fdfb22cdedf86f7f4e3d0f2 Mon Sep 17 00:00:00 2001 From: stveep Date: Fri, 29 Jun 2018 23:18:59 +0100 Subject: [PATCH] Add translations for messages and remove old placeholder translation --- .../javascripts/admin/payments/controllers/payment.js.coffee | 2 +- .../javascripts/admin/payments/services/payment.js.coffee | 2 +- config/locales/en.yml | 3 ++- config/locales/en_GB.yml | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/admin/payments/controllers/payment.js.coffee b/app/assets/javascripts/admin/payments/controllers/payment.js.coffee index 6c763b778c..73f717deeb 100644 --- a/app/assets/javascripts/admin/payments/controllers/payment.js.coffee +++ b/app/assets/javascripts/admin/payments/controllers/payment.js.coffee @@ -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() diff --git a/app/assets/javascripts/admin/payments/services/payment.js.coffee b/app/assets/javascripts/admin/payments/services/payment.js.coffee index 7d72af03d3..f079137818 100644 --- a/app/assets/javascripts/admin/payments/services/payment.js.coffee +++ b/app/assets/javascripts/admin/payments/services/payment.js.coffee @@ -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") ) diff --git a/config/locales/en.yml b/config/locales/en.yml index e8df84c912..6358809a65 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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' diff --git a/config/locales/en_GB.yml b/config/locales/en_GB.yml index d50003b209..e6c48f6529 100644 --- a/config/locales/en_GB.yml +++ b/config/locales/en_GB.yml @@ -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'