Plugin Directory

Changeset 3482385


Ignore:
Timestamp:
03/14/2026 06:57:30 AM (3 weeks ago)
Author:
fernandopimenta
Message:

Update trunk to v2.0.3 - Fix Mercado Livre badge, fix i18n hardcoded PT-BR strings

Location:
pap-afiliados-pro/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • pap-afiliados-pro/trunk/blocks/papafpro-linker-format/index.js

    r3469054 r3482385  
    115115                    },
    116116                        createElement('h4', { style: { marginTop: 0 } },
    117                             __('Inserir PAP Link', 'pap-afiliados-pro')
     117                            __('Insert PAP Link', 'pap-afiliados-pro')
    118118                        ),
    119119
    120120                        // Search input.
    121121                        createElement(TextControl, {
    122                             label: __('Buscar Produto', 'pap-afiliados-pro'),
     122                            label: __('Search Product', 'pap-afiliados-pro'),
    123123                            value: searchTerm,
    124124                            onChange: function(val) {
     
    130130                                }
    131131                            },
    132                             placeholder: __('Nome do produto...', 'pap-afiliados-pro')
     132                            placeholder: __('Product name...', 'pap-afiliados-pro')
    133133                        }),
    134134
     
    152152                        // Manual URL input.
    153153                        createElement(TextControl, {
    154                             label: __('Ou insira URL manual', 'pap-afiliados-pro'),
     154                            label: __('Or enter URL manually', 'pap-afiliados-pro'),
    155155                            value: customUrl,
    156156                            onChange: setCustomUrl,
     
    163163                            onClick: function() { applyLink(customUrl, 0, ''); },
    164164                            style: { marginTop: '8px' }
    165                         }, __('Inserir Link', 'pap-afiliados-pro')) : null
     165                        }, __('Insert Link', 'pap-afiliados-pro')) : null
    166166                    )
    167167                ) : null
  • pap-afiliados-pro/trunk/blocks/papafpro-linker/index.js

    r3469054 r3482385  
    2626    registerBlockType('papafpro/linker', {
    2727        title: __('PAP Linker', 'pap-afiliados-pro'),
    28         description: __('Inserir link de afiliado rastreável.', 'pap-afiliados-pro'),
     28        description: __('Insert trackable affiliate link.', 'pap-afiliados-pro'),
    2929        icon: 'admin-links',
    3030        category: 'widgets',
     
    9494                createElement(InspectorControls, null,
    9595                    createElement(PanelBody, {
    96                         title: __('Configurações do Link', 'pap-afiliados-pro'),
     96                        title: __('Link Settings', 'pap-afiliados-pro'),
    9797                        initialOpen: true
    9898                    },
    9999                        // Search field.
    100100                        createElement(TextControl, {
    101                             label: __('Buscar Produto', 'pap-afiliados-pro'),
     101                            label: __('Search Product', 'pap-afiliados-pro'),
    102102                            value: searchTerm,
    103103                            onChange: setSearchTerm,
    104                             placeholder: __('Digite para buscar...', 'pap-afiliados-pro')
     104                            placeholder: __('Type to search...', 'pap-afiliados-pro')
    105105                        }),
    106106
     
    129129                            style: { padding: '8px', background: '#f0f0f0', borderRadius: '4px', marginTop: '8px' }
    130130                        },
    131                             __('Produto ID:', 'pap-afiliados-pro') + ' ' + attributes.productId
     131                            __('Product ID:', 'pap-afiliados-pro') + ' ' + attributes.productId
    132132                        ) : null,
    133133
    134134                        // Manual URL override.
    135135                        createElement(TextControl, {
    136                             label: __('URL (sobrescreve produto)', 'pap-afiliados-pro'),
     136                            label: __('URL (overrides product)', 'pap-afiliados-pro'),
    137137                            value: attributes.url,
    138138                            onChange: function(val) { setAttributes({ url: val }); },
     
    162162                        value: attributes.text,
    163163                        onChange: function(val) { setAttributes({ text: val }); },
    164                         placeholder: __('Texto do link...', 'pap-afiliados-pro'),
     164                        placeholder: __('Link text...', 'pap-afiliados-pro'),
    165165                        className: 'papafpro-linker-text-input'
    166166                    })
  • pap-afiliados-pro/trunk/includes/class-papafpro-template-render.php

    r3469054 r3482385  
    303303        // Badge Marketplace (conditional).
    304304        if ( $show_marketplace && ! empty( $marketplace ) ) {
    305             $output .= '<div class="papafpro-card__badge papafpro-card__badge--marketplace">';
    306             $output .= esc_html( $marketplace );
    307             $output .= '</div>';
     305            $marketplace_label = $this->get_marketplace_label( $marketplace );
     306            $output           .= '<div class="papafpro-card__badge papafpro-card__badge--marketplace">';
     307            $output           .= esc_html( $marketplace_label );
     308            $output           .= '</div>';
    308309        }
    309310
     
    537538
    538539    /**
     540     * Map marketplace key to display label.
     541     *
     542     * Converts the stored key (e.g. 'mercadolivre') to the human-readable
     543     * label (e.g. 'Mercado Livre') for badge rendering.
     544     *
     545     * @since  2.0.2
     546     * @access private
     547     * @param  string $key Marketplace key from post meta.
     548     * @return string Display label.
     549     */
     550    private function get_marketplace_label( $key ) {
     551        $labels = array(
     552            'amazon'       => 'Amazon',
     553            'mercadolivre' => 'Mercado Livre',
     554            'shopee'       => 'Shopee',
     555            'aliexpress'   => 'AliExpress',
     556            'magalu'       => 'Magazine Luiza',
     557            'outros'       => __( 'Other', 'pap-afiliados-pro' ),
     558        );
     559
     560        return isset( $labels[ $key ] ) ? $labels[ $key ] : $key;
     561    }
     562
     563    /**
    539564     * Gera a string de variáveis CSS inline para o atributo style do card.
    540565     *
  • pap-afiliados-pro/trunk/languages/pap-afiliados-pro-pt_BR.po

    r3469054 r3482385  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: PAP Afiliados Pro 2.0.0\n"
     6"Project-Id-Version: PAP Afiliados Pro 2.0.3\n"
    77"Report-Msgid-Bugs-To: https://pap-afiliados-pro.com.br\n"
    8 "POT-Creation-Date: 2026-02-18T00:00:00+00:00\n"
    9 "PO-Revision-Date: 2026-02-23 00:00+0000\n"
     8"POT-Creation-Date: 2026-03-13T00:00:00+00:00\n"
     9"PO-Revision-Date: 2026-03-13 00:00+0000\n"
    1010"Last-Translator: Fernando Pimenta\n"
    1111"Language-Team: Brazilian Portuguese\n"
     
    16351635msgstr "Documentação online em fernandopimenta.blog.br"
    16361636
     1637#: blocks/papafpro-linker/index.js:28
     1638msgid "Insert trackable affiliate link."
     1639msgstr "Inserir link de afiliado rastreável."
     1640
     1641#: blocks/papafpro-linker/index.js:96
     1642msgid "Link Settings"
     1643msgstr "Configurações do Link"
     1644
     1645#: blocks/papafpro-linker/index.js:101
     1646#: blocks/papafpro-linker-format/index.js:122
     1647msgid "Search Product"
     1648msgstr "Buscar Produto"
     1649
     1650#: blocks/papafpro-linker/index.js:104
     1651msgid "Type to search..."
     1652msgstr "Digite para buscar..."
     1653
     1654#: blocks/papafpro-linker/index.js:131
     1655msgid "Product ID:"
     1656msgstr "Produto ID:"
     1657
     1658#: blocks/papafpro-linker/index.js:136
     1659msgid "URL (overrides product)"
     1660msgstr "URL (sobrescreve produto)"
     1661
     1662#: blocks/papafpro-linker/index.js:164
     1663msgid "Link text..."
     1664msgstr "Texto do link..."
     1665
     1666#: blocks/papafpro-linker-format/index.js:117
     1667msgid "Insert PAP Link"
     1668msgstr "Inserir PAP Link"
     1669
     1670#: blocks/papafpro-linker-format/index.js:132
     1671msgid "Product name..."
     1672msgstr "Nome do produto..."
     1673
     1674#: blocks/papafpro-linker-format/index.js:154
     1675msgid "Or enter URL manually"
     1676msgstr "Ou insira URL manual"
     1677
     1678#: blocks/papafpro-linker-format/index.js:165
     1679msgid "Insert Link"
     1680msgstr "Inserir Link"
     1681
  • pap-afiliados-pro/trunk/languages/pap-afiliados-pro.pot

    r3469054 r3482385  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PAP Afiliados Pro 2.0.0\n"
     5"Project-Id-Version: PAP Afiliados Pro 2.0.3\n"
    66"Report-Msgid-Bugs-To: https://pap-afiliados-pro.com.br\n"
    7 "POT-Creation-Date: 2026-02-23T00:00:00+00:00\n"
     7"POT-Creation-Date: 2026-03-13T00:00:00+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    16311631msgstr ""
    16321632
     1633#: blocks/papafpro-linker/index.js:28
     1634msgid "Insert trackable affiliate link."
     1635msgstr ""
     1636
     1637#: blocks/papafpro-linker/index.js:96
     1638msgid "Link Settings"
     1639msgstr ""
     1640
     1641#: blocks/papafpro-linker/index.js:101
     1642#: blocks/papafpro-linker-format/index.js:122
     1643msgid "Search Product"
     1644msgstr ""
     1645
     1646#: blocks/papafpro-linker/index.js:104
     1647msgid "Type to search..."
     1648msgstr ""
     1649
     1650#: blocks/papafpro-linker/index.js:131
     1651msgid "Product ID:"
     1652msgstr ""
     1653
     1654#: blocks/papafpro-linker/index.js:136
     1655msgid "URL (overrides product)"
     1656msgstr ""
     1657
     1658#: blocks/papafpro-linker/index.js:164
     1659msgid "Link text..."
     1660msgstr ""
     1661
     1662#: blocks/papafpro-linker-format/index.js:117
     1663msgid "Insert PAP Link"
     1664msgstr ""
     1665
     1666#: blocks/papafpro-linker-format/index.js:132
     1667msgid "Product name..."
     1668msgstr ""
     1669
     1670#: blocks/papafpro-linker-format/index.js:154
     1671msgid "Or enter URL manually"
     1672msgstr ""
     1673
     1674#: blocks/papafpro-linker-format/index.js:165
     1675msgid "Insert Link"
     1676msgstr ""
     1677
  • pap-afiliados-pro/trunk/pap-afiliados-pro.php

    r3469054 r3482385  
    44 * Plugin URI:        https://pap-afiliados-pro.com.br
    55 * Description:       Professional affiliate link management for Brazilian marketplaces (Amazon, Mercado Livre, Shopee, AliExpress, and others).
    6  * Version:           2.0.2
     6 * Version:           2.0.3
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
     
    2424 * Constantes do plugin.
    2525 */
    26 define( 'PAPAFPRO_VERSION', '2.0.2' );
     26define( 'PAPAFPRO_VERSION', '2.0.3' );
    2727define( 'PAPAFPRO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2828define( 'PAPAFPRO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • pap-afiliados-pro/trunk/readme.txt

    r3469054 r3482385  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.0.2
     7Stable tag: 2.0.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    131131== Changelog ==
    132132
     133= 2.0.3 =
     134* Fixed: Marketplace badge for "Mercado Livre" displayed without space ("MERCADOLIVRE")
     135* Fixed: Several UI strings were hardcoded in Portuguese instead of English, causing untranslated labels on translate.wordpress.org
     136* i18n: Regenerated .pot, updated .po/.mo translation files
     137
    133138= 2.0.2 =
    134139* Added: Preset ID column in Template Builder preset list
     
    171176== Upgrade Notice ==
    172177
     178= 2.0.3 =
     179Fixes marketplace badge display for Mercado Livre and corrects hardcoded Portuguese strings for proper translation support.
     180
    173181= 2.0.2 =
    174182Preset UX improvements: ID column, name-based lookup in shortcodes, native table layout.
Note: See TracChangeset for help on using the changeset viewer.