Skip to content

Commit

Permalink
Merge pull request #83 from luizbills/fix-i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills authored Sep 22, 2023
2 parents 282d0bc + 03bead6 commit 0cb085d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
4 changes: 2 additions & 2 deletions core/Dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ protected static function display_notice_missing_deps ( $messages ) {
echo "<div class='notice notice-error'><p>";
echo sprintf(
/* translators: %s is replaced with plugin name */
__( 'The %s plugin needs the following dependencies to work:', 'your-text-domain' ),
__( 'The %s plugin needs the following dependencies to work:', 'wc-shipping-simulator' ),
"<strong>" . Config::get( 'NAME' ) . "</strong>",
);

$indent = \str_repeat( '&nbsp;', 4 );
$missing = esc_html__( 'Missing', 'your-text-domain' );
$missing = esc_html__( 'Missing', 'wc-shipping-simulator' );
$allowed_html = [
'a' => [ 'href' => [], 'target' => [] ],
'span' => [ 'class' => [], 'style' => [] ],
Expand Down
Binary file modified languages/wc-shipping-simulator-pt_BR.mo
Binary file not shown.
17 changes: 13 additions & 4 deletions languages/wc-shipping-simulator-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Shipping Simulator for WooCommerce 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/shipping-"
"simulator-for-woocommerce\n"
"POT-Creation-Date: 2023-09-19T16:16:41-03:00\n"
"PO-Revision-Date: 2023-09-19 16:17-0300\n"
"POT-Creation-Date: 2023-09-22T14:38:15-03:00\n"
"PO-Revision-Date: 2023-09-22 14:39-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -302,6 +302,15 @@ msgstr "Ocorreu um erro inesperado. Recarregue a página e tente novamente."
msgid "Shipping options for"
msgstr "Opções de frete para"

#. translators: %s is replaced with plugin name
#: core/Dependencies.php:120
msgid "The %s plugin needs the following dependencies to work:"
msgstr "O plugin %s requer as seguintes dependências para funcionar:"

#: core/Dependencies.php:125
msgid "Missing"
msgstr "Faltando"

#. translators: %s is replaced with a required plugin name
#: dependencies.php:12
msgid "Install and activate the %s plugin."
Expand Down Expand Up @@ -341,11 +350,11 @@ msgstr ""
msgid "Make a review"
msgstr "Faça uma avaliação"

#: templates/shipping-simulator-form.php:15
#: templates/shipping-simulator-form.php:14
msgid "Calculate shipping"
msgstr "Calcular frete"

#: templates/shipping-simulator-results.php:7
#: templates/shipping-simulator-results.php:6
msgid "Avaliable shipping options"
msgstr "Opções de frete disponíveis"

Expand Down
17 changes: 13 additions & 4 deletions languages/wc-shipping-simulator.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPLv3.
msgid ""
msgstr ""
"Project-Id-Version: Shipping Simulator for WooCommerce 2.3.0\n"
"Project-Id-Version: Shipping Simulator for WooCommerce 2.3.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/shipping-simulator-for-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-09-19T16:16:41-03:00\n"
"POT-Creation-Date: 2023-09-22T14:38:15-03:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: wc-shipping-simulator\n"
Expand Down Expand Up @@ -266,6 +266,15 @@ msgstr ""
msgid "Shipping options for"
msgstr ""

#. translators: %s is replaced with plugin name
#: core/Dependencies.php:120
msgid "The %s plugin needs the following dependencies to work:"
msgstr ""

#: core/Dependencies.php:125
msgid "Missing"
msgstr ""

#. translators: %s is replaced with a required plugin name
#: dependencies.php:12
msgid "Install and activate the %s plugin."
Expand Down Expand Up @@ -299,10 +308,10 @@ msgstr ""
msgid "Make a review"
msgstr ""

#: templates/shipping-simulator-form.php:15
#: templates/shipping-simulator-form.php:14
msgid "Calculate shipping"
msgstr ""

#: templates/shipping-simulator-results.php:7
#: templates/shipping-simulator-results.php:6
msgid "Avaliable shipping options"
msgstr ""

0 comments on commit 0cb085d

Please sign in to comment.