Skip to content

Commit

Permalink
fix: add plugin messages and change plugin name (#418)
Browse files Browse the repository at this point in the history
* fix: add new messages and change readme

* chore: update wordpress minimum version requires

* chore: changing description
  • Loading branch information
fabiano-mallmann authored May 8, 2024
1 parent 8d4ed2d commit c83f4d3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 10 deletions.
Binary file modified languages/woo-pagarme-payments-pt_BR.mo
Binary file not shown.
21 changes: 18 additions & 3 deletions languages/woo-pagarme-payments-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: WooCommerce Pagar.me Payments 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-pagarme-payments\n"
"POT-Creation-Date: 2018-06-22 13:58-0300\n"
"PO-Revision-Date: 2024-03-22 09:36-0300\n"
"PO-Revision-Date: 2024-05-07 10:10-0300\n"
"Last-Translator: Pagar.me\n"
"Language-Team: \n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -472,8 +472,8 @@ msgid "Settings"
msgstr "Configurações"

#. Plugin Name of the plugin/theme
msgid "Pagar.me module for Woocommerce"
msgstr "Pagar.me módulo para Woocommerce"
msgid "Pagar.me for Woocommerce"
msgstr "Pagar.me para Woocommerce"

#: src/Model/Gateway.php:85
msgid "1x"
Expand Down Expand Up @@ -1353,3 +1353,18 @@ msgstr "Dados Inválidos"

msgid "Tokenization timeout."
msgstr "Timeout na tokenização."

msgid "The number field is not a valid number."
msgstr "O número do cartão não é válido."

msgid "The number field is required."
msgstr "O campo Número do Cartão é obrigatório."

msgid "The cvv field is not a valid number."
msgstr "O número do CVV não é válido."

msgid "The holder_name field is required."
msgstr "O campo Nome impresso no cartão é obrigatório."

msgid "The field exp_month must be between 1 and 12."
msgstr "O mês de expiração do cartão deve estar entre 01 e 12."
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
=== Pagar.me módulo para WooCommerce ===
Contributors: Pagar.me
Tags: payments, pagarme, ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, woocommerce, creditcard
=== Pagar.me para WooCommerce ===
Contributors: pagarme
Tags: payment, pagarme, ecommerce, brasil, woocommerce
Requires at least: 4.1
Tested up to: 6.3
Requires PHP: 7.1
Stable tag: 3.2.2
License: MIT
License URI: https://github.com/pagarme/woocommerce/blob/master/LICENSE

Desenvolvemos um módulo que integra o Woocomerce a Pagar.me de forma prática e segura, assim não é preciso que seu time de tecnologia desenvolva nenhuma linha de código. Basta instalar e configurar o módulo para usar!
Aceite diversos métodos de pagamento de forma simples e segura utilizando o Pagar.me!

== Description ==
Desenvolvemos um plugin que integra o Woocomerce a Pagar.me de forma prática e segura, assim não é preciso que seu time de tecnologia desenvolva nenhuma linha de código. Basta instalar e configurar o módulo para usar!

== Installation ==
Nosso processo de instalação é simples e bem detalhado:
Expand Down
10 changes: 10 additions & 0 deletions src/Block/Checkout/Form/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public static function getCardErrorsMessagesTranslated()
return array(
'exp_month: A value is required.' =>
__('Expiration Date: The month is required.', 'woo-pagarme-payments'),
'card.exp_month: The field exp_month must be between 1 and 12.' =>
__('The field exp_month must be between 1 and 12.', 'woo-pagarme-payments'),
'exp_month: The field exp_month must be between 1 and 12.' =>
__('Expiration Date: The month must be between 1 and 12.', 'woo-pagarme-payments'),
"exp_year: The value 'undefined' is not valid for exp_year." =>
Expand All @@ -177,18 +179,26 @@ public static function getCardErrorsMessagesTranslated()
__('Expiration Date: Expired card.', 'woo-pagarme-payments'),
'holder_name: The holder_name field is required.' =>
__('The card holder name is required.', 'woo-pagarme-payments'),
'card.holder_name: The holder_name field is required.' =>
__('The holder_name field is required.', 'woo-pagarme-payments'),
'number: The number field is required.' =>
__('The card number is required.', 'woo-pagarme-payments'),
'number: The number field is not a valid credit card number.' =>
__(self::INVALID_CARD_ERROR_MESSAGE, 'woo-pagarme-payments'),
'card: The number field is not a valid card number' =>
__(self::INVALID_CARD_ERROR_MESSAGE, 'woo-pagarme-payments'),
'card.number: The number field is required.' =>
__('The number field is required.', 'woo-pagarme-payments'),
'card.number: The number field is not a valid number.' =>
__('The number field is not a valid number.', 'woo-pagarme-payments'),
'card.number: The field number must be a string with a minimum length of 13 and a maximum length of 19.'
=> __('The card number must be between 13 and 19 characters.', 'woo-pagarme-payments'),
'card: Card expired.' =>
__('The expiration date is expired.', 'woo-pagarme-payments'),
'card.cvv: The field cvv must be a string with a minimum length of 3 and a maximum length of 4.'
=> __('The card code must be between 3 and 4 characters.', 'woo-pagarme-payments'),
'card.cvv: The cvv field is not a valid number.' =>
__('The cvv field is not a valid number.', 'woo-pagarme-payments'),
'card: Invalid data to change card brand' =>
__(self::INVALID_CARD_ERROR_MESSAGE, 'woo-pagarme-payments'),
'card: Tokenize timeout' =>
Expand Down
7 changes: 4 additions & 3 deletions woo-pagarme-payments.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php
/*
* Plugin Name: Pagar.me module for Woocommerce
* Plugin Name: Pagar.me for Woocommerce
* Version: 3.2.2
* Author: Pagar.me
* Author URI: https://pagar.me
* License: GPL2
* Description: Enable Pagar.me Gateway for WooCommerce
* Requires at least: 4.1
* Requires at least: 5.0
* Tested up to: 6.3.1
* WC requires at least: 3.9.0
* WC tested up to: 8.2.0
* WC tested up to: 8.8
* Domain Path: /languages
* Requires Plugins: woocommerce
* Text Domain: woo-pagarme-payments
*/

Expand Down

0 comments on commit c83f4d3

Please sign in to comment.