From b0966934a99d5cf087b8dc9836c9e87096cfa5fc Mon Sep 17 00:00:00 2001 From: MichaelBattistonBitbull Date: Thu, 6 Mar 2025 08:35:30 +0000 Subject: [PATCH 1/2] [BCSAT-77] New translations, update .pot, readme, .gitignore --- .gitignore | 1 + assets/js/frontend/blocks.js | 2 +- readme.txt | 8 ++++++-- resources/js/frontend/index.js | 2 +- wc-satispay.php | 2 +- woo-satispay.php | 4 ++-- woo-satispay.pot | 19 +++++++++++++++---- 7 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index b2ee44f..125a720 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /tmp /tmp-svn /tmp-plugin +.idea \ No newline at end of file diff --git a/assets/js/frontend/blocks.js b/assets/js/frontend/blocks.js index 53e2458..b79580e 100644 --- a/assets/js/frontend/blocks.js +++ b/assets/js/frontend/blocks.js @@ -1 +1 @@ -(()=>{"use strict";const t=window.React,e=window.wp.i18n,n=window.wc.wcBlocksRegistry,a=window.wp.htmlEntities,i=(0,window.wc.wcSettings.getSetting)("satispay_data",{}),s=(0,e.__)("Satispay"),c=(0,e.__)("Do it smart. Choose Satispay and pay with a tap!"),o=i.icon,l=(0,a.decodeEntities)(i.title)||s,r=()=>(0,a.decodeEntities)(i.description||c),w={name:"satispay",label:(0,t.createElement)((e=>{const{PaymentMethodLabel:n}=e.components,a=(0,t.createElement)("img",{src:o,alt:l,name:l});return(0,t.createElement)(n,{text:l,icon:a})}),null),content:(0,t.createElement)(r,null),edit:(0,t.createElement)(r,null),canMakePayment:()=>!0,ariaLabel:l,supports:{features:i.supports},icon:i.icon};(0,n.registerPaymentMethod)(w)})(); \ No newline at end of file +(()=>{"use strict";const t=window.React,e=window.wp.i18n,n=window.wc.wcBlocksRegistry,a=window.wp.htmlEntities,i=(0,window.wc.wcSettings.getSetting)("satispay_data",{}),s=(0,e.__)("Satispay"),c=(0,e.__)("People Paying People. Choose Satispay and pay with a tap!"),o=i.icon,l=(0,a.decodeEntities)(i.title)||s,r=()=>(0,a.decodeEntities)(i.description||c),w={name:"satispay",label:(0,t.createElement)((e=>{const{PaymentMethodLabel:n}=e.components,a=(0,t.createElement)("img",{src:o,alt:l,name:l});return(0,t.createElement)(n,{text:l,icon:a})}),null),content:(0,t.createElement)(r,null),edit:(0,t.createElement)(r,null),canMakePayment:()=>!0,ariaLabel:l,supports:{features:i.supports},icon:i.icon};(0,n.registerPaymentMethod)(w)})(); \ No newline at end of file diff --git a/readme.txt b/readme.txt index b84dd4a..0f50d9b 100644 --- a/readme.txt +++ b/readme.txt @@ -3,11 +3,11 @@ Contributors: Satispay Tags: woocommerce, satispay, payment method Requires at least: 5.0 Tested up to: 6.6.0 -Stable tag: 2.2.6 +Stable tag: 2.2.7 License: MIT License URI: https://opensource.org/licenses/MIT -Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #doitsmart +Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #peoplepayingpeople == Description == @@ -36,6 +36,10 @@ Manage all of your refund requests directly with the Refund function integrated As soon as the customer confirms the payment, the transaction is completed, thus eliminating the possibility of chargeback. == Changelog == + += 2.2.7 = +* Updated translations + = 2.2.6 = * Updated compatibility to WP-6.6.0 diff --git a/resources/js/frontend/index.js b/resources/js/frontend/index.js index d63f7fb..f8cc29f 100644 --- a/resources/js/frontend/index.js +++ b/resources/js/frontend/index.js @@ -11,7 +11,7 @@ const defaultLabel = __( ); const defaultDescription = __( - 'Do it smart. Choose Satispay and pay with a tap!' + 'People Paying People. Choose Satispay and pay with a tap!' ); const iconUrl = settings.icon; diff --git a/wc-satispay.php b/wc-satispay.php index 1082bff..5f4d9e9 100644 --- a/wc-satispay.php +++ b/wc-satispay.php @@ -9,7 +9,7 @@ class WC_Satispay extends WC_Payment_Gateway { const METHOD_TITLE = 'Satispay'; const ORDER_BUTTON_TEXT = 'Pay with Satispay'; - const METHOD_DESCRIPTION = 'Do it smart. Choose Satispay and pay with a tap!'; + const METHOD_DESCRIPTION = 'People Paying People. Choose Satispay and pay with a tap!'; const SUPPORTS = array( 'products', 'refunds' diff --git a/woo-satispay.php b/woo-satispay.php index 018fb3a..82a14eb 100644 --- a/woo-satispay.php +++ b/woo-satispay.php @@ -2,10 +2,10 @@ /* * Plugin Name: WooCommerce Satispay * Plugin URI: https://wordpress.org/plugins/woo-satispay/ - * Description: Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #doitsmart + * Description: Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #peoplepayingpeople * Author: Satispay * Author URI: https://www.satispay.com/ - * Version: 2.2.6 + * Version: 2.2.7 * WC tested up to: 8.9.2 */ diff --git a/woo-satispay.pot b/woo-satispay.pot index 6b24b2d..43b7e4e 100644 --- a/woo-satispay.pot +++ b/woo-satispay.pot @@ -1,4 +1,4 @@ -# Copyright (C) 2024 Satispay +# Copyright (C) 2025 Satispay # This file is distributed under the same license as the WooCommerce Satispay plugin. msgid "" msgstr "" @@ -9,9 +9,9 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-06-25T09:03:33+00:00\n" +"POT-Creation-Date: 2025-03-06T07:37:33+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.10.0\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: woo-satispay\n" #. Plugin Name of the plugin @@ -26,11 +26,13 @@ msgstr "" #. Description of the plugin #: woo-satispay.php -msgid "Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #doitsmart" +msgid "Save time and money by accepting payments from your customers with Satispay. Free, simple, secure! #peoplepayingpeople" msgstr "" #. Author of the plugin #: woo-satispay.php +#: assets/js/frontend/blocks.js:1 +#: resources/js/frontend/index.js:9 msgid "Satispay" msgstr "" @@ -99,3 +101,12 @@ msgstr "" #: woo-satispay.php:53 msgid "Settings" msgstr "" + +#: woo-satispay.php:70 +msgid "Every 4 hours" +msgstr "" + +#: assets/js/frontend/blocks.js:1 +#: resources/js/frontend/index.js:13 +msgid "People Paying People. Choose Satispay and pay with a tap!" +msgstr "" \ No newline at end of file From 116fd218b898dcbdda61c69dfbd26941b58df9b5 Mon Sep 17 00:00:00 2001 From: MichaelBattistonBitbull Date: Thu, 6 Mar 2025 09:10:36 +0000 Subject: [PATCH 2/2] [BCSAT-77] Minor fix on translations --- wc-satispay.php | 7 +++---- woo-satispay.pot | 48 +++++++++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/wc-satispay.php b/wc-satispay.php index 5f4d9e9..5b24eb0 100644 --- a/wc-satispay.php +++ b/wc-satispay.php @@ -8,7 +8,6 @@ class WC_Satispay extends WC_Payment_Gateway { const METHOD_TITLE = 'Satispay'; - const ORDER_BUTTON_TEXT = 'Pay with Satispay'; const METHOD_DESCRIPTION = 'People Paying People. Choose Satispay and pay with a tap!'; const SUPPORTS = array( 'products', @@ -20,9 +19,9 @@ public function __construct() { $GLOBALS['hide_save_button'] = false; } $this->id = 'satispay'; - $this->method_title = __(self::METHOD_TITLE, 'woo-satispay'); - $this->order_button_text = __(self::ORDER_BUTTON_TEXT, 'woo-satispay'); - $this->method_description = __(self::METHOD_DESCRIPTION, 'woo-satispay'); + $this->method_title = __('Satispay', 'woo-satispay'); + $this->order_button_text = __('Pay with Satispay', 'woo-satispay'); + $this->method_description = __('People Paying People. Choose Satispay and pay with a tap!', 'woo-satispay'); $this->has_fields = false; $this->supports = self::SUPPORTS; diff --git a/woo-satispay.pot b/woo-satispay.pot index 43b7e4e..782c3ca 100644 --- a/woo-satispay.pot +++ b/woo-satispay.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the WooCommerce Satispay plugin. msgid "" msgstr "" -"Project-Id-Version: WooCommerce Satispay 2.2.6\n" +"Project-Id-Version: WooCommerce Satispay 2.2.7\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-satispay\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2025-03-06T07:37:33+00:00\n" +"POT-Creation-Date: 2025-03-06T09:08:21+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: woo-satispay\n" @@ -31,6 +31,7 @@ msgstr "" #. Author of the plugin #: woo-satispay.php +#: wc-satispay.php:22 #: assets/js/frontend/blocks.js:1 #: resources/js/frontend/index.js:9 msgid "Satispay" @@ -41,60 +42,70 @@ msgstr "" msgid "https://www.satispay.com/" msgstr "" -#: wc-satispay.php:117 +#: wc-satispay.php:23 +msgid "Pay with Satispay" +msgstr "" + +#: wc-satispay.php:24 +#: assets/js/frontend/blocks.js:1 +#: resources/js/frontend/index.js:13 +msgid "People Paying People. Choose Satispay and pay with a tap!" +msgstr "" + +#: wc-satispay.php:116 msgid "Enable/Disable" msgstr "" -#: wc-satispay.php:118 +#: wc-satispay.php:117 msgid "Enable Satispay" msgstr "" -#: wc-satispay.php:123 +#: wc-satispay.php:122 msgid "Activation Code" msgstr "" -#: wc-satispay.php:125 +#: wc-satispay.php:124 msgid "Get a six characters Activation Code from Online Shop section on Satispay Dashboard." msgstr "" -#: wc-satispay.php:128 +#: wc-satispay.php:127 msgid "Sandbox" msgstr "" -#: wc-satispay.php:129 +#: wc-satispay.php:128 msgid "Sandbox Mode" msgstr "" -#: wc-satispay.php:132 +#: wc-satispay.php:131 msgid "Sandbox Mode can be used to test payments. Request a Sandbox Account." msgstr "" -#: wc-satispay.php:135 +#: wc-satispay.php:134 msgid "Finalize unhandled payments" msgstr "" -#: wc-satispay.php:136 +#: wc-satispay.php:135 msgid "Enable cron" msgstr "" -#: wc-satispay.php:139 +#: wc-satispay.php:138 msgid "Finalize unhandled Satispay payments with a cron." msgstr "" +#: wc-satispay.php:141 #: wc-satispay.php:142 -#: wc-satispay.php:143 msgid "Finalize pending payments up to" msgstr "" -#: wc-satispay.php:146 +#: wc-satispay.php:145 msgid "Choose a number of hours, default is four and minimum is two." msgstr "" -#: wc-satispay.php:217 +#: wc-satispay.php:216 msgid "The Activation Code \"%s\" is invalid" msgstr "" -#: wc-satispay.php:235 +#: wc-satispay.php:234 msgid "Satispay is not correctly configured, get an Activation Code from Online Shop section on Satispay Dashboard" msgstr "" @@ -104,9 +115,4 @@ msgstr "" #: woo-satispay.php:70 msgid "Every 4 hours" -msgstr "" - -#: assets/js/frontend/blocks.js:1 -#: resources/js/frontend/index.js:13 -msgid "People Paying People. Choose Satispay and pay with a tap!" msgstr "" \ No newline at end of file