diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index eaf61ec..60185cd 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -10,7 +10,7 @@ class Monero_Gateway extends WC_Payment_Gateway { $this->id = "monero_gateway"; $this->method_title = __("Monero GateWay", 'monero_gateway'); - $this->method_description = __("Monero Payment Gateway Plug-in for WooCommerce. You can find more information about this payment gateway in our website. You'll need a daemon online for your address.", 'monero_gateway'); + $this->method_description = __("Monero Payment Gateway Plug-in for WooCommerce. You can find more information about this payment gateway on our website. You'll need a daemon online for your address.", 'monero_gateway'); $this->title = __("Monero Gateway", 'monero_gateway'); $this->version = "0.2"; // @@ -144,8 +144,8 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { 'discount' => array( 'title' => __('% discount for using XMR', 'monero_gateway'), - 'desc_tip' => __('Provide a descount to your customers for paying privatly with XMR!', 'monero_gateway'), - 'description' => __(' Want to spread the word about Monero? Offer a little discount! Leave this empty if you do not wish to provide a discount', 'monero_gateway'), + 'desc_tip' => __('Provide a discount to your customers for making a private payment with XMR!', 'monero_gateway'), + 'description' => __('Do you want to spread the word about Monero? Offer a small discount! Leave this empty if you do not wish to provide a discount', 'monero_gateway'), 'type' => __('text'), 'default' => '5%' @@ -256,7 +256,7 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { public function validate_fields() { if ($this->check_monero() != TRUE) { - echo "

Your Monero Address Seems not valid. Have you checked it?

"; + echo "

Your Monero Address doesn't seem valid. Have you checked it?

"; } } @@ -326,7 +326,7 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) {
Send " . $amount_xmr2 . " XMR to
or scan QR Code with your mobile device

- If you don't know how to pay with monero or you don't know what monero is, please go here. + If you need help with how to pay with Monero or want to learn more about it, please go to the Monerosite.
@@ -361,7 +361,7 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { $port = $this->settings['daemon_port']; $monero_library = new Monero($host, $port); if( $monero_library->works() == true){ - echo "

Everything works! Congratulations and Welcome aboard Monero.

"; @@ -386,7 +386,7 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { if($get_payments_method["payments"][0]["amount"] >= $amount_atomic_units) { $message = "Payment has been received and confirmed. Thanks!"; - $this->log->add('Monero_gateway','[SUCCESS] Payment has been recorded. Congrats!'); + $this->log->add('Monero_gateway','[SUCCESS] Payment has been recorded. Congratulations!'); $this->confirmed = true; $order = wc_get_order($order_id); $order->update_status('completed', __('Payment has been received', 'monero_gateway')); @@ -405,7 +405,7 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) { public function getamountinfo(){ $wallet_amount = $this->monero_daemon->getbalance(); if(!isset($wallet_amount)){ - $this->log->add('Monero_gateway','[ERROR] Connection with daemon absend'); + $this->log->add('Monero_gateway','[ERROR] No connection with daemon'); $wallet_amount['balance'] = "0"; $wallet_amount['unlocked_balance'] = "0"; } diff --git a/monero/library.php b/monero/library.php index 3970d5e..0474fc7 100644 --- a/monero/library.php +++ b/monero/library.php @@ -35,8 +35,8 @@ class Monero_Library public function __construct($pUrl, $pUser, $pPass) { - $this->validate(false === extension_loaded('curl'), 'The curl extension must be loaded for using this class!'); - $this->validate(false === extension_loaded('json'), 'The json extension must be loaded for using this class!'); + $this->validate(false === extension_loaded('curl'), 'The curl extension must be loaded to use this class!'); + $this->validate(false === extension_loaded('json'), 'The json extension must be loaded to use this class!'); $this->url = $pUrl; $this->username = $pUser;