Skip to content

Commit

Permalink
wp.org updates
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Oct 18, 2024
1 parent a7dd3b1 commit 76df07c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 38 deletions.
4 changes: 2 additions & 2 deletions app/Gateways/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function getLegacyFormFieldMarkup(int $formId, array $args): strin
{
return "<span> " . esc_html__(
'You can pay with supported networks and cryptocurrencies.',
'givewp-cryptopay'
'cryptopay-gateway-for-givewp'
) . " </span>";
}

Expand Down Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions app/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public function __construct()

// add transaction page
Helpers::createTransactionPage(
esc_html__('GiveWP Transactions', 'givewp-cryptopay'),
esc_html__('GiveWP Transactions', 'cryptopay-gateway-for-givewp'),
'givewp',
10,
[
'orderId' => function ($tx) {
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)
]);
}
]
Expand All @@ -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)
]);
}

Expand All @@ -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)
]);
}

Expand Down
4 changes: 2 additions & 2 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
},
});

Expand All @@ -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"));
},
});
})();
6 changes: 3 additions & 3 deletions cryptopay-gateway-for-givewp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down Expand Up @@ -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']);

Expand Down
Original file line number Diff line number Diff line change
@@ -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 <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.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."
Expand All @@ -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
Expand All @@ -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 ""
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76df07c

Please sign in to comment.