Skip to content

Commit

Permalink
fix: Fixes miss type and update language domain
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuellopess committed Apr 17, 2024
1 parent 4386625 commit 86da73c
Show file tree
Hide file tree
Showing 7 changed files with 855 additions and 855 deletions.
4 changes: 2 additions & 2 deletions includes/module/sdk/lib/class-mp.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ public function get_payment_methods( $access_token ) {

$response = MP_Rest_Client::get( $request );

if ( $response['status'] > 202 ) {
if (empty($response) && $response['status'] > 202 ) {
$log = WC_WooMercadoPago_Log::init_mercado_pago_log( 'get_payment_methods' );
$log->write_log( 'API get_payment_methods error: ', $response['response']['message'] );
$log->write_log( 'API get_payment_methods error: ', $response['response']['message'] ?? 'empty response please verify your account' );

return null;
}
Expand Down
4 changes: 2 additions & 2 deletions lkn-wc-mercadopago.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
/**
* Plugin Name: Mercado Pago
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
* Description: Configure as opções de pagamento e aceite pagamentos com cartões, boleto e dinheiro da conta Mercado Pago.
* Version: 7.3.5
* Author: Mercado Pago
* Author URI: https://developers.mercadopago.com/
* Text Domain: woocommerce-mercadopago
* Text Domain: lkn-woocommerce-mercadopago
* Domain Path: /i18n/languages/
* WC requires at least: 5.5.2
* WC tested up to: 8.1.0
Expand Down
1,230 changes: 615 additions & 615 deletions src/Translations/AdminTranslations.php

Large diffs are not rendered by default.

458 changes: 229 additions & 229 deletions src/Translations/StoreTranslations.php

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/WoocommerceMercadoPago.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function __construct()
*/
public function loadPluginTextDomain(): void
{
$textDomain = 'woocommerce-mercadopago';
$textDomain = 'lkn-woocommerce-mercadopago';
$locale = apply_filters('plugin_locale', get_locale(), $textDomain);
$originalLanguageFile = dirname(__FILE__) . '/../i18n/languages/woocommerce-mercadopago-' . $locale . '.mo';

Expand Down Expand Up @@ -460,11 +460,11 @@ function () {

$minilogo = sprintf('%s%s', plugin_dir_url(__FILE__), '../assets/images/minilogo.png');
$translations = [
'activate_woocommerce' => __('Activate WooCommerce', 'woocommerce-mercadopago'),
'install_woocommerce' => __('Install WooCommerce', 'woocommerce-mercadopago'),
'see_woocommerce' => __('See WooCommerce', 'woocommerce-mercadopago'),
'activate_woocommerce' => __('Activate WooCommerce', 'lkn-woocommerce-mercadopago'),
'install_woocommerce' => __('Install WooCommerce', 'lkn-woocommerce-mercadopago'),
'see_woocommerce' => __('See WooCommerce', 'lkn-woocommerce-mercadopago'),
'miss_woocommerce' => sprintf(
__('The Mercado Pago module needs an active version of %s in order to work!', 'woocommerce-mercadopago'),
__('The Mercado Pago module needs an active version of %s in order to work!', 'lkn-woocommerce-mercadopago'),
'<a target="_blank" href="https://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a>'
),
];
Expand Down
2 changes: 1 addition & 1 deletion templates/public/order/pix-order-received-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div class="mp-pix-image-date-expiration">
<small>
<?php esc_html_e($expiration_date_text) . esc_html_e($expiration_date, 'woocommerce-mercadopago'); ?>
<?php esc_html_e($expiration_date_text) . esc_html_e($expiration_date, 'lkn-woocommerce-mercadopago'); ?>
</small>
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/public/order/pix-order-received.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</p>
<img data-cy="qrcode-pix" class="mp-details-pix-qr-img" src="data:image/jpeg;base64,<?= esc_html($qr_base64); ?>" alt="Qr code"/>
<p class="mp-details-pix-qr-subtitle">
<?= esc_html($text_time_qr_one); ?><?php esc_html_e($qr_date_expiration, 'woocommerce-mercadopago'); ?>
<?= esc_html($text_time_qr_one); ?><?php esc_html_e($qr_date_expiration, 'lkn-woocommerce-mercadopago'); ?>
</p>
<div class="mp-details-pix-container">
<p class="mp-details-pix-qr-description">
Expand Down

0 comments on commit 86da73c

Please sign in to comment.