From e481ff947d408181cc9d84ff8ffa61549f0fa58a Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 16 Jul 2017 23:55:29 +0530 Subject: [PATCH] Added code for tranlating Enter your credit card number in payment.js --- hosting/static/hosting/js/payment.js | 6 +++++- hosting/templates/hosting/payment.html | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosting/static/hosting/js/payment.js b/hosting/static/hosting/js/payment.js index edae127c..7b964db0 100644 --- a/hosting/static/hosting/js/payment.js +++ b/hosting/static/hosting/js/payment.js @@ -115,9 +115,13 @@ $(document).ready(function () { } }; + var enter_ccard_text = "Enter your credit card number"; + if (typeof window.enter_ccard_text !== 'undefined') { + enter_ccard_text = window.enter_ccard_text + } var cardNumberElement = elements.create('cardNumber', { style: credit_card_text_style, - placeholder: "Enter your credit card number" + placeholder: enter_ccard_text }); cardNumberElement.mount('#card-number-element'); diff --git a/hosting/templates/hosting/payment.html b/hosting/templates/hosting/payment.html index 024d77db..f03ba6e2 100644 --- a/hosting/templates/hosting/payment.html +++ b/hosting/templates/hosting/payment.html @@ -176,6 +176,7 @@ {% get_current_language as LANGUAGE_CODE %}