Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Jul 21, 2024
1 parent a7d27cc commit 25f7fd0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 31 deletions.
2 changes: 1 addition & 1 deletion app/BuyCredGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function checkout_page_body(): void
*/
public function ajax_buy(): void
{
$this->send_json(esc_html__('This gateway does not support AJAX payments.', 'mycred-cryptopay'));
$this->send_json(esc_html__('This gateway does not support AJAX payments.', 'cryptopay-integration-for-mycred'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions app/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public function paymentFinished(object $data): void
$gateway->trash_pending_payment($order->getId());
} else {
$gateway->log_call($order->getId(), [
sprintf(esc_html__('Failed to credit users account.', 'mycred-cryptopay'))
sprintf(esc_html__('Failed to credit users account.', 'cryptopay-integration-for-mycred'))
]);
}
} else {
$gateway->log_call($order->getId(), [
// translators: %s: transaction hash
sprintf(__('Payment not completed. Transaction hash: %s', 'mycred-cryptopay'), $data->getHash())
sprintf(__('Payment not completed. Transaction hash: %s', 'cryptopay-integration-for-mycred'), $data->getHash())
]);
}
}
Expand Down
4 changes: 2 additions & 2 deletions cryptopay-integration-for-mycred.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author URI: https://beycanpress.com
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: mycred-cryptopay
* Text Domain: cryptopay-integration-for-mycred
* Tags: Bitcoin, Ethereum, Crypto, Payment, myCred
* Requires at least: 5.0
* Tested up to: 6.6
Expand Down Expand Up @@ -48,7 +48,7 @@ function myCredCryptoPayRegisterAddons(): void

myCredCryptoPayRegisterAddons();

load_plugin_textdomain('mycred-cryptopay', false, basename(__DIR__) . '/languages');
load_plugin_textdomain('cryptopay-integration-for-mycred', false, basename(__DIR__) . '/languages');

add_action('plugins_loaded', function (): void {
myCredCryptoPayRegisterAddons();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: CryptoPay Integration for myCred\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:16+0000\n"
"POT-Creation-Date: 2024-07-21 10:41+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: \n"
Expand All @@ -13,8 +13,8 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.6.7; wp-6.4.3\n"
"X-Domain: mycred-cryptopay"
"X-Loco-Version: 2.6.11; wp-6.6\n"
"X-Domain: cryptopay-integration-for-mycred"

#: views/cashcred.php:48
msgid "Address"
Expand All @@ -34,6 +34,10 @@ msgstr ""
msgid "CryptoPay Details"
msgstr ""

#. Name of the plugin
msgid "CryptoPay Integration for myCred"
msgstr ""

#: views/cashcred-preferences.php:16 views/preferences.php:15
msgid "Currency"
msgstr ""
Expand Down Expand Up @@ -70,10 +74,6 @@ msgstr ""
msgid "Minimum Points Withdrawal"
msgstr ""

#. Name of the plugin
msgid "CryptoPay Integration for myCred"
msgstr ""

#: views/cashcred.php:27
msgid "Payment currency"
msgstr ""
Expand All @@ -82,7 +82,8 @@ msgstr ""
msgid "Payment network"
msgstr ""

#: app/Loader.php:67
#. %s: transaction hash
#: app/Loader.php:68
#, php-format
msgid "Payment not completed. Transaction hash: %s"
msgstr ""
Expand All @@ -99,6 +100,6 @@ msgstr ""
msgid "Theme"
msgstr ""

#: app/BuyCredGateway.php:153
#: app/BuyCredGateway.php:154
msgid "This gateway does not support AJAX payments."
msgstr ""
12 changes: 6 additions & 6 deletions views/cashcred-preferences.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3><?php esc_html_e('Settings', 'mycred-cryptopay'); ?></h3>
<h3><?php esc_html_e('Settings', 'cryptopay-integration-for-mycred'); ?></h3>
<div class="form-group">
<label for="<?php echo esc_attr( $this->field_id( 'minimum_amount' ) ); ?>"><?php esc_html_e( 'Minimum Points Withdrawal', 'mycred-cryptopay' ); ?></label>
<label for="<?php echo esc_attr( $this->field_id( 'minimum_amount' ) ); ?>"><?php esc_html_e( 'Minimum Points Withdrawal', 'cryptopay-integration-for-mycred' ); ?></label>
<input type="number" name="<?php echo esc_attr( $this->field_name( 'minimum_amount' ) ); ?>" id="<?php echo esc_attr( $this->field_id( 'minimum_amount' ) ); ?>" min="1" value="<?php echo esc_attr( $this->prefs['minimum_amount'] ); ?>" class="form-control" />
</div>
<div class="form-group">
<label for="<?php echo esc_attr( $this->field_id( 'maximum_amount' ) ); ?>"><?php esc_html_e( 'Maximum Points Withdrawal', 'mycred-cryptopay' ); ?></label>
<label for="<?php echo esc_attr( $this->field_id( 'maximum_amount' ) ); ?>"><?php esc_html_e( 'Maximum Points Withdrawal', 'cryptopay-integration-for-mycred' ); ?></label>
<input type="number" name="<?php echo esc_attr( $this->field_name( 'maximum_amount' ) ); ?>" id="<?php echo esc_attr( $this->field_id( 'maximum_amount' ) ); ?>" value="<?php echo esc_attr( $this->prefs['maximum_amount'] ); ?>" class="form-control" />
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3><?php esc_html_e('Setup', 'mycred-cryptopay'); ?></h3>
<h3><?php esc_html_e('Setup', 'cryptopay-integration-for-mycred'); ?></h3>
<div class="form-group">
<label for="<?php echo esc_attr($this->field_id('currency')); ?>"><?php esc_html_e('Currency', 'mycred-cryptopay'); ?></label>
<label for="<?php echo esc_attr($this->field_id('currency')); ?>"><?php esc_html_e('Currency', 'cryptopay-integration-for-mycred'); ?></label>

<?php $this->currencies_dropdown('currency', 'mycred-gateway-cryptopay-currency'); ?>

</div>
<div class="form-group">
<label><?php esc_html_e('Exchange Rates', 'mycred-cryptopay'); ?></label>
<label><?php esc_html_e('Exchange Rates', 'cryptopay-integration-for-mycred'); ?></label>

<?php $this->exchange_rate_setup(); ?>

Expand Down
8 changes: 4 additions & 4 deletions views/cashcred.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

<div id="panel_<?php echo esc_attr($key); ?>" class="cashcred_panel">

<h3><?php echo esc_html(apply_filters('mycred_cashcred_cryptopay_title', __('CryptoPay Details', 'mycred-cryptopay'))); ?></h3>
<h3><?php echo esc_html(apply_filters('mycred_cashcred_cryptopay_title', __('CryptoPay Details', 'cryptopay-integration-for-mycred'))); ?></h3>

<?php do_action('mycred_cashcred_before_cryptopay_form'); ?>

<div class="form-group">
<div>
<label>
<?php esc_html_e('Payment network', 'mycred-cryptopay'); ?>
<?php esc_html_e('Payment network', 'cryptopay-integration-for-mycred'); ?>
</label>
</div>
<div>
Expand All @@ -24,7 +24,7 @@
<div class="form-group">
<div>
<label>
<?php esc_html_e('Payment currency', 'mycred-cryptopay'); ?>
<?php esc_html_e('Payment currency', 'cryptopay-integration-for-mycred'); ?>
</label>
</div>
<div>
Expand All @@ -45,7 +45,7 @@
<div class="form-group">
<div>
<label>
<?php esc_html_e('Address', 'mycred-cryptopay'); ?>
<?php esc_html_e('Address', 'cryptopay-integration-for-mycred'); ?>
</label>
</div>
<div>
Expand Down
14 changes: 7 additions & 7 deletions views/preferences.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3><?php esc_html_e('Settings', 'mycred-cryptopay'); ?></h3>
<h3><?php esc_html_e('Settings', 'cryptopay-integration-for-mycred'); ?></h3>
<div class="form-group">
<label for="<?php echo esc_attr($this->field_id('theme')); ?>"><?php esc_html_e('Theme', 'mycred-cryptopay'); ?></label>
<label for="<?php echo esc_attr($this->field_id('theme')); ?>"><?php esc_html_e('Theme', 'cryptopay-integration-for-mycred'); ?></label>
<select name="<?php echo esc_attr($this->field_name('theme')); ?>" id="<?php echo esc_attr($this->field_id('theme')); ?>" class="form-control">
<option value="light" <?php selected($this->prefs['theme'], 'light'); ?>><?php esc_html_e('Light', 'mycred-cryptopay'); ?></option>
<option value="dark" <?php selected($this->prefs['theme'], 'dark'); ?>><?php esc_html_e('Dark', 'mycred-cryptopay'); ?></option>
<option value="light" <?php selected($this->prefs['theme'], 'light'); ?>><?php esc_html_e('Light', 'cryptopay-integration-for-mycred'); ?></option>
<option value="dark" <?php selected($this->prefs['theme'], 'dark'); ?>><?php esc_html_e('Dark', 'cryptopay-integration-for-mycred'); ?></option>
</select>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3><?php esc_html_e('Setup', 'mycred-cryptopay'); ?></h3>
<h3><?php esc_html_e('Setup', 'cryptopay-integration-for-mycred'); ?></h3>
<div class="form-group">
<label for="<?php echo esc_attr($this->field_id('currency')); ?>"><?php esc_html_e('Currency', 'mycred-cryptopay'); ?></label>
<label for="<?php echo esc_attr($this->field_id('currency')); ?>"><?php esc_html_e('Currency', 'cryptopay-integration-for-mycred'); ?></label>

<?php $this->currencies_dropdown('currency', 'mycred-gateway-cryptopay-currency'); ?>

</div>
<div class="form-group">
<label><?php esc_html_e('Exchange Rates', 'mycred-cryptopay'); ?></label>
<label><?php esc_html_e('Exchange Rates', 'cryptopay-integration-for-mycred'); ?></label>

<?php $this->exchange_rate_setup(); ?>

Expand Down

0 comments on commit 25f7fd0

Please sign in to comment.