From 76df07c88a4f75ba19be0f61aaf8d57f893d9d99 Mon Sep 17 00:00:00 2001
From: Halil Beycan <50718965+BeycanDeveloper@users.noreply.github.com>
Date: Fri, 18 Oct 2024 12:24:39 +0800
Subject: [PATCH] wp.org updates
---
app/Gateways/Processor.php | 4 +-
app/Loader.php | 8 ++--
assets/js/main.js | 4 +-
cryptopay-gateway-for-givewp.php | 6 +--
...y.pot => cryptopay-gateway-for-givewp.pot} | 45 ++++++++-----------
readme.txt | 2 +-
6 files changed, 31 insertions(+), 38 deletions(-)
rename languages/{givewp-cryptopay.pot => cryptopay-gateway-for-givewp.pot} (57%)
diff --git a/app/Gateways/Processor.php b/app/Gateways/Processor.php
index 9c3fd13..96bc771 100644
--- a/app/Gateways/Processor.php
+++ b/app/Gateways/Processor.php
@@ -59,7 +59,7 @@ public static function getLegacyFormFieldMarkup(int $formId, array $args): strin
{
return " " . esc_html__(
'You can pay with supported networks and cryptocurrencies.',
- 'givewp-cryptopay'
+ 'cryptopay-gateway-for-givewp'
) . " ";
}
@@ -124,7 +124,7 @@ public static function handleCreatePaymentRedirect(string $name, array $queryPar
DonationNote::create([
'donationId' => $donation->id,
/* translators: %s: Gateway name */
- 'content' => sprintf(esc_html__('Donation completed with %s', 'givewp-cryptopay'), $name),
+ 'content' => sprintf(esc_html__('Donation completed with %s', 'cryptopay-gateway-for-givewp'), $name),
]);
Session::remove($token); // Remove the token from the session.
diff --git a/app/Loader.php b/app/Loader.php
index 72ec6d3..860a741 100644
--- a/app/Loader.php
+++ b/app/Loader.php
@@ -19,7 +19,7 @@ public function __construct()
// add transaction page
Helpers::createTransactionPage(
- esc_html__('GiveWP Transactions', 'givewp-cryptopay'),
+ esc_html__('GiveWP Transactions', 'cryptopay-gateway-for-givewp'),
'givewp',
10,
[
@@ -27,7 +27,7 @@ public function __construct()
return Helpers::run('view', 'components/link', [
'url' => sprintf(admin_url('edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=%d'), $tx->orderId), // @phpcs:ignore
/* translators: %d: transaction id */
- 'text' => sprintf(esc_html__('View donate #%d', 'gf-cryptopay'), $tx->orderId)
+ 'text' => sprintf(esc_html__('View donate #%d', 'cryptopay-gateway-for-givewp'), $tx->orderId)
]);
}
]
@@ -49,7 +49,7 @@ public function transactionId(string $transactionId): string
/* translators: %s: transaction id */
'url' => sprintf(admin_url('admin.php?page=cryptopay_givewp_transactions&s=%s'), $transactionId),
/* translators: %s: transaction id */
- 'text' => sprintf(esc_html__('View transaction #%s', 'gf-cryptopay'), $transactionId)
+ 'text' => sprintf(esc_html__('View transaction #%s', 'cryptopay-gateway-for-givewp'), $transactionId)
]);
}
@@ -62,7 +62,7 @@ public function transactionIdLite(string $transactionId): string
return Helpers::run('view', 'components/link', [
'url' => sprintf(admin_url('admin.php?page=cryptopay_lite_givewp_transactions&s=%s'), $transactionId),
/* translators: %s: transaction id */
- 'text' => sprintf(esc_html__('View transaction #%s', 'gf-cryptopay'), $transactionId)
+ 'text' => sprintf(esc_html__('View transaction #%s', 'cryptopay-gateway-for-givewp'), $transactionId)
]);
}
diff --git a/assets/js/main.js b/assets/js/main.js
index 1a171ca..1385ab0 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -21,7 +21,7 @@
};
},
Fields() {
- return ReactElement("span", null, __("You can pay with supported networks and cryptocurrencies.", "givewp-cryptopay"));
+ return ReactElement("span", null, __("You can pay with supported networks and cryptocurrencies.", "cryptopay-gateway-for-givewp"));
},
});
@@ -37,7 +37,7 @@
};
},
Fields() {
- return ReactElement("span", null, __("You can pay with supported networks and cryptocurrencies.", "givewp-cryptopay"));
+ return ReactElement("span", null, __("You can pay with supported networks and cryptocurrencies.", "cryptopay-gateway-for-givewp"));
},
});
})();
\ No newline at end of file
diff --git a/cryptopay-gateway-for-givewp.php b/cryptopay-gateway-for-givewp.php
index 3c4b28b..3c14127 100644
--- a/cryptopay-gateway-for-givewp.php
+++ b/cryptopay-gateway-for-givewp.php
@@ -18,10 +18,10 @@
* Author URI: https://beycanpress.com
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
- * Text Domain: givewp-cryptopay
+ * Text Domain: cryptopay-gateway-for-givewp
* Tags: Bitcoin, Ethereum, Crypto, Payment, GiveWP
* Requires at least: 5.0
- * Tested up to: 6.6.0
+ * Tested up to: 6.6.2
* Requires PHP: 8.1
*/
@@ -50,7 +50,7 @@ function fiveCryptoPayRegisterModels(): void
fiveCryptoPayRegisterModels();
-load_plugin_textdomain('givewp-cryptopay', false, basename(__DIR__) . '/languages');
+load_plugin_textdomain('cryptopay-gateway-for-givewp', false, basename(__DIR__) . '/languages');
add_action('givewp_register_payment_gateway', [Loader::class, 'registerPaymentGateway']);
diff --git a/languages/givewp-cryptopay.pot b/languages/cryptopay-gateway-for-givewp.pot
similarity index 57%
rename from languages/givewp-cryptopay.pot
rename to languages/cryptopay-gateway-for-givewp.pot
index 3e4932a..d3175b3 100644
--- a/languages/givewp-cryptopay.pot
+++ b/languages/cryptopay-gateway-for-givewp.pot
@@ -1,9 +1,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: CryptoPay Gateway for GiveWP \n"
+"Project-Id-Version: CryptoPay Gateway for GiveWP\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-03-11 09:33+0000\n"
+"POT-Creation-Date: 2024-10-18 04:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: \n"
@@ -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.6; wp-6.4.3\n"
-"X-Domain: givewp-cryptopay"
+"X-Loco-Version: 2.6.11; wp-6.6.2\n"
+"X-Domain: cryptopay-gateway-for-givewp"
#. Description of the plugin
msgid "Adds Cryptocurrency payment gateway (CryptoPay) for GiveWP."
@@ -24,32 +24,14 @@ msgstr ""
msgid "BeycanPress LLC"
msgstr ""
-#: cryptopay-gateway-for-givewp.php:49 cryptopay-gateway-for-givewp.php:59
-msgid "clicking here"
-msgstr ""
-
-#: app/Gateways/Processor.php:126
-#, php-format
-msgid "Donation completed with %s"
-msgstr ""
-
#. Name of the plugin
-msgid "CryptoPay Gateway for GiveWP "
+msgid "CryptoPay Gateway for GiveWP"
msgstr ""
-#: cryptopay-gateway-for-givewp.php:59
+#. %s: Gateway name
+#: app/Gateways/Processor.php:127
#, php-format
-msgid ""
-"CryptoPay Gateway for GiveWP : This plugin is an extra feature plugin so it "
-"cannot do anything on its own. It needs CryptoPay to work. You can buy "
-"CryptoPay by %s."
-msgstr ""
-
-#: cryptopay-gateway-for-givewp.php:49
-#, php-format
-msgid ""
-"CryptoPay Gateway for GiveWP : This plugin requires GiveWP to work. You can "
-"download GiveWP by %s."
+msgid "Donation completed with %s"
msgstr ""
#: app/Loader.php:22
@@ -64,6 +46,17 @@ msgstr ""
msgid "https://beycanpress.com/cryptopay/"
msgstr ""
+#. %d: transaction id
+#: app/Loader.php:30
+msgid "View donate #%d"
+msgstr ""
+
+#. %s: transaction id
+#: app/Loader.php:52 app/Loader.php:65
+#, php-format
+msgid "View transaction #%s"
+msgstr ""
+
#: app/Gateways/Processor.php:60
msgid "You can pay with supported networks and cryptocurrencies."
msgstr ""
diff --git a/readme.txt b/readme.txt
index 48d04a4..6294d7b 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,7 +2,7 @@
Contributors: BeycanPress
Tags: Bitcoin, Ethereum, Crypto, Payment, GiveWP
Requires at least: 5.0
-Tested up to: 6.6
+Tested up to: 6.6.2
Requires PHP: 8.1
Stable Tag: 1.0.0
Version: 1.0.0