From 11dced494bb7dd95538385a27ac4dcc47d5e9f0d Mon Sep 17 00:00:00 2001 From: John Atkinson Date: Fri, 7 Dec 2012 19:30:59 -0800 Subject: [PATCH] Checkout text moved to language file --- upload/catalog/controller/payment/bitcoin.php | 8 +++++++- upload/catalog/language/english/payment/bitcoin.php | 8 +++++++- .../view/theme/default/template/payment/bitcoin.tpl | 8 ++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/upload/catalog/controller/payment/bitcoin.php b/upload/catalog/controller/payment/bitcoin.php index a51c216..0cdf39d 100644 --- a/upload/catalog/controller/payment/bitcoin.php +++ b/upload/catalog/controller/payment/bitcoin.php @@ -25,8 +25,14 @@ class ControllerPaymentBitcoin extends Controller { private $payment_module_name = 'bitcoin'; protected function index() { $this->language->load('payment/'.$this->payment_module_name); - $this->data['button_bitcoin_confirm'] = $this->language->get('button_bitcoin_confirm'); $this->data['button_bitcoin_pay'] = $this->language->get('button_bitcoin_pay'); + $this->data['text_please_send'] = $this->language->get('text_please_send'); + $this->data['text_btc_to'] = $this->language->get('text_btc_to'); + $this->data['text_to_complete'] = $this->language->get('text_to_complete'); + $this->data['text_click_pay'] = $this->language->get('text_click_pay'); + $this->data['text_uri_compatible'] = $this->language->get('text_uri_compatible'); + $this->data['text_click_here'] = $this->language->get('text_click_here'); + $this->data['text_if_not_redirect'] = $this->language->get('text_if_not_redirect'); $this->data['error_msg'] = $this->language->get('error_msg'); $this->data['error_confirm'] = $this->language->get('error_confirm'); $this->data['error_incomplete_pay'] = $this->language->get('error_incomplete_pay'); diff --git a/upload/catalog/language/english/payment/bitcoin.php b/upload/catalog/language/english/payment/bitcoin.php index 4d2bcf9..a154b4a 100644 --- a/upload/catalog/language/english/payment/bitcoin.php +++ b/upload/catalog/language/english/payment/bitcoin.php @@ -22,8 +22,14 @@ // Text $_['text_title'] = 'Bitcoin - bitcoind'; -$_['button_bitcoin_confirm'] = 'I sent it!'; $_['button_bitcoin_pay'] = 'Pay with Bitcoin'; +$_['text_please_send'] = 'Please send'; +$_['text_btc_to'] = 'BTC to'; +$_['text_to_complete'] = 'to complete the transaction.'; +$_['text_click_pay'] = 'Click to pay'; +$_['text_uri_compatible'] = '(URI-compatible wallets only)'; +$_['text_click_here'] = 'Click here'; +$_['text_if_not_redirect'] = 'if you are not redirected automatically a few seconds after payment.'; $_['error_msg'] = 'Error communicating with payment provider. Please contact the store for assistance.'; $_['error_confirm'] = 'That didn\\\'t quite work. Please try again. If you receive this message multiple times, please contact us so we can help finalize your order.'; $_['error_incomplete_pay'] = 'We have not yet received your full payment. If you already sent it, try again in a few seconds. If you receive this message multiple times, please contact us so we can help finalize your order.'; diff --git a/upload/catalog/view/theme/default/template/payment/bitcoin.tpl b/upload/catalog/view/theme/default/template/payment/bitcoin.tpl index a3d730c..a716bc9 100644 --- a/upload/catalog/view/theme/default/template/payment/bitcoin.tpl +++ b/upload/catalog/view/theme/default/template/payment/bitcoin.tpl @@ -34,14 +34,14 @@ DEALINGS IN THE SOFTWARE. $('#button-pay').on('click', function() { html = '
'; html += '
'; - html += '
Please send BTC to
'; + html += '
'; html += '
'; - html += '
to complete the transaction.
'; - html += '
Click to pay (URI-compatible wallets only)
'; + html += '
'; + html += '
'; html += '
'; html += '
'; html += '
'; - html += '
Click here if you are not redirected automatically a few seconds after payment.
'; + html += '
'; html += '
'; $.colorbox({ overlayClose: true,