From a618b263cf3c58227072c37c13397e87ba2d2308 Mon Sep 17 00:00:00 2001 From: Andre Kutianski Date: Mon, 13 Nov 2023 16:54:36 -0300 Subject: [PATCH] WIP: feat-80 (#82) - Adiciona opcao para possibilitar o destaque (subtracao) do valor do frete na NFSe * core: Declaring extension incompatibility with High-Performance Order Storage (HPOS) * repo: update git ignore * feat: adiciona destaque do frete do calculo de impostos Adiciona opcao para possibilitar o destaque (subtracao) do valor do frete do calculo dos impostos da NF. ref: #80 * update translations * refact: change access to order id property Change direct access to id to object method get_id * build: update grunt packages and scripts Update grunt packages and add wp-env to dev dependencies. --- .gitignore | 66 +-- .wp-env.json | 11 + Gruntfile.js | 9 +- includes/admin/class-ajax.php | 10 +- includes/admin/class-api.php | 32 +- includes/admin/class-settings.php | 19 +- languages/en.mo | Bin 0 -> 14748 bytes languages/en.po | 748 ++++++++++++++++++++++++++++++ languages/pt_BR.mo | Bin 0 -> 14925 bytes languages/pt_BR.po | 748 ++++++++++++++++++++++++++++++ languages/woo-nfe.pot | 403 +++++++++------- package.json | 15 +- woo-nfe.php | 21 +- 13 files changed, 1859 insertions(+), 223 deletions(-) create mode 100644 .wp-env.json create mode 100644 languages/en.mo create mode 100644 languages/en.po create mode 100644 languages/pt_BR.mo create mode 100644 languages/pt_BR.po diff --git a/.gitignore b/.gitignore index 0b55174..654640b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ - -# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,windows,phpstorm,wordpress,phpcodesniffer,node -# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,windows,phpstorm,wordpress,phpcodesniffer,node +# Created by https://www.toptal.com/developers/gitignore/api/node,linux,macos,windows,phpcodesniffer,phpunit,wordpress,php-cs-fixer,phpstorm+all +# Edit at https://www.toptal.com/developers/gitignore?templates=node,linux,macos,windows,phpcodesniffer,phpunit,wordpress,php-cs-fixer,phpstorm+all ### Linux ### *~ @@ -190,13 +189,24 @@ dist # SvelteKit build / generate output .svelte-kit +### PHP-CS-Fixer ### +# Covers PHP CS Fixer +# Reference: https://cs.symfony.com/ + +# Generated files +.php-cs-fixer.cache + +# Local config See: https://cs.symfony.com/doc/config.html +.php-cs-fixer.php + ### PHPCodeSniffer ### # CodeSniffer +phpcs.xml /vendor/* /wpcs/* -### PhpStorm ### +### PhpStorm+all ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 @@ -275,39 +285,29 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser -### PhpStorm Patch ### -# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 +### PhpStorm+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. -# *.iml -# modules.xml -# .idea/misc.xml -# *.ipr +.idea/* -# Sonarlint plugin -# https://plugins.jetbrains.com/plugin/7973-sonarlint -.idea/**/sonarlint/ +!.idea/codeStyles +!.idea/runConfigurations -# SonarQube Plugin -# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin -.idea/**/sonarIssues.xml +### PHPUnit ### +# Covers PHPUnit +# Reference: https://phpunit.de/ -# Markdown Navigator plugin -# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced -.idea/**/markdown-navigator.xml -.idea/**/markdown-navigator-enh.xml -.idea/**/markdown-navigator/ - -# Cache file creation bug -# See https://youtrack.jetbrains.com/issue/JBR-2257 -.idea/$CACHE_FILE$ +# Generated files +.phpunit.result.cache +.phpunit.cache -# CodeStream plugin -# https://plugins.jetbrains.com/plugin/12206-codestream -.idea/codestream.xml +# PHPUnit +/app/phpunit.xml +/phpunit.xml -# Azure Toolkit for IntelliJ plugin -# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij -.idea/**/azureSettings.xml +# Build data +/build/ ### Windows ### # Windows thumbnail cache files @@ -379,5 +379,7 @@ wp-config.php # uncomment the next line #/wp-content/themes +# rsync script +rsync.sh -# End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows,phpstorm,wordpress,phpcodesniffer,node +# End of https://www.toptal.com/developers/gitignore/api/node,linux,macos,windows,phpcodesniffer,phpunit,wordpress,php-cs-fixer,phpstorm+all diff --git a/.wp-env.json b/.wp-env.json new file mode 100644 index 0000000..cc27f58 --- /dev/null +++ b/.wp-env.json @@ -0,0 +1,11 @@ +{ + "core": null, + "phpVersion": "8.1", + "plugins": [ + "WordPress/woocommerce", + "WordPress/woocommerce-extra-checkout-fields-for-brazil" + ], + "mappings": { + "wp-content/plugins/woo-nfe": "." + } +} diff --git a/Gruntfile.js b/Gruntfile.js index c09a35c..1ab4cf9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,6 @@ module.exports = grunt => { require('load-grunt-tasks')(grunt); - + grunt.loadNpmTasks( 'grunt-wp-i18n' ); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), @@ -33,6 +33,13 @@ module.exports = grunt => { ], expand: true } + }, + makepot: { + target: { + options: { + type: 'wp-plugin' + } + } } }); }; diff --git a/includes/admin/class-ajax.php b/includes/admin/class-ajax.php index b4d9bd2..0d9f01f 100644 --- a/includes/admin/class-ajax.php +++ b/includes/admin/class-ajax.php @@ -40,14 +40,14 @@ public static function front_issue() { $order = nfe_wc_get_order( absint( $nfe_issue ) ); // Bail if there is no order id or it is false. - if ( empty( $order->id ) || ! $order ) { + if ( empty( $order->get_id() ) ) { return; } - if ( ! nfe_order_address_filled( $order->id ) ) { + if ( ! nfe_order_address_filled( $order->get_id() ) ) { wc_add_notice( __( 'The order is missing important NFe information, update it before trying to issue it.', 'woo-nfe' ), 'error' ); } else { - NFe_Woo()->issue_invoice( array( $order->id ) ); + NFe_Woo()->issue_invoice( array( $order->get_id() ) ); wc_add_notice( __( 'NFe was issued successfully.', 'woo-nfe' ) ); } @@ -69,11 +69,11 @@ public static function front_download_pdf() { $order = nfe_wc_get_order( absint( $nfe_download_pdf ) ); // Bail if there is no order id or it is false. - if ( empty( $order->id ) || ! $order ) { + if ( empty( $order->get_id() ) ) { return; } - self::download_pdf( $order->id ); + self::download_pdf( $order->get_id() ); } /** diff --git a/includes/admin/class-api.php b/includes/admin/class-api.php index c39842b..af127d8 100755 --- a/includes/admin/class-api.php +++ b/includes/admin/class-api.php @@ -195,6 +195,25 @@ public function order_info( $order_id ) { // Get order object. $order = nfe_wc_get_order( $order_id ); + // if tax formation is exclude shipping, remove shipping from total. + if($this->highlight_shipping_tax() == 'exclude_shipping') { + // subtract shipping from total. + $servicesAmount = $order->get_total() - $order->get_shipping_total(); + // get invoice info. + $invoiceInfo = $this->remover_caracter( $this->city_service_info( 'desc', $order_id ) ); + // build shipping info line + $shippingInfo = __('Shipping', 'woo-nfe') . ": " . $order->get_shipping_method(); + // build shipping value line + $shippingValueDescription = __('Shipping Value', 'woo-nfe') . ": " . $order->get_shipping_total() . $order->get_currency(); + // final description + $servicesDescription = $this->remover_caracter("{$invoiceInfo} \n $shippingInfo \n $shippingValueDescription"); + } else { + // if tax formation is include shipping, keep shipping in total. + $servicesAmount = $order->get_total(); + // get invoice info. + $servicesDescription = $this->remover_caracter( $this->city_service_info( 'desc', $order_id ) ); + } + $address = array( 'postalCode' => $this->check_customer_info( 'cep', $order_id ), 'street' => $this->remover_caracter( $this->check_customer_info( 'street', $order_id ) ), @@ -219,8 +238,8 @@ public function order_info( $order_id ) { $data = array( 'cityServiceCode' => $this->city_service_info( 'code', $order_id ), 'federalServiceCode' => $this->city_service_info( 'fed_code', $order_id ), - 'description' => $this->remover_caracter( $this->city_service_info( 'desc', $order_id ) ), - 'servicesAmount' => $order->get_total(), + 'description' => $servicesDescription, + 'servicesAmount' => $servicesAmount, 'borrower' => $borrower, ); @@ -325,6 +344,15 @@ public function get_company() { return nfe_get_field( 'choose_company' ); } + /** + * Highlight Shipping fees from the order taxes. + * @return string + */ + public function highlight_shipping_tax() + { + return nfe_get_field( 'highlight_shipping_tax' ); + } + /** * Logging method. * diff --git a/includes/admin/class-settings.php b/includes/admin/class-settings.php index 20cab1b..b5d45b8 100755 --- a/includes/admin/class-settings.php +++ b/includes/admin/class-settings.php @@ -52,7 +52,9 @@ public function init_form_fields() { } if ( $this->has_api_key() ) { - $lists = $this->get_companies(); + // Get companies. If no companies, return an empty array. + $lists = $this->get_companies() ? $this->get_companies() : array(); +// $lists = $this->get_companies(); if ( empty( $lists ) ) { $company_list = array_merge( array( '' => __( 'No company found', 'woo-nfe' ) ), $lists ); @@ -139,8 +141,21 @@ public function init_form_fields() { 'css' => 'min-width:300px;', 'desc_tip' => __( 'Does an address is required to issue a NFe?', 'woo-nfe' ), ), + 'highlight_shipping_tax' => array( + 'title' => __('Highlight shipping from taxes', 'woo-nfe'), + 'type' => 'select', + 'label' => __('Highlight shipping from taxes', 'woo-nfe'), + 'default' => 'include_shipping', + 'options' => array( + 'include_shipping' => __('Include Shipping fees on tax calculation', 'woo-nfe'), + 'exclude_shipping' => __('Exclude Shipping fees on tax calculation', 'woo-nfe'), + ), + 'class' => 'wc-enhanced-select', + 'css' => 'min-width:300px;', + 'desc_tip' => __('Tax Formation: total + shipping will considerate ship value on tax calculation. Total - shipping will not considerate ship value on tax calculation.', 'woo-nfe'), + ), 'nfe_events_title' => array( - 'title' => __( 'NFe.io Webkook Setup', 'woo-nfe' ), + 'title' => __( 'NFe.io Webhook Setup', 'woo-nfe' ), 'type' => 'title', ), 'nfe_webhook_url' => array( diff --git a/languages/en.mo b/languages/en.mo new file mode 100644 index 0000000000000000000000000000000000000000..32a5533fdf596ff06df05361854ba8d4b55e52ad GIT binary patch literal 14748 zcmeI23ydArdB+db;bEQz!lNb0v9XN}zIVMiJi2~i?|QMpkHx!S9!;9rd(YlG+1Z)P z%v`URCJm1iLY^f&i&V8zBT*%^5^aJ+Q=|$a(zI2pHc?X4hE_ysQYnoBk!TgQsK5W2 znY(w_%cE7)hqNPq{>{vt^ZL&BedjyJe)*ggj~K4Ukc*LTtu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GBw z!7fN47F?D$tQQx~>&i@;3 zNWHA7GDkChXxEsXA)$zz84sqEZj$hMHy}U|EW8)bwjCLlZTJk2712AZ4M&>PwewI^Lr9Gy) zu{SFMm~n+zX$aLR>?(HJxG&`RMUMd&i(>(-d3=s-{){c2ZB2=CW+q6bMyuWW5LL4K zwU^H)EPgvd6wGj*R68%FGS-J8ufBzu80PLPs4c2MPW{d+F%wKm-!5LxXNyAw|5LFv zNdr}W?|WHo)`KWZ=J&9ZPU)>SgjlCc(wFm9E-abH+E-0FA{Prr zI#(KkcQ(HlMtS_=_ZBh_)|DA7IB&3ewd}s#*X>~@nye#!(_4g<;XPyh4S7`@SBF>N ze1p|O?lno8vfBFO-fyy(>O!$0_x|d;%oG>PhJwCd4CIQ7hOC~Tng#1~vHE7+$q&oL z*>JkL-R}Yp8z!TG-6vk5&8KRsrlkCM$ZpfnInCKN;BS_y{=c*QzikJ~bmGlAz!1y9 zYpW8nqiW%6O!+{Wrm%itWp#5?u@hy8J|R@0BEqq~LKQ45eos(DLOxe?l(q{^do5QQ zuA3@Ty6NzKv&h>PKP$hwl_utoOm1^&QdDb5P?pMwd{=w>&T1+a&Yp70Z1I9}{IbAT z)w)tP)o61x#33eHQf=s?b@?ioFvD_M5)vF`pddoRXS$o_DgLfq@q3V0W_4 zbPupUADB&&8tnaC?AcB19HZ0F*7*&6(Gnx8CTYcZ;W#F9com0hIcq|vJgDJWMKdMI zqzlF7LcQ2z+xbkS&E*USW?_c~s7!g)edS4V#@fDSjU!YkbI2=S(~C;!vp@B>)u>mF9jYC6M?%s receipt issued" +msgid_plural "%s receipts issued" +msgstr[0] "%s receipt issued" +msgstr[1] "%s receipts issued" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:133 +msgid "%s receipt processing" +msgid_plural "%s receipts processing" +msgstr[0] "%s receipt processing" +msgstr[1] "%s receipts processing" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:142 +msgid "%s receipt with error" +msgid_plural "%s receipts with error" +msgstr[0] "%s receipt with error" +msgstr[1] "%s receipts with error" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:151 +msgid "%s receipt cancelled" +msgid_plural "%s receipts cancelled" +msgstr[0] "%s receipt cancelled" +msgstr[1] "%s receipts cancelled" + +#: includes/admin/class-admin.php:167 includes/admin/class-settings.php:241 +#: includes/admin/class-settings.php:246 +msgid "WooCommerce NFe" +msgstr "WooCommerce NFe" + +#: includes/admin/class-admin.php:186 includes/admin/class-admin.php:255 +#: includes/admin/class-settings.php:199 +msgid "City Service Code (CityServiceCode)" +msgstr "City Service Code (CityServiceCode)" + +#: includes/admin/class-admin.php:189 includes/admin/class-admin.php:257 +#: includes/admin/class-settings.php:203 +msgid "" +"City Service Code, this is the code that will identify to the cityhall which " +"type of service you are delivering." +msgstr "" +"City Service Code, this is the code that will identify to the cityhall which " +"type of service you are delivering." + +#: includes/admin/class-admin.php:197 includes/admin/class-admin.php:265 +#: includes/admin/class-settings.php:206 +msgid "Federal Service Code LC 116 (FederalServiceCode)" +msgstr "Federal Service Code LC 116 (FederalServiceCode)" + +#: includes/admin/class-admin.php:200 includes/admin/class-admin.php:267 +#: includes/admin/class-settings.php:210 +msgid "" +"Service Code based on the Federal Law (LC 116), this is a federal code that " +"will identify to the cityhall which type of service you are delivering." +msgstr "" +"Service Code based on the Federal Law (LC 116), this is a federal code that " +"will identify to the cityhall which type of service you are delivering." + +#: includes/admin/class-admin.php:208 includes/admin/class-admin.php:275 +#: includes/admin/class-settings.php:213 includes/admin/class-settings.php:215 +msgid "Service Description" +msgstr "Service Description" + +#: includes/admin/class-admin.php:211 includes/admin/class-admin.php:277 +#: includes/admin/class-settings.php:217 +msgid "" +"Put the description that will appear in the receipt. This description must " +"explain in detail what service was delivered. Ask your accountant, if in " +"doubt." +msgstr "" +"Put the description that will appear in the receipt. This description must " +"explain in detail what service was delivered. Ask your accountant, if in " +"doubt." + +#: includes/admin/class-admin.php:329 +msgid "Download NFe receipt" +msgstr "Download NFe receipt" + +#: includes/admin/class-admin.php:333 +msgid "Issue NFe receipt" +msgstr "Issue NFe receipt" + +#: includes/admin/class-admin.php:346 +msgid "NFe receipt downloaded." +msgstr "NFe receipt downloaded." + +#: includes/admin/class-admin.php:373 +msgid "Sales Receipt updated via NFe.io API" +msgstr "Sales Receipt updated via NFe.io API" + +#: includes/admin/class-admin.php:373 includes/frontend/class-frontend.php:68 +msgid "Sales Receipt" +msgstr "Sales Receipt" + +#: includes/admin/class-admin.php:400 includes/frontend/class-frontend.php:97 +#: includes/nfe-functions.php:182 +msgid "NFe Cancelled" +msgstr "NFe Cancelled" + +#: includes/admin/class-admin.php:405 includes/frontend/class-frontend.php:103 +#: includes/nfe-functions.php:181 +msgid "NFe Issued" +msgstr "NFe Issued" + +#: includes/admin/class-admin.php:410 includes/frontend/class-frontend.php:109 +#: includes/nfe-functions.php:183 +msgid "NFe Cancelling Failed" +msgstr "NFe Cancelling Failed" + +#: includes/admin/class-admin.php:415 includes/frontend/class-frontend.php:115 +#: includes/nfe-functions.php:184 +msgid "NFe Issuing Failed" +msgstr "NFe Issuing Failed" + +#: includes/admin/class-admin.php:420 includes/frontend/class-frontend.php:127 +#: includes/nfe-functions.php:177 +msgid "Processing NFe" +msgstr "Processing NFe" + +#: includes/admin/class-admin.php:426 includes/frontend/class-frontend.php:121 +#: includes/nfe-functions.php:185 +msgid "NFe Processing" +msgstr "NFe Processing" + +#: includes/admin/class-admin.php:432 +msgid "Zero Order" +msgstr "Zero Order" + +#: includes/admin/class-admin.php:437 includes/frontend/class-frontend.php:134 +msgid "Pending Address" +msgstr "Pending Address" + +#: includes/admin/class-admin.php:444 includes/admin/class-admin.php:455 +#: includes/frontend/class-frontend.php:148 +#: includes/frontend/class-frontend.php:161 +msgid "Issue NFe" +msgstr "Issue NFe" + +#: includes/admin/class-admin.php:449 includes/frontend/class-frontend.php:154 +msgid "Issue Expired" +msgstr "Issue Expired" + +#: includes/admin/class-admin.php:483 +msgid "Receipts Details (NFE.io)" +msgstr "Receipts Details (NFE.io)" + +#: includes/admin/class-admin.php:488 +msgid "Status: " +msgstr "Status: " + +#: includes/admin/class-admin.php:494 +msgid "Number: " +msgstr "Number: " + +#: includes/admin/class-admin.php:500 +msgid "CheckCode: " +msgstr "CheckCode: " + +#: includes/admin/class-admin.php:506 +msgid "Issued On: " +msgstr "Issued On: " + +#: includes/admin/class-admin.php:512 +msgid "Price: " +msgstr "Price: " + +#: includes/admin/class-admin.php:519 +msgid "Fatura: " +msgstr "Fatura: " + +#: includes/admin/class-admin.php:531 includes/admin/class-admin.php:534 +msgid "Plugin Custom Fields: " +msgstr "Plugin Custom Fields: " + +#: includes/admin/class-admin.php:583 +msgid "NFe Details" +msgstr "NFe Details" + +#: includes/admin/class-admin.php:586 +msgid "Status" +msgstr "Status" + +#: includes/admin/class-admin.php:591 +msgid "Number" +msgstr "Number" + +#: includes/admin/class-admin.php:596 +msgid "CheckCode" +msgstr "CheckCode" + +#: includes/admin/class-admin.php:601 +msgid "Issued On" +msgstr "Issued On" + +#: includes/admin/class-ajax.php:48 +msgid "" +"The order is missing important NFe information, update it before trying to " +"issue it." +msgstr "" +"The order is missing important NFe information, update it before trying to " +"issue it." + +#: includes/admin/class-ajax.php:52 +msgid "NFe was issued successfully." +msgstr "NFe was issued successfully." + +#. translators: Log message. +#: includes/admin/class-api.php:67 +msgid "NFe issuing process started! Order: #%d" +msgstr "NFe issuing process started! Order: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:75 +msgid "second attempt to send the same NFE: #%d" +msgstr "second attempt to send the same NFE: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:84 +msgid "Not possible to issue NFe without an order value! Order: #%d" +msgstr "Not possible to issue NFe without an order value! Order: #%d" + +#: includes/admin/class-api.php:95 +msgid "There was a problem fetching IBGE code! Check your CEP information." +msgstr "There was a problem fetching IBGE code! Check your CEP information." + +#. translators: Log message. +#: includes/admin/class-api.php:113 +msgid "An error occurred while issuing a NFe: %s" +msgstr "An error occurred while issuing a NFe: %s" + +#. translators: Log message. +#: includes/admin/class-api.php:121 +msgid "NFe sent sucessfully to issue! Order: #%d" +msgstr "NFe sent sucessfully to issue! Order: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:141 includes/admin/class-webhook.php:94 +msgid "" +"There was a problem while updating the Order #%d with the NFe information." +msgstr "" +"There was a problem while updating the Order #%d with the NFe information." + +#. translators: Log message. +#: includes/admin/class-api.php:171 +msgid "NFe PDF Donwload successfully. Order: #%d" +msgstr "NFe PDF Donwload successfully. Order: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:176 +msgid "There was a problem when trying to download NFe PDF! Error: %s" +msgstr "There was a problem when trying to download NFe PDF! Error: %s" + +#: includes/admin/class-api.php:205 +msgid "Shipping" +msgstr "Shipping" + +#: includes/admin/class-api.php:207 +msgid "Shipping Value" +msgstr "Shipping Value" + +#: includes/admin/class-api.php:576 +msgid "Customers" +msgstr "Customers" + +#: includes/admin/class-api.php:580 +msgid "Company" +msgstr "Company" + +#: includes/admin/class-settings.php:26 +msgid "Receipts (NFE.io)" +msgstr "Receipts (NFE.io)" + +#: includes/admin/class-settings.php:27 +msgid "This is the NFe.io integration/settings page." +msgstr "This is the NFe.io integration/settings page." + +#: includes/admin/class-settings.php:51 +msgid "" +"Ver detalhes" +msgstr "" +"Ver detalhes" + +#: includes/admin/class-settings.php:60 +msgid "No company found" +msgstr "No company found" + +#: includes/admin/class-settings.php:62 +msgid "Select a company..." +msgstr "Select a company..." + +#: includes/admin/class-settings.php:66 +msgid "Enter your API key to see your company(ies)." +msgstr "Enter your API key to see your company(ies)." + +#: includes/admin/class-settings.php:72 +msgid "Custom Fields Plugin" +msgstr "Custom Fields Plugin" + +#: includes/admin/class-settings.php:80 +msgid "Enable/Disable" +msgstr "Enable/Disable" + +#: includes/admin/class-settings.php:82 +msgid "Enable NFe.io" +msgstr "Enable NFe.io" + +#: includes/admin/class-settings.php:86 includes/admin/class-settings.php:88 +msgid "API Key" +msgstr "API Key" + +#: includes/admin/class-settings.php:90 +msgid "%s to look up API Key" +msgstr "%s to look up API Key" + +#: includes/admin/class-settings.php:90 includes/admin/class-settings.php:101 +msgid "Click here" +msgstr "Click here" + +#: includes/admin/class-settings.php:93 includes/admin/class-settings.php:95 +msgid "Choose the Company" +msgstr "Choose the Company" + +#: includes/admin/class-settings.php:100 +msgid "Choose one of your companies." +msgstr "Choose one of your companies." + +#: includes/admin/class-settings.php:101 +msgid "%s to check the registered companies" +msgstr "%s to check the registered companies" + +#: includes/admin/class-settings.php:104 includes/admin/class-settings.php:106 +msgid "NFe Issuing" +msgstr "NFe Issuing" + +#: includes/admin/class-settings.php:109 +msgid "Automattic (Default)" +msgstr "Automattic (Default)" + +#: includes/admin/class-settings.php:110 +msgid "Manual" +msgstr "Manual" + +#: includes/admin/class-settings.php:114 includes/admin/class-settings.php:129 +msgid "Option to issue a NFe." +msgstr "Option to issue a NFe." + +#: includes/admin/class-settings.php:117 includes/admin/class-settings.php:119 +msgid "Issue on order status" +msgstr "Issue on order status" + +#: includes/admin/class-settings.php:132 +msgid "Require address to issue" +msgstr "Require address to issue" + +#: includes/admin/class-settings.php:134 includes/admin/class-settings.php:142 +msgid "Does an address is required to issue a NFe?" +msgstr "Does an address is required to issue a NFe?" + +#: includes/admin/class-settings.php:137 +msgid "Yes (Default)" +msgstr "Yes (Default)" + +#: includes/admin/class-settings.php:138 +msgid "No" +msgstr "No" + +#: includes/admin/class-settings.php:145 includes/admin/class-settings.php:147 +msgid "Highlight shipping from taxes" +msgstr "Highlight shipping from taxes" + +#: includes/admin/class-settings.php:150 +msgid "Include Shipping fees on tax calculation" +msgstr "Include Shipping fees on tax calculation" + +#: includes/admin/class-settings.php:151 +msgid "Exclude Shipping fees on tax calculation" +msgstr "Exclude Shipping fees on tax calculation" + +#: includes/admin/class-settings.php:155 +msgid "" +"Tax Formation: total + shipping will considerate ship value on tax " +"calculation. Total - shipping will not considerate ship value on tax " +"calculation." +msgstr "" +"Tax Formation: total + shipping will considerate ship value on tax " +"calculation. Total - shipping will not considerate ship value on tax " +"calculation." + +#: includes/admin/class-settings.php:158 +msgid "NFe.io Webhook Setup" +msgstr "NFe.io Webhook Setup" + +#: includes/admin/class-settings.php:162 includes/admin/class-settings.php:164 +msgid "Webhook URL" +msgstr "Webhook URL" + +#: includes/admin/class-settings.php:169 +msgid "Copy this link and use it to set up the %s" +msgstr "Copy this link and use it to set up the %s" + +#: includes/admin/class-settings.php:169 +msgid "NFe.io Webhooks" +msgstr "NFe.io Webhooks" + +#: includes/admin/class-settings.php:172 +msgid "Manual Retroactive Issue of NFe" +msgstr "Manual Retroactive Issue of NFe" + +#: includes/admin/class-settings.php:176 +msgid "Enable Retroactive Issue" +msgstr "Enable Retroactive Issue" + +#: includes/admin/class-settings.php:178 +msgid "Enable to issue NFe.io in past products" +msgstr "Enable to issue NFe.io in past products" + +#: includes/admin/class-settings.php:180 +msgid "" +"Enabling this allows users to issue nfe.io notes on bought products in the " +"past." +msgstr "" +"Enabling this allows users to issue nfe.io notes on bought products in the " +"past." + +#: includes/admin/class-settings.php:183 +msgid "Days in the past" +msgstr "Days in the past" + +#: includes/admin/class-settings.php:187 +msgid "Days in the past to allow NFe manual issue." +msgstr "Days in the past to allow NFe manual issue." + +#: includes/admin/class-settings.php:190 +msgid "Receipt Service Settings" +msgstr "Receipt Service Settings" + +#: includes/admin/class-settings.php:193 +msgid "" +"If you are in doubt on how to fill the fields below, ask for help from you " +"accountant or get in contact with our team via %2$s" +msgstr "" +"If you are in doubt on how to fill the fields below, ask for help from you " +"accountant or get in contact with our team via %2$s" + +#: includes/admin/class-settings.php:201 +msgid "City Service Code" +msgstr "City Service Code" + +#: includes/admin/class-settings.php:208 +msgid "Federal Service Code" +msgstr "Federal Service Code" + +#: includes/admin/class-settings.php:220 +msgid "Debug Log" +msgstr "Debug Log" + +#: includes/admin/class-settings.php:222 +msgid "Enable logging" +msgstr "Enable logging" + +#: includes/admin/class-settings.php:224 +msgid "Log events such as API requests, you can check this log in %s." +msgstr "Log events such as API requests, you can check this log in %s." + +#: includes/admin/class-settings.php:224 +msgid "System Status - Logs" +msgstr "System Status - Logs" + +#: includes/admin/class-settings.php:241 +msgid "" +"Plugin is enabled but no API key was provided. You should inform your API " +"Key. %s" +msgstr "" +"Plugin is enabled but no API key was provided. You should inform your API " +"Key. %s" + +#: includes/admin/class-settings.php:241 +msgid "Click here to configure!" +msgstr "Click here to configure!" + +#: includes/admin/class-settings.php:246 +msgid "Enable Retroactive Issue is enabled, but no days was added. %s." +msgstr "Enable Retroactive Issue is enabled, but no days was added. %s." + +#: includes/admin/class-settings.php:246 +msgid "Add a date to calculate or disable it." +msgstr "Add a date to calculate or disable it." + +#: includes/admin/class-settings.php:254 +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:22 +#: includes/admin/views/html-notice-missing-woocommerce.php:22 +msgid "WooCommerce NFe.io" +msgstr "WooCommerce NFe.io" + +#: includes/admin/class-settings.php:254 +msgid "Unable to load the companies list from NFe.io." +msgstr "Unable to load the companies list from NFe.io." + +#. translators: Fired when a new webhook is called. +#: includes/admin/class-webhook.php:42 +msgid "New webhook called. %s" +msgstr "New webhook called. %s" + +#. translators: Error message from event. +#: includes/admin/class-webhook.php:48 includes/admin/class-webhook.php:70 +msgid "Error: %s." +msgstr "Error: %s." + +#: includes/admin/class-webhook.php:66 +msgid "Starting to proccess new webhook event." +msgstr "Starting to proccess new webhook event." + +#: includes/admin/class-webhook.php:69 includes/admin/class-webhook.php:72 +msgid "Error while checking webhook JSON." +msgstr "Error while checking webhook JSON." + +#: includes/admin/class-webhook.php:75 +msgid "Getting Order ID of the webhook." +msgstr "Getting Order ID of the webhook." + +#: includes/admin/class-webhook.php:78 +msgid "Updating Order with NFe info." +msgstr "Updating Order with NFe info." + +#. translators: Order updated with its status. +#: includes/admin/class-webhook.php:99 +msgid "Order updated. Order: #%1$d NFe status: %2$s." +msgstr "Order updated. Order: #%1$d NFe status: %2$s." + +#. translators: Order with receipt number. +#: includes/admin/class-webhook.php:117 includes/admin/class-webhook.php:120 +msgid "Order with receipt number #%d not found." +msgstr "Order with receipt number #%d not found." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:26 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:29 +msgid "NFe Receipt Issued" +msgstr "NFe Receipt Issued" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:27 +msgid "" +"Safe copy emails are sent when a customer issues an receipt. The e-mail is " +"sent to the admin as a saving measure." +msgstr "" +"Safe copy emails are sent when a customer issues an receipt. The e-mail is " +"sent to the admin as a saving measure." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:133 +msgid "Enable this email notification" +msgstr "Enable this email notification" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:139 +msgid "" +"This controls the email subject line. Leave blank to use the default " +"subject: %s." +msgstr "" +"This controls the email subject line. Leave blank to use the default " +"subject: %s." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:146 +msgid "" +"This controls the main heading contained within the email notification. " +"Leave blank to use the default heading: %s." +msgstr "" +"This controls the main heading contained within the email notification. " +"Leave blank to use the default heading: %s." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:153 +msgid "Choose which format of email to send." +msgstr "Choose which format of email to send." + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "The WooCommerce NFe plugin" +msgstr "The WooCommerce NFe plugin" + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "needs the %s to work!" +msgstr "needs the %s to work!" + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "SOAP module" +msgstr "SOAP module" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:22 +msgid "" +"depends on the lastest version of WooCommerce Extra Checkout Fields for " +"Brazil to work!" +msgstr "" +"depends on the lastest version of WooCommerce Extra Checkout Fields for " +"Brazil to work!" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:27 +msgid "Active WooCommerce Extra Checkout Fields for Brazil" +msgstr "Active WooCommerce Extra Checkout Fields for Brazil" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:39 +msgid "Install WooCommerce Extra Checkout Fields for Brazil" +msgstr "Install WooCommerce Extra Checkout Fields for Brazil" + +#: includes/admin/views/html-notice-missing-woocommerce.php:22 +msgid "depends on the last version of WooCommerce to work!" +msgstr "depends on the last version of WooCommerce to work!" + +#: includes/admin/views/html-notice-missing-woocommerce.php:27 +msgid "Active WooCommerce" +msgstr "Active WooCommerce" + +#: includes/admin/views/html-notice-missing-woocommerce.php:39 +msgid "Install WooCommerce" +msgstr "Install WooCommerce" + +#: includes/frontend/class-frontend.php:41 +msgid "" +"The following address will also be used when issuing a NFe " +"Sales Receipt." +msgstr "" +"The following address will also be used when issuing a NFe " +"Sales Receipt." + +#: includes/frontend/class-frontend.php:51 +msgid "" +"The following address(es) will be used on the checkout page by default and " +"also when issuing a NFe sales receipt." +msgstr "" +"The following address(es) will be used on the checkout page by default and " +"also when issuing a NFe sales receipt." + +#: includes/frontend/class-frontend.php:140 +msgid "Download NFe" +msgstr "Download NFe" + +#: templates/emails/nfe-receipt-issued.php:21 +#: templates/emails/plain/nfe-receipt-issued.php:18 +msgid "NFe issued successfully. Here follows an email for your backing." +msgstr "NFe issued successfully. Here follows an email for your backing." + +#: woo-nfe.php:175 +msgid "Settings" +msgstr "Settings" + +#. Plugin Name of the plugin/theme +msgid "NFe for Woocommerce" +msgstr "NFe for Woocommerce" + +#. Plugin URI of the plugin/theme +msgid "https://github.com/nfe/woo-nfe" +msgstr "https://github.com/nfe/woo-nfe" + +#. Description of the plugin/theme +msgid "Extension for connecting to NFe.io API" +msgstr "Extension for connecting to NFe.io API" + +#. Author of the plugin/theme +msgid "NFe.io" +msgstr "NFe.io" + +#. Author URI of the plugin/theme +msgid "https://nfe.io" +msgstr "https://nfe.io" + +#: includes/admin/class-settings.php:122 +msgctxt "Order status" +msgid "Pending Payment" +msgstr "Pending Payment" + +#: includes/admin/class-settings.php:123 +msgctxt "Order status" +msgid "Processing" +msgstr "Processing" + +#: includes/admin/class-settings.php:124 +msgctxt "Order status" +msgid "On Hold" +msgstr "On Hold" + +#: includes/admin/class-settings.php:125 +msgctxt "Order status" +msgid "Completed" +msgstr "Completed" + +#. translators: placeholder is {blogname}, a variable that will be substituted +#. when email is sent out. +#: includes/admin/emails/class-nfe-email-receipt-issued.php:32 +msgctxt "" +"default email subject for safe copy emails sent to the admin or a custom " +"email chosen in the NFe settings page" +msgid "[%s] NFe Receipt Issued" +msgstr "[%s] NFe Receipt Issued" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:131 +msgctxt "an email notification" +msgid "Enable/Disable" +msgstr "Enable/Disable" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:137 +msgctxt "of an email" +msgid "Subject" +msgstr "Subject" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:144 +msgctxt "" +"Name the setting that controls the main heading contained within the email " +"notification" +msgid "Email Heading" +msgstr "Email Heading" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:151 +msgctxt "text, html or multipart" +msgid "Email type" +msgstr "Email type" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:157 +msgctxt "email type" +msgid "Plain text" +msgstr "Plain text" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:158 +msgctxt "email type" +msgid "HTML" +msgstr "HTML" diff --git a/languages/pt_BR.mo b/languages/pt_BR.mo new file mode 100644 index 0000000000000000000000000000000000000000..26fe7cec8e1625ef1a34b113bca2603b8f632e82 GIT binary patch literal 14925 zcmd^_d5|1eeaG7%uq|U_nj&-cC8 zGd;Vjqe%YC)V}@p`QGpS?)Q8BkJoPbK)~<4wCB=(bxRO@7Tk9^|M<;3B?ztu?*g9z zE`yJQ?*Na1ue&k`4ugLNPJ!24{)j_ZoJPlq4z6sR$KM%eb{AEz%d=At& z{|xdMe1m^CfmU+^6zHw zo1o~s9%41Wn?Ohj_JNYyl)oN>5;6)1aQe*JB2%--kfy_s@a+1)t)d`1qHg#``v? z_bx}ccYy|!{^X$Mbq0I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{Xm{}O}3G?QGk^7_Y4~*=jg;H8+u*eU10o3((R1cazm{+Q6IVT5PHu|%5H_r z+&4_g_1V;SDpu38+qONMyQvG-pc^(4g-l~=dgNxa>5hb;oHJw}BeMQ5pE!=(rtd?xG&s20`K zTh9NcORa`FxZu8rwdC3ecF$vu>bm^3zA`ELn;93k*FhD$#W#Io@ec1OYTb`JGYIB< JDavQr{{x2%pP2vv literal 0 HcmV?d00001 diff --git a/languages/pt_BR.po b/languages/pt_BR.po new file mode 100644 index 0000000..657af09 --- /dev/null +++ b/languages/pt_BR.po @@ -0,0 +1,748 @@ +# Translation of Plugins - WooCommerce NFe - Stable (latest release) in Portuguese (Brazil) +# This file is distributed under the same license as the Plugins - WooCommerce NFe - Stable (latest release) package. +msgid "" +msgstr "" +"Project-Id-Version: Plugins - WooCommerce NFe - Stable (latest release)\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-nfe\n" +"POT-Creation-Date: 2023-11-03 17:01:36+00:00\n" +"PO-Revision-Date: 2023-11-03 20:52-0300\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Poedit 3.0.1\n" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:124 +msgid "%s receipt issued" +msgid_plural "%s receipts issued" +msgstr[0] "%s nota fiscal emitida" +msgstr[1] "%s notas fiscais emitidas" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:133 +msgid "%s receipt processing" +msgid_plural "%s receipts processing" +msgstr[0] "%s nota fiscal em processamento" +msgstr[1] "%s notas fiscais em processamento" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:142 +msgid "%s receipt with error" +msgid_plural "%s receipts with error" +msgstr[0] "%s nota fiscal com erro" +msgstr[1] "%s notas fiscais com erro" + +#. translators: %s: order count. +#: includes/admin/class-admin.php:151 +msgid "%s receipt cancelled" +msgid_plural "%s receipts cancelled" +msgstr[0] "%s nota fiscal cancelada" +msgstr[1] "%s notas fiscais canceladas" + +#: includes/admin/class-admin.php:167 includes/admin/class-settings.php:241 +#: includes/admin/class-settings.php:246 +msgid "WooCommerce NFe" +msgstr "NFe para Woocommerce" + +#: includes/admin/class-admin.php:186 includes/admin/class-admin.php:255 +#: includes/admin/class-settings.php:199 +msgid "City Service Code (CityServiceCode)" +msgstr "Código de serviço municipal (CityServiceCode)" + +#: includes/admin/class-admin.php:189 includes/admin/class-admin.php:257 +#: includes/admin/class-settings.php:203 +msgid "" +"City Service Code, this is the code that will identify to the cityhall which " +"type of service you are delivering." +msgstr "" +"Código de serviço municipal. Este é o código que identificará para a " +"Prefeitura Municipal qual o tipo de serviço você está entregando." + +#: includes/admin/class-admin.php:197 includes/admin/class-admin.php:265 +#: includes/admin/class-settings.php:206 +msgid "Federal Service Code LC 116 (FederalServiceCode)" +msgstr "Código de serviço federal LC 116 (FederalServiceCode)" + +#: includes/admin/class-admin.php:200 includes/admin/class-admin.php:267 +#: includes/admin/class-settings.php:210 +msgid "" +"Service Code based on the Federal Law (LC 116), this is a federal code that " +"will identify to the cityhall which type of service you are delivering." +msgstr "" +"Código de serviço com base na lei federal (LC 116). Este é um código federal " +"que identificará para a Prefeitura Municipal qual o tipo de serviço que você " +"está entregando." + +#: includes/admin/class-admin.php:208 includes/admin/class-admin.php:275 +#: includes/admin/class-settings.php:213 includes/admin/class-settings.php:215 +msgid "Service Description" +msgstr "Descrição do Serviço" + +#: includes/admin/class-admin.php:211 includes/admin/class-admin.php:277 +#: includes/admin/class-settings.php:217 +msgid "" +"Put the description that will appear in the receipt. This description must " +"explain in detail what service was delivered. Ask your accountant, if in " +"doubt." +msgstr "" +"Coloque a descrição que aparecerá na nota fiscal. Essa descrição deve " +"explicar em detalhes o serviço que foi entregue. Em caso de dúvida, fale com " +"seu contador." + +#: includes/admin/class-admin.php:329 +msgid "Download NFe receipt" +msgstr "Baixar nota fiscal" + +#: includes/admin/class-admin.php:333 +msgid "Issue NFe receipt" +msgstr "Emitir nota fiscal" + +#: includes/admin/class-admin.php:346 +msgid "NFe receipt downloaded." +msgstr "Nota fiscal baixada." + +#: includes/admin/class-admin.php:373 +msgid "Sales Receipt updated via NFe.io API" +msgstr "Nota fiscal de venda atualizado via API do NFe.io" + +#: includes/admin/class-admin.php:373 includes/frontend/class-frontend.php:68 +msgid "Sales Receipt" +msgstr "Notas Fiscais" + +#: includes/admin/class-admin.php:400 includes/frontend/class-frontend.php:97 +#: includes/nfe-functions.php:182 +msgid "NFe Cancelled" +msgstr "A NFe foi cancelada" + +#: includes/admin/class-admin.php:405 includes/frontend/class-frontend.php:103 +#: includes/nfe-functions.php:181 +msgid "NFe Issued" +msgstr "A NFe foi emitida" + +#: includes/admin/class-admin.php:410 includes/frontend/class-frontend.php:109 +#: includes/nfe-functions.php:183 +msgid "NFe Cancelling Failed" +msgstr "Falha no cancelamento da NFe" + +#: includes/admin/class-admin.php:415 includes/frontend/class-frontend.php:115 +#: includes/nfe-functions.php:184 +msgid "NFe Issuing Failed" +msgstr "Falha na Emissão" + +#: includes/admin/class-admin.php:420 includes/frontend/class-frontend.php:127 +#: includes/nfe-functions.php:177 +msgid "Processing NFe" +msgstr "Processando a NFe" + +#: includes/admin/class-admin.php:426 includes/frontend/class-frontend.php:121 +#: includes/nfe-functions.php:185 +msgid "NFe Processing" +msgstr "Emitindo NFe" + +#: includes/admin/class-admin.php:432 +msgid "Zero Order" +msgstr "Pedido Zerado" + +#: includes/admin/class-admin.php:437 includes/frontend/class-frontend.php:134 +msgid "Pending Address" +msgstr "Endereço pendente" + +#: includes/admin/class-admin.php:444 includes/admin/class-admin.php:455 +#: includes/frontend/class-frontend.php:148 +#: includes/frontend/class-frontend.php:161 +msgid "Issue NFe" +msgstr "Emitir NFe" + +#: includes/admin/class-admin.php:449 includes/frontend/class-frontend.php:154 +msgid "Issue Expired" +msgstr "A emissão expirou" + +#: includes/admin/class-admin.php:483 +msgid "Receipts Details (NFE.io)" +msgstr "Detalhes das Notas Fiscais (NFe.io)" + +#: includes/admin/class-admin.php:488 +msgid "Status: " +msgstr "Status: " + +#: includes/admin/class-admin.php:494 +msgid "Number: " +msgstr "Número: " + +#: includes/admin/class-admin.php:500 +msgid "CheckCode: " +msgstr "Código de verificação: " + +#: includes/admin/class-admin.php:506 +msgid "Issued On: " +msgstr "Emitida em: " + +#: includes/admin/class-admin.php:512 +msgid "Price: " +msgstr "Preço: " + +#: includes/admin/class-admin.php:519 +msgid "Fatura: " +msgstr "Fatura: " + +#: includes/admin/class-admin.php:531 includes/admin/class-admin.php:534 +msgid "Plugin Custom Fields: " +msgstr "Campos customizados do plugin: " + +#: includes/admin/class-admin.php:583 +msgid "NFe Details" +msgstr "Detalhes da Nota Fiscal" + +#: includes/admin/class-admin.php:586 +msgid "Status" +msgstr "Status" + +#: includes/admin/class-admin.php:591 +msgid "Number" +msgstr "Número" + +#: includes/admin/class-admin.php:596 +msgid "CheckCode" +msgstr "Código de verificação" + +#: includes/admin/class-admin.php:601 +msgid "Issued On" +msgstr "Emitido em" + +#: includes/admin/class-ajax.php:48 +msgid "" +"The order is missing important NFe information, update it before trying to " +"issue it." +msgstr "" +"Está faltando informações importantes para emissão da nota nesse pedido, " +"atualize as informações antes de emitir a nota." + +#: includes/admin/class-ajax.php:52 +msgid "NFe was issued successfully." +msgstr "Nota emitida com sucesso." + +#. translators: Log message. +#: includes/admin/class-api.php:67 +msgid "NFe issuing process started! Order: #%d" +msgstr "Processo de emissão de nota fiscal iniciado! Pedido: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:75 +msgid "second attempt to send the same NFE: #%d" +msgstr "" + +#. translators: Log message. +#: includes/admin/class-api.php:84 +msgid "Not possible to issue NFe without an order value! Order: #%d" +msgstr "" +"Não é possível emitir uma nota fiscal sem um valor do pedido! Pedido: #%d" + +#: includes/admin/class-api.php:95 +msgid "There was a problem fetching IBGE code! Check your CEP information." +msgstr "Houve um problema ao tentar pegar o código do IBGE! Revise seu CEP." + +#. translators: Log message. +#: includes/admin/class-api.php:113 +msgid "An error occurred while issuing a NFe: %s" +msgstr "Ocorreu um erro ao emitir uma nota fiscal: %s" + +#. translators: Log message. +#: includes/admin/class-api.php:121 +msgid "NFe sent sucessfully to issue! Order: #%d" +msgstr "Nota fiscal enviada com sucesso para emissão! Pedido: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:141 includes/admin/class-webhook.php:94 +msgid "" +"There was a problem while updating the Order #%d with the NFe information." +msgstr "" +"Ocorreu um problema ao atualizar o pedido #%d com as informações da NFe." + +#. translators: Log message. +#: includes/admin/class-api.php:171 +msgid "NFe PDF Donwload successfully. Order: #%d" +msgstr "Download da nota fiscal feito com sucesso. Pedido: #%d" + +#. translators: Log message. +#: includes/admin/class-api.php:176 +msgid "There was a problem when trying to download NFe PDF! Error: %s" +msgstr "Houve um problema ao baixar o PDF da NFe! Erro: %s" + +#: includes/admin/class-api.php:205 +msgid "Shipping" +msgstr "Envio" + +#: includes/admin/class-api.php:207 +msgid "Shipping Value" +msgstr "Valor do envio" + +#: includes/admin/class-api.php:576 +msgid "Customers" +msgstr "Clientes" + +#: includes/admin/class-api.php:580 +msgid "Company" +msgstr "Empresa" + +#: includes/admin/class-settings.php:26 +msgid "Receipts (NFE.io)" +msgstr "Notas Fiscais (NFe.io)" + +#: includes/admin/class-settings.php:27 +msgid "This is the NFe.io integration/settings page." +msgstr "Esta é a página de integração/configuração do NFe.io." + +#: includes/admin/class-settings.php:51 +msgid "" +"Ver detalhes" +msgstr "" +"Ver detalhes" + +#: includes/admin/class-settings.php:60 +msgid "No company found" +msgstr "Nenhuma empresa encontrada" + +#: includes/admin/class-settings.php:62 +msgid "Select a company..." +msgstr "Selecione uma empresa..." + +#: includes/admin/class-settings.php:66 +msgid "Enter your API key to see your company(ies)." +msgstr "Adicione sua chave de API para ver sua(s) empresa(s)." + +#: includes/admin/class-settings.php:72 +msgid "Custom Fields Plugin" +msgstr "Custom Fields Plugin" + +#: includes/admin/class-settings.php:80 +msgid "Enable/Disable" +msgstr "Ativar/Desativar" + +#: includes/admin/class-settings.php:82 +msgid "Enable NFe.io" +msgstr "Ativar NFe.io" + +#: includes/admin/class-settings.php:86 includes/admin/class-settings.php:88 +msgid "API Key" +msgstr "Chave da API" + +#: includes/admin/class-settings.php:90 +msgid "%s to look up API Key" +msgstr "%s para procurar a chave da API" + +#: includes/admin/class-settings.php:90 includes/admin/class-settings.php:101 +msgid "Click here" +msgstr "Clique aqui" + +#: includes/admin/class-settings.php:93 includes/admin/class-settings.php:95 +msgid "Choose the Company" +msgstr "Escolha a empresa" + +#: includes/admin/class-settings.php:100 +msgid "Choose one of your companies." +msgstr "Escolha uma de suas empresas." + +#: includes/admin/class-settings.php:101 +msgid "%s to check the registered companies" +msgstr "%s para verificar as empresas cadastradas" + +#: includes/admin/class-settings.php:104 includes/admin/class-settings.php:106 +msgid "NFe Issuing" +msgstr "Emissão de NFe" + +#: includes/admin/class-settings.php:109 +msgid "Automattic (Default)" +msgstr "Automático (padrão)" + +#: includes/admin/class-settings.php:110 +msgid "Manual" +msgstr "Manual" + +#: includes/admin/class-settings.php:114 includes/admin/class-settings.php:129 +msgid "Option to issue a NFe." +msgstr "Opção de emitir uma NFe." + +#: includes/admin/class-settings.php:117 includes/admin/class-settings.php:119 +msgid "Issue on order status" +msgstr "Status da emissão no pedido" + +#: includes/admin/class-settings.php:132 +msgid "Require address to issue" +msgstr "Endereço é necessário para emissão" + +#: includes/admin/class-settings.php:134 includes/admin/class-settings.php:142 +msgid "Does an address is required to issue a NFe?" +msgstr "Endereço é necessário para emissão da Nota Fiscal?" + +#: includes/admin/class-settings.php:137 +msgid "Yes (Default)" +msgstr "Sim (Padrão)" + +#: includes/admin/class-settings.php:138 +msgid "No" +msgstr "Não" + +#: includes/admin/class-settings.php:145 includes/admin/class-settings.php:147 +msgid "Highlight shipping from taxes" +msgstr "Destacar envio dos impostos" + +#: includes/admin/class-settings.php:150 +msgid "Include Shipping fees on tax calculation" +msgstr "Incluir taxas de envio no calculo de impostos" + +#: includes/admin/class-settings.php:151 +msgid "Exclude Shipping fees on tax calculation" +msgstr "Excluir taxas de envio no calculo de impostos" + +#: includes/admin/class-settings.php:155 +msgid "" +"Tax Formation: total + shipping will considerate ship value on tax " +"calculation. Total - shipping will not considerate ship value on tax " +"calculation." +msgstr "" +"Formação Fiscal: total + frete considerará o valor do frete no cálculo do " +"imposto. Total - frete não considerará o valor do frete no cálculo do " +"imposto." + +#: includes/admin/class-settings.php:158 +msgid "NFe.io Webhook Setup" +msgstr "Configuração do Webhook" + +#: includes/admin/class-settings.php:162 includes/admin/class-settings.php:164 +msgid "Webhook URL" +msgstr "URL do Webhook" + +#: includes/admin/class-settings.php:169 +msgid "Copy this link and use it to set up the %s" +msgstr "Copie este link e use para configurar o %s" + +#: includes/admin/class-settings.php:169 +msgid "NFe.io Webhooks" +msgstr "Webhooks do NFe.io" + +#: includes/admin/class-settings.php:172 +msgid "Manual Retroactive Issue of NFe" +msgstr "Emissão Manual Retroativa de Notas Fiscais" + +#: includes/admin/class-settings.php:176 +msgid "Enable Retroactive Issue" +msgstr "Habilitar Emissão Retroativa" + +#: includes/admin/class-settings.php:178 +msgid "Enable to issue NFe.io in past products" +msgstr "Habilite a emissão de notas NFe em produtos antigos" + +#: includes/admin/class-settings.php:180 +msgid "" +"Enabling this allows users to issue nfe.io notes on bought products in the " +"past." +msgstr "" +"Se habilitado, essa funcionalidade permite a emissão de notas em produtos " +"comprados no passado." + +#: includes/admin/class-settings.php:183 +msgid "Days in the past" +msgstr "Quantos dias atrás" + +#: includes/admin/class-settings.php:187 +msgid "Days in the past to allow NFe manual issue." +msgstr "Dias no passado permitido para emissão manual da NFe." + +#: includes/admin/class-settings.php:190 +msgid "Receipt Service Settings" +msgstr "Configurações do serviço de notas fiscais" + +#: includes/admin/class-settings.php:193 +msgid "" +"If you are in doubt on how to fill the fields below, ask for help from you " +"accountant or get in contact with our team via %2$s" +msgstr "" + +#: includes/admin/class-settings.php:201 +msgid "City Service Code" +msgstr "Código de serviço municipal" + +#: includes/admin/class-settings.php:208 +msgid "Federal Service Code" +msgstr "Código de serviço federal" + +#: includes/admin/class-settings.php:220 +msgid "Debug Log" +msgstr "Registro de depuração" + +#: includes/admin/class-settings.php:222 +msgid "Enable logging" +msgstr "Ativar histórico" + +#: includes/admin/class-settings.php:224 +msgid "Log events such as API requests, you can check this log in %s." +msgstr "Registrar eventos da API do NFe. Você pode verificar o log em %s." + +#: includes/admin/class-settings.php:224 +msgid "System Status - Logs" +msgstr "Status do sistema - Histórico" + +#: includes/admin/class-settings.php:241 +msgid "" +"Plugin is enabled but no API key was provided. You should inform your API " +"Key. %s" +msgstr "" +"O plugin está ativo porém nenhuma chave de API foi fornecida. Você deve " +"informar sua chave de API. %s" + +#: includes/admin/class-settings.php:241 +msgid "Click here to configure!" +msgstr "Clique aqui para configurar!" + +#: includes/admin/class-settings.php:246 +msgid "Enable Retroactive Issue is enabled, but no days was added. %s." +msgstr "" +"A emissão retroativa está ativa, porém nenhuma data foi adicionada. %s." + +#: includes/admin/class-settings.php:246 +msgid "Add a date to calculate or disable it." +msgstr "Adicione uma data para calcular ou desative esse recurso." + +#: includes/admin/class-settings.php:254 +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:22 +#: includes/admin/views/html-notice-missing-woocommerce.php:22 +msgid "WooCommerce NFe.io" +msgstr "NFe.io para Woocommerce" + +#: includes/admin/class-settings.php:254 +msgid "Unable to load the companies list from NFe.io." +msgstr "Não é possível carregar a lista de empresas do NFe.io." + +#. translators: Fired when a new webhook is called. +#: includes/admin/class-webhook.php:42 +msgid "New webhook called. %s" +msgstr "Novo webhook chamado. %s" + +#. translators: Error message from event. +#: includes/admin/class-webhook.php:48 includes/admin/class-webhook.php:70 +msgid "Error: %s." +msgstr "Erro: %s." + +#: includes/admin/class-webhook.php:66 +msgid "Starting to proccess new webhook event." +msgstr "Começando a processar um novo evento de webhook." + +#: includes/admin/class-webhook.php:69 includes/admin/class-webhook.php:72 +msgid "Error while checking webhook JSON." +msgstr "Falha ao verificar JSON do webhook." + +#: includes/admin/class-webhook.php:75 +msgid "Getting Order ID of the webhook." +msgstr "Obtendo o ID do pedido do webhook." + +#: includes/admin/class-webhook.php:78 +msgid "Updating Order with NFe info." +msgstr "Atualizando o pedido com as informações da NFe." + +#. translators: Order updated with its status. +#: includes/admin/class-webhook.php:99 +msgid "Order updated. Order: #%1$d NFe status: %2$s." +msgstr "" + +#. translators: Order with receipt number. +#: includes/admin/class-webhook.php:117 includes/admin/class-webhook.php:120 +msgid "Order with receipt number #%d not found." +msgstr "O pedido com o número de nota fiscal #%d não foi encontrado." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:26 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:29 +msgid "NFe Receipt Issued" +msgstr "Nota Fiscal Emitida" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:27 +msgid "" +"Safe copy emails are sent when a customer issues an receipt. The e-mail is " +"sent to the admin as a saving measure." +msgstr "" +"E-mails em cópia segura são enviados quando um cliente emite uma nota " +"fiscal. O e-mail é enviado para o administrador como medida de segurança." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:133 +msgid "Enable this email notification" +msgstr "Ative essa notificação por e-mail" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:139 +msgid "" +"This controls the email subject line. Leave blank to use the default " +"subject: %s." +msgstr "" +"Isso controla a linha de assunto do e-mail. Deixe em branco para usar o " +"assunto padrão: %s." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:146 +msgid "" +"This controls the main heading contained within the email notification. " +"Leave blank to use the default heading: %s." +msgstr "" +"Isso controla o título do cabeçalho principal dentro do e-mail de " +"notificação. Deixe em branco para usar o título padrão: %s." + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:153 +msgid "Choose which format of email to send." +msgstr "Escolha o formato de e-mail para enviar." + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "The WooCommerce NFe plugin" +msgstr "O plugin de NFe para Woocommerce" + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "needs the %s to work!" +msgstr "precisa do %s para funcionar!" + +#: includes/admin/views/html-notice-missing-soap-client.php:14 +msgid "SOAP module" +msgstr "Módulo SOAP" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:22 +msgid "" +"depends on the lastest version of WooCommerce Extra Checkout Fields for " +"Brazil to work!" +msgstr "" +"depende da última versão do plugin WooCommerce Extra Checkout Fields for " +"Brazil para funcionar!" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:27 +msgid "Active WooCommerce Extra Checkout Fields for Brazil" +msgstr "Ative o plugin WooCommerce Extra Checkout Fields for Brazil" + +#: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:39 +msgid "Install WooCommerce Extra Checkout Fields for Brazil" +msgstr "Instale o plugin WooCommerce Extra Checkout Fields for Brazil" + +#: includes/admin/views/html-notice-missing-woocommerce.php:22 +msgid "depends on the last version of WooCommerce to work!" +msgstr "depende da última versão do WooCommerce para funcionar!" + +#: includes/admin/views/html-notice-missing-woocommerce.php:27 +msgid "Active WooCommerce" +msgstr "Ativar WooCommerce" + +#: includes/admin/views/html-notice-missing-woocommerce.php:39 +msgid "Install WooCommerce" +msgstr "Instalar WooCommerce" + +#: includes/frontend/class-frontend.php:41 +msgid "" +"The following address will also be used when issuing a NFe " +"Sales Receipt." +msgstr "" +"O seguinte endereço também será usado ao emitir uma nota " +"fiscal." + +#: includes/frontend/class-frontend.php:51 +msgid "" +"The following address(es) will be used on the checkout page by default and " +"also when issuing a NFe sales receipt." +msgstr "" +"Os seguintes endereços serão usados na página de finalizar compra por " +"padrão, e também ao emitir uma nota fiscal." + +#: includes/frontend/class-frontend.php:140 +msgid "Download NFe" +msgstr "Baixar NFe" + +#: templates/emails/nfe-receipt-issued.php:21 +#: templates/emails/plain/nfe-receipt-issued.php:18 +msgid "NFe issued successfully. Here follows an email for your backing." +msgstr "A NFe foi emitida. Segue um e-mail para sua segurança." + +#: woo-nfe.php:175 +msgid "Settings" +msgstr "Configurações" + +#. Plugin Name of the plugin/theme +msgid "NFe for Woocommerce" +msgstr "" + +#. Plugin URI of the plugin/theme +msgid "https://github.com/nfe/woo-nfe" +msgstr "https://github.com/nfe/woo-nfe" + +#. Description of the plugin/theme +msgid "Extension for connecting to NFe.io API" +msgstr "" + +#. Author of the plugin/theme +msgid "NFe.io" +msgstr "NFe.io" + +#. Author URI of the plugin/theme +msgid "https://nfe.io" +msgstr "https://nfe.io" + +#: includes/admin/class-settings.php:122 +msgctxt "Order status" +msgid "Pending Payment" +msgstr "Pagamento pendente" + +#: includes/admin/class-settings.php:123 +msgctxt "Order status" +msgid "Processing" +msgstr "Processando" + +#: includes/admin/class-settings.php:124 +msgctxt "Order status" +msgid "On Hold" +msgstr "Aguardando" + +#: includes/admin/class-settings.php:125 +msgctxt "Order status" +msgid "Completed" +msgstr "Concluído" + +#. translators: placeholder is {blogname}, a variable that will be substituted +#. when email is sent out. +#: includes/admin/emails/class-nfe-email-receipt-issued.php:32 +msgctxt "" +"default email subject for safe copy emails sent to the admin or a custom " +"email chosen in the NFe settings page" +msgid "[%s] NFe Receipt Issued" +msgstr "[%s] Nota Fiscal Emitida" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:131 +msgctxt "an email notification" +msgid "Enable/Disable" +msgstr "Ativar/Desativar" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:137 +msgctxt "of an email" +msgid "Subject" +msgstr "Assunto" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:144 +msgctxt "" +"Name the setting that controls the main heading contained within the email " +"notification" +msgid "Email Heading" +msgstr "Cabeçalho do e-mail" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:151 +msgctxt "text, html or multipart" +msgid "Email type" +msgstr "Tipo de e-mail" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:157 +msgctxt "email type" +msgid "Plain text" +msgstr "Texto simples" + +#: includes/admin/emails/class-nfe-email-receipt-issued.php:158 +msgctxt "email type" +msgid "HTML" +msgstr "HTML" diff --git a/languages/woo-nfe.pot b/languages/woo-nfe.pot index 3147b07..ce5f1f6 100644 --- a/languages/woo-nfe.pot +++ b/languages/woo-nfe.pot @@ -1,514 +1,573 @@ -# Copyright (C) 2018 NFe.io +# Copyright (C) 2023 NFe.io # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" "Project-Id-Version: NFe for Woocommerce 1.3.1\n" -"Report-Msgid-Bugs-To: https://github.com/nfe/woo-nfe/issues\n" -"POT-Creation-Date: 2018-05-03 14:08:38+00:00\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-nfe\n" +"POT-Creation-Date: 2023-11-03 17:01:36+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" -"Last-Translator: Hackers \n" -"Language-Team: Hackers \n" -"X-Generator: grunt-wp-i18n 0.5.4\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Country: Brasil\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Poedit-KeywordsList: " -"__;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_" -"nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2;" -"\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-Bookmarks: \n" -"X-Textdomain-Support: yes\n" -"X-Poedit-Language: Portuguese\n" +"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"X-Generator: grunt-wp-i18n 1.0.3\n" -#: includes/admin/class-admin.php:142 -#. translators: %s: order count +#: includes/admin/class-admin.php:124 +#. translators: %s: order count. msgid "%s receipt issued" msgid_plural "%s receipts issued" msgstr[0] "" msgstr[1] "" -#: includes/admin/class-admin.php:154 -#. translators: %s: order count +#: includes/admin/class-admin.php:133 +#. translators: %s: order count. msgid "%s receipt processing" msgid_plural "%s receipts processing" msgstr[0] "" msgstr[1] "" -#: includes/admin/class-admin.php:166 -#. translators: %s: order count +#: includes/admin/class-admin.php:142 +#. translators: %s: order count. msgid "%s receipt with error" msgid_plural "%s receipts with error" msgstr[0] "" msgstr[1] "" -#: includes/admin/class-admin.php:178 -#. translators: %s: order count +#: includes/admin/class-admin.php:151 +#. translators: %s: order count. msgid "%s receipt cancelled" msgid_plural "%s receipts cancelled" msgstr[0] "" msgstr[1] "" -#. Plugin Name of the plugin/theme +#: includes/admin/class-admin.php:167 includes/admin/class-settings.php:241 +#: includes/admin/class-settings.php:246 msgid "WooCommerce NFe" -msgstr "NFe for Woocommerce" +msgstr "" -#: includes/admin/class-admin.php:214 includes/admin/class-admin.php:278 -#: includes/admin/class-settings.php:162 +#: includes/admin/class-admin.php:186 includes/admin/class-admin.php:255 +#: includes/admin/class-settings.php:199 msgid "City Service Code (CityServiceCode)" msgstr "" -#: includes/admin/class-admin.php:217 includes/admin/class-admin.php:280 -#: includes/admin/class-settings.php:166 +#: includes/admin/class-admin.php:189 includes/admin/class-admin.php:257 +#: includes/admin/class-settings.php:203 msgid "" "City Service Code, this is the code that will identify to the cityhall " "which type of service you are delivering." msgstr "" -#: includes/admin/class-admin.php:223 includes/admin/class-admin.php:286 -#: includes/admin/class-settings.php:169 +#: includes/admin/class-admin.php:197 includes/admin/class-admin.php:265 +#: includes/admin/class-settings.php:206 msgid "Federal Service Code LC 116 (FederalServiceCode)" msgstr "" -#: includes/admin/class-admin.php:226 includes/admin/class-admin.php:288 -#: includes/admin/class-settings.php:173 +#: includes/admin/class-admin.php:200 includes/admin/class-admin.php:267 +#: includes/admin/class-settings.php:210 msgid "" "Service Code based on the Federal Law (LC 116), this is a federal code that " "will identify to the cityhall which type of service you are delivering." msgstr "" -#: includes/admin/class-admin.php:232 includes/admin/class-admin.php:294 -#: includes/admin/class-settings.php:176 includes/admin/class-settings.php:178 +#: includes/admin/class-admin.php:208 includes/admin/class-admin.php:275 +#: includes/admin/class-settings.php:213 includes/admin/class-settings.php:215 msgid "Service Description" msgstr "" -#: includes/admin/class-admin.php:235 includes/admin/class-admin.php:296 -#: includes/admin/class-settings.php:180 +#: includes/admin/class-admin.php:211 includes/admin/class-admin.php:277 +#: includes/admin/class-settings.php:217 msgid "" "Put the description that will appear in the receipt. This description must " "explain in detail what service was delivered. Ask your accountant, if in " "doubt." msgstr "" -#: includes/admin/class-admin.php:342 +#: includes/admin/class-admin.php:329 msgid "Download NFe receipt" msgstr "" -#: includes/admin/class-admin.php:346 +#: includes/admin/class-admin.php:333 msgid "Issue NFe receipt" msgstr "" -#: includes/admin/class-admin.php:394 +#: includes/admin/class-admin.php:346 msgid "NFe receipt downloaded." msgstr "" -#: includes/admin/class-admin.php:422 +#: includes/admin/class-admin.php:373 msgid "Sales Receipt updated via NFe.io API" msgstr "" -#: includes/admin/class-admin.php:422 includes/frontend/class-frontend.php:65 +#: includes/admin/class-admin.php:373 includes/frontend/class-frontend.php:68 msgid "Sales Receipt" msgstr "" -#: includes/admin/class-admin.php:453 includes/frontend/class-frontend.php:95 +#: includes/admin/class-admin.php:400 includes/frontend/class-frontend.php:97 +#: includes/nfe-functions.php:182 msgid "NFe Cancelled" msgstr "" -#: includes/admin/class-admin.php:458 includes/frontend/class-frontend.php:101 +#: includes/admin/class-admin.php:405 includes/frontend/class-frontend.php:103 +#: includes/nfe-functions.php:181 msgid "NFe Issued" msgstr "" -#: includes/admin/class-admin.php:463 includes/frontend/class-frontend.php:107 +#: includes/admin/class-admin.php:410 includes/frontend/class-frontend.php:109 +#: includes/nfe-functions.php:183 msgid "NFe Cancelling Failed" msgstr "" -#: includes/admin/class-admin.php:468 includes/frontend/class-frontend.php:113 +#: includes/admin/class-admin.php:415 includes/frontend/class-frontend.php:115 +#: includes/nfe-functions.php:184 msgid "NFe Issuing Failed" msgstr "" -#: includes/admin/class-admin.php:473 includes/frontend/class-frontend.php:119 +#: includes/admin/class-admin.php:420 includes/frontend/class-frontend.php:127 +#: includes/nfe-functions.php:177 msgid "Processing NFe" msgstr "" -#: includes/admin/class-admin.php:479 +#: includes/admin/class-admin.php:426 includes/frontend/class-frontend.php:121 +#: includes/nfe-functions.php:185 +msgid "NFe Processing" +msgstr "" + +#: includes/admin/class-admin.php:432 msgid "Zero Order" msgstr "" -#: includes/admin/class-admin.php:484 includes/frontend/class-frontend.php:126 +#: includes/admin/class-admin.php:437 includes/frontend/class-frontend.php:134 msgid "Pending Address" msgstr "" -#: includes/admin/class-admin.php:491 includes/admin/class-admin.php:502 -#: includes/frontend/class-frontend.php:140 -#: includes/frontend/class-frontend.php:153 +#: includes/admin/class-admin.php:444 includes/admin/class-admin.php:455 +#: includes/frontend/class-frontend.php:148 +#: includes/frontend/class-frontend.php:161 msgid "Issue NFe" msgstr "" -#: includes/admin/class-admin.php:496 includes/frontend/class-frontend.php:146 +#: includes/admin/class-admin.php:449 includes/frontend/class-frontend.php:154 msgid "Issue Expired" msgstr "" -#: includes/admin/class-admin.php:531 +#: includes/admin/class-admin.php:483 msgid "Receipts Details (NFE.io)" msgstr "" -#: includes/admin/class-admin.php:536 +#: includes/admin/class-admin.php:488 msgid "Status: " msgstr "" -#: includes/admin/class-admin.php:542 +#: includes/admin/class-admin.php:494 msgid "Number: " msgstr "" -#: includes/admin/class-admin.php:548 +#: includes/admin/class-admin.php:500 msgid "CheckCode: " msgstr "" -#: includes/admin/class-admin.php:554 +#: includes/admin/class-admin.php:506 msgid "Issued On: " msgstr "" -#: includes/admin/class-admin.php:560 +#: includes/admin/class-admin.php:512 msgid "Price: " msgstr "" -#: includes/admin/class-admin.php:638 +#: includes/admin/class-admin.php:519 +msgid "Fatura: " +msgstr "" + +#: includes/admin/class-admin.php:531 includes/admin/class-admin.php:534 +msgid "Plugin Custom Fields: " +msgstr "" + +#: includes/admin/class-admin.php:583 msgid "NFe Details" msgstr "" -#: includes/admin/class-admin.php:641 +#: includes/admin/class-admin.php:586 msgid "Status" msgstr "" -#: includes/admin/class-admin.php:646 +#: includes/admin/class-admin.php:591 msgid "Number" msgstr "" -#: includes/admin/class-admin.php:651 +#: includes/admin/class-admin.php:596 msgid "CheckCode" msgstr "" -#: includes/admin/class-admin.php:656 +#: includes/admin/class-admin.php:601 msgid "Issued On" msgstr "" -#: includes/admin/class-ajax.php:42 +#: includes/admin/class-ajax.php:48 msgid "" "The order is missing important NFe information, update it before trying to " "issue it." msgstr "" -#: includes/admin/class-ajax.php:46 +#: includes/admin/class-ajax.php:52 msgid "NFe was issued successfully." msgstr "" -#: includes/admin/class-api.php:63 +#: includes/admin/class-api.php:67 +#. translators: Log message. msgid "NFe issuing process started! Order: #%d" msgstr "" -#: includes/admin/class-api.php:69 +#: includes/admin/class-api.php:75 +#. translators: Log message. +msgid "second attempt to send the same NFE: #%d" +msgstr "" + +#: includes/admin/class-api.php:84 +#. translators: Log message. msgid "Not possible to issue NFe without an order value! Order: #%d" msgstr "" -#: includes/admin/class-api.php:80 +#: includes/admin/class-api.php:95 msgid "There was a problem fetching IBGE code! Check your CEP information." msgstr "" -#: includes/admin/class-api.php:88 +#: includes/admin/class-api.php:113 +#. translators: Log message. msgid "An error occurred while issuing a NFe: %s" msgstr "" -#: includes/admin/class-api.php:95 +#: includes/admin/class-api.php:121 +#. translators: Log message. msgid "NFe sent sucessfully to issue! Order: #%d" msgstr "" -#: includes/admin/class-api.php:132 +#: includes/admin/class-api.php:141 includes/admin/class-webhook.php:94 +#. translators: Log message. +msgid "There was a problem while updating the Order #%d with the NFe information." +msgstr "" + +#: includes/admin/class-api.php:171 +#. translators: Log message. msgid "NFe PDF Donwload successfully. Order: #%d" msgstr "" -#: includes/admin/class-api.php:136 +#: includes/admin/class-api.php:176 +#. translators: Log message. msgid "There was a problem when trying to download NFe PDF! Error: %s" msgstr "" -#: includes/admin/class-api.php:335 +#: includes/admin/class-api.php:205 +msgid "Shipping" +msgstr "" + +#: includes/admin/class-api.php:207 +msgid "Shipping Value" +msgstr "" + +#: includes/admin/class-api.php:576 msgid "Customers" msgstr "" -#: includes/admin/class-api.php:338 +#: includes/admin/class-api.php:580 msgid "Company" msgstr "" -#: includes/admin/class-settings.php:25 +#: includes/admin/class-settings.php:26 msgid "Receipts (NFE.io)" msgstr "" -#: includes/admin/class-settings.php:26 +#: includes/admin/class-settings.php:27 msgid "This is the NFe.io integration/settings page." msgstr "" -#: includes/admin/class-settings.php:47 -msgid "No company found in account" +#: includes/admin/class-settings.php:51 +msgid "" +"Ver detalhes" +msgstr "" + +#: includes/admin/class-settings.php:60 +msgid "No company found" msgstr "" -#: includes/admin/class-settings.php:49 +#: includes/admin/class-settings.php:62 msgid "Select a company..." msgstr "" -#: includes/admin/class-settings.php:52 +#: includes/admin/class-settings.php:66 msgid "Enter your API key to see your company(ies)." msgstr "" -#: includes/admin/class-settings.php:57 +#: includes/admin/class-settings.php:72 +msgid "Custom Fields Plugin" +msgstr "" + +#: includes/admin/class-settings.php:80 msgid "Enable/Disable" msgstr "" -#: includes/admin/class-settings.php:59 +#: includes/admin/class-settings.php:82 msgid "Enable NFe.io" msgstr "" -#: includes/admin/class-settings.php:63 includes/admin/class-settings.php:65 +#: includes/admin/class-settings.php:86 includes/admin/class-settings.php:88 msgid "API Key" msgstr "" -#: includes/admin/class-settings.php:67 +#: includes/admin/class-settings.php:90 msgid "%s to look up API Key" msgstr "" -#: includes/admin/class-settings.php:67 includes/admin/class-settings.php:78 +#: includes/admin/class-settings.php:90 includes/admin/class-settings.php:101 msgid "Click here" msgstr "" -#: includes/admin/class-settings.php:70 includes/admin/class-settings.php:72 +#: includes/admin/class-settings.php:93 includes/admin/class-settings.php:95 msgid "Choose the Company" msgstr "" -#: includes/admin/class-settings.php:77 +#: includes/admin/class-settings.php:100 msgid "Choose one of your companies." msgstr "" -#: includes/admin/class-settings.php:78 +#: includes/admin/class-settings.php:101 msgid "%s to check the registered companies" msgstr "" -#: includes/admin/class-settings.php:82 includes/admin/class-settings.php:84 +#: includes/admin/class-settings.php:104 includes/admin/class-settings.php:106 msgid "NFe Issuing" msgstr "" -#: includes/admin/class-settings.php:87 +#: includes/admin/class-settings.php:109 msgid "Automattic (Default)" msgstr "" -#: includes/admin/class-settings.php:88 +#: includes/admin/class-settings.php:110 msgid "Manual" msgstr "" -#: includes/admin/class-settings.php:92 includes/admin/class-settings.php:107 +#: includes/admin/class-settings.php:114 includes/admin/class-settings.php:129 msgid "Option to issue a NFe." msgstr "" -#: includes/admin/class-settings.php:95 includes/admin/class-settings.php:97 +#: includes/admin/class-settings.php:117 includes/admin/class-settings.php:119 msgid "Issue on order status" msgstr "" -#: includes/admin/class-settings.php:110 +#: includes/admin/class-settings.php:132 msgid "Require address to issue" msgstr "" -#: includes/admin/class-settings.php:112 includes/admin/class-settings.php:120 +#: includes/admin/class-settings.php:134 includes/admin/class-settings.php:142 msgid "Does an address is required to issue a NFe?" msgstr "" -#: includes/admin/class-settings.php:115 +#: includes/admin/class-settings.php:137 msgid "Yes (Default)" msgstr "" -#: includes/admin/class-settings.php:116 +#: includes/admin/class-settings.php:138 msgid "No" msgstr "" -#: includes/admin/class-settings.php:123 -msgid "NFe.io Webkook Setup" +#: includes/admin/class-settings.php:145 includes/admin/class-settings.php:147 +msgid "Highlight shipping from taxes" +msgstr "" + +#: includes/admin/class-settings.php:150 +msgid "Include Shipping fees on tax calculation" msgstr "" -#: includes/admin/class-settings.php:127 includes/admin/class-settings.php:129 +#: includes/admin/class-settings.php:151 +msgid "Exclude Shipping fees on tax calculation" +msgstr "" + +#: includes/admin/class-settings.php:155 +msgid "" +"Tax Formation: total + shipping will considerate ship value on tax " +"calculation. Total - shipping will not considerate ship value on tax " +"calculation." +msgstr "" + +#: includes/admin/class-settings.php:158 +msgid "NFe.io Webhook Setup" +msgstr "" + +#: includes/admin/class-settings.php:162 includes/admin/class-settings.php:164 msgid "Webhook URL" msgstr "" -#: includes/admin/class-settings.php:134 +#: includes/admin/class-settings.php:169 msgid "Copy this link and use it to set up the %s" msgstr "" -#: includes/admin/class-settings.php:134 +#: includes/admin/class-settings.php:169 msgid "NFe.io Webhooks" msgstr "" -#: includes/admin/class-settings.php:137 +#: includes/admin/class-settings.php:172 msgid "Manual Retroactive Issue of NFe" msgstr "" -#: includes/admin/class-settings.php:141 +#: includes/admin/class-settings.php:176 msgid "Enable Retroactive Issue" msgstr "" -#: includes/admin/class-settings.php:143 +#: includes/admin/class-settings.php:178 msgid "Enable to issue NFe.io in past products" msgstr "" -#: includes/admin/class-settings.php:145 +#: includes/admin/class-settings.php:180 msgid "" "Enabling this allows users to issue nfe.io notes on bought products in the " "past." msgstr "" -#: includes/admin/class-settings.php:148 +#: includes/admin/class-settings.php:183 msgid "Days in the past" msgstr "" -#: includes/admin/class-settings.php:152 +#: includes/admin/class-settings.php:187 msgid "Days in the past to allow NFe manual issue." msgstr "" -#: includes/admin/class-settings.php:155 +#: includes/admin/class-settings.php:190 msgid "Receipt Service Settings" msgstr "" -#: includes/admin/class-settings.php:157 +#: includes/admin/class-settings.php:193 msgid "" "If you are in doubt on how to fill the fields below, ask for help from you " -"accountant or get in contact with our team via %s" +"accountant or get in contact with our team via %2$s" msgstr "" -#: includes/admin/class-settings.php:164 +#: includes/admin/class-settings.php:201 msgid "City Service Code" msgstr "" -#: includes/admin/class-settings.php:171 +#: includes/admin/class-settings.php:208 msgid "Federal Service Code" msgstr "" -#: includes/admin/class-settings.php:183 +#: includes/admin/class-settings.php:220 msgid "Debug Log" msgstr "" -#: includes/admin/class-settings.php:185 +#: includes/admin/class-settings.php:222 msgid "Enable logging" msgstr "" -#: includes/admin/class-settings.php:187 +#: includes/admin/class-settings.php:224 msgid "Log events such as API requests, you can check this log in %s." msgstr "" -#: includes/admin/class-settings.php:187 +#: includes/admin/class-settings.php:224 msgid "System Status - Logs" msgstr "" -#: includes/admin/class-settings.php:248 +#: includes/admin/class-settings.php:241 msgid "" "Plugin is enabled but no API key was provided. You should inform your API " "Key. %s" msgstr "" -#: includes/admin/class-settings.php:248 +#: includes/admin/class-settings.php:241 msgid "Click here to configure!" msgstr "" -#: includes/admin/class-settings.php:252 +#: includes/admin/class-settings.php:246 msgid "Enable Retroactive Issue is enabled, but no days was added. %s." msgstr "" -#: includes/admin/class-settings.php:252 +#: includes/admin/class-settings.php:246 msgid "Add a date to calculate or disable it." msgstr "" -#: includes/admin/class-settings.php:263 +#: includes/admin/class-settings.php:254 #: includes/admin/views/html-notice-missing-woocommerce-extra-checkout-fields.php:22 #: includes/admin/views/html-notice-missing-woocommerce.php:22 msgid "WooCommerce NFe.io" -msgstr "NFe.io for Woocommerce" +msgstr "" -#: includes/admin/class-settings.php:263 +#: includes/admin/class-settings.php:254 msgid "Unable to load the companies list from NFe.io." msgstr "" -#: includes/admin/class-webhook.php:37 +#: includes/admin/class-webhook.php:42 #. translators: Fired when a new webhook is called. msgid "New webhook called. %s" msgstr "" -#: includes/admin/class-webhook.php:43 includes/admin/class-webhook.php:66 +#: includes/admin/class-webhook.php:48 includes/admin/class-webhook.php:70 #. translators: Error message from event. msgid "Error: %s." msgstr "" -#: includes/admin/class-webhook.php:62 +#: includes/admin/class-webhook.php:66 msgid "Starting to proccess new webhook event." msgstr "" -#: includes/admin/class-webhook.php:65 includes/admin/class-webhook.php:68 +#: includes/admin/class-webhook.php:69 includes/admin/class-webhook.php:72 msgid "Error while checking webhook JSON." msgstr "" -#: includes/admin/class-webhook.php:71 +#: includes/admin/class-webhook.php:75 msgid "Getting Order ID of the webhook." msgstr "" -#: includes/admin/class-webhook.php:83 +#: includes/admin/class-webhook.php:78 msgid "Updating Order with NFe info." msgstr "" -#: includes/admin/class-webhook.php:88 -msgid "There was a problem while updating the Order #%d with the NFe information." -msgstr "" - -#: includes/admin/class-webhook.php:92 +#: includes/admin/class-webhook.php:99 #. translators: Order updated with its status. -msgid "Order updated. Order: #%d NFe status: %s ." +msgid "Order updated. Order: #%1$d NFe status: %2$s." msgstr "" -#: includes/admin/class-webhook.php:110 includes/admin/class-webhook.php:113 +#: includes/admin/class-webhook.php:117 includes/admin/class-webhook.php:120 #. translators: Order with receipt number. msgid "Order with receipt number #%d not found." msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:24 -#: includes/admin/emails/class-nfe-email-receipt-issued.php:27 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:26 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:29 msgid "NFe Receipt Issued" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:25 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:27 msgid "" "Safe copy emails are sent when a customer issues an receipt. The e-mail is " "sent to the admin as a saving measure." msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:131 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:133 msgid "Enable this email notification" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:137 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:139 msgid "" "This controls the email subject line. Leave blank to use the default " "subject: %s." msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:144 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:146 msgid "" "This controls the main heading contained within the email notification. " "Leave blank to use the default heading: %s." msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:151 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:153 msgid "Choose which format of email to send." msgstr "" #: includes/admin/views/html-notice-missing-soap-client.php:14 msgid "The WooCommerce NFe plugin" -msgstr "NFe for Woocommerce plugin" +msgstr "" #: includes/admin/views/html-notice-missing-soap-client.php:14 msgid "needs the %s to work!" @@ -544,38 +603,42 @@ msgstr "" msgid "Install WooCommerce" msgstr "" -#: includes/frontend/class-frontend.php:40 +#: includes/frontend/class-frontend.php:41 msgid "" "The following address will also be used when issuing a NFe " "Sales Receipt." msgstr "" -#: includes/frontend/class-frontend.php:50 +#: includes/frontend/class-frontend.php:51 msgid "" "The following address(es) will be used on the checkout page by default and " "also when issuing a NFe sales receipt." msgstr "" -#: includes/frontend/class-frontend.php:132 +#: includes/frontend/class-frontend.php:140 msgid "Download NFe" msgstr "" -#: templates/emails/nfe-receipt-issued.php:22 -#: templates/emails/plain/nfe-receipt-issued.php:19 +#: templates/emails/nfe-receipt-issued.php:21 +#: templates/emails/plain/nfe-receipt-issued.php:18 msgid "NFe issued successfully. Here follows an email for your backing." msgstr "" -#: woo-nfe.php:229 +#: woo-nfe.php:175 msgid "Settings" msgstr "" +#. Plugin Name of the plugin/theme +msgid "NFe for Woocommerce" +msgstr "" + #. Plugin URI of the plugin/theme msgid "https://github.com/nfe/woo-nfe" msgstr "" #. Description of the plugin/theme -msgid "WooCommerce extension for the NFe API" -msgstr "Extension for NFe API" +msgid "Extension for connecting to NFe.io API" +msgstr "" #. Author of the plugin/theme msgid "NFe.io" @@ -585,27 +648,27 @@ msgstr "" msgid "https://nfe.io" msgstr "" -#: includes/admin/class-settings.php:100 +#: includes/admin/class-settings.php:122 msgctxt "Order status" msgid "Pending Payment" msgstr "" -#: includes/admin/class-settings.php:101 +#: includes/admin/class-settings.php:123 msgctxt "Order status" msgid "Processing" msgstr "" -#: includes/admin/class-settings.php:102 +#: includes/admin/class-settings.php:124 msgctxt "Order status" msgid "On Hold" msgstr "" -#: includes/admin/class-settings.php:103 +#: includes/admin/class-settings.php:125 msgctxt "Order status" msgid "Completed" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:30 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:32 #. translators: placeholder is {blogname}, a variable that will be substituted #. when email is sent out. msgctxt "" @@ -614,34 +677,34 @@ msgctxt "" msgid "[%s] NFe Receipt Issued" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:129 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:131 msgctxt "an email notification" msgid "Enable/Disable" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:135 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:137 msgctxt "of an email" msgid "Subject" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:142 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:144 msgctxt "" "Name the setting that controls the main heading contained within the email " "notification" msgid "Email Heading" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:149 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:151 msgctxt "text, html or multipart" msgid "Email type" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:155 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:157 msgctxt "email type" msgid "Plain text" msgstr "" -#: includes/admin/emails/class-nfe-email-receipt-issued.php:156 +#: includes/admin/emails/class-nfe-email-receipt-issued.php:158 msgctxt "email type" msgid "HTML" msgstr "" \ No newline at end of file diff --git a/package.json b/package.json index acfa9ae..239e62a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nfe", "title": "WooCommerce NFe", - "version": "1.2.8", + "version": "1.2.11", "author": "NFe.io", "homepage": "https://github.com/nfe/woo-nfe", "description": "WooCommerce extension for issuing invoices using the NFe.io API", @@ -11,13 +11,18 @@ }, "main": "Gruntfile.js", "devDependencies": { - "grunt": "^0.4.5", + "@wordpress/env": "^8.11.0", + "grunt": "^1.6.1", "grunt-checktextdomain": "^1.0.1", - "grunt-wp-i18n": "^0.5.4", - "load-grunt-tasks": "^3.3.0" + "grunt-wp-i18n": "^1.0.3", + "load-grunt-tasks": "^5.1.0" }, "engines": { - "node": ">=0.8.0", + "node": ">=10.0.0", "npm": ">=1.1.0" + }, + "scripts": { + "wp-env": "wp-env", + "grunt": "grunt" } } diff --git a/woo-nfe.php b/woo-nfe.php index 5ae5709..e045b56 100644 --- a/woo-nfe.php +++ b/woo-nfe.php @@ -59,9 +59,9 @@ public function __construct() { /** * Main instance. * + * @return instance * @since 1.0.0 * - * @return instance */ public static function instance() { // Store the instance locally to avoid private static replication. @@ -130,11 +130,11 @@ public function load_plugin_textdomain() { /** * Adds our custom WC_NFe_Integration integration to WooCommerce. * - * @since 1.0.0 - * * @param array $integrations wooCommerce Integrations. * * @return array + * @since 1.0.0 + * */ public function nfe_integration( $integrations ) { $integrations[] = 'WC_NFe_Integration'; @@ -163,11 +163,11 @@ public function woocommerce_missing_notice() { /** * Action links. * - * @since 1.0.0 - * * @param array $links links. * * @return array + * @since 1.0.0 + * */ public function plugin_action_links( $links ) { return array_merge( @@ -312,9 +312,9 @@ private function version_check1( $version ) { /** * The main function responsible for returning the one true WooCommerce_NFe Instance. * + * @return WooCommerce_NFe * @since 1.0.0 * - * @return WooCommerce_NFe */ function woo_nfe() { return WooCommerce_NFe::instance(); @@ -356,4 +356,13 @@ function wc_ee_instance() { return $extension; } + + + add_action( 'before_woocommerce_init', function () { + if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { + \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, false ); + } + } ); + + }