Plugin Directory

Changeset 3334052


Ignore:
Timestamp:
07/25/2025 08:35:40 AM (7 months ago)
Author:
inpost
Message:

Version 1.0.4

Location:
inpost-international/trunk
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • inpost-international/trunk/assets/build/inpost-intl-block-frontend.js

    r3327370 r3334052  
    132132                className: "button alt inpost_intl_show_geowidget",
    133133                id: "inpost_intl_show_geowidget"
    134             }, (0, i.__)("Select Parcel Locker", "inpost-international")), (0, t.createElement)("div", {
     134            }, (0, i.__)("Choose pick-up point", "inpost-international")), (0, t.createElement)("div", {
    135135                id: "inpost_intl_selected_point_data_wrap",
    136136                className: "inpost_intl_selected_point_data_wrap",
  • inpost-international/trunk/assets/js/front.js

    r3327370 r3334052  
    55            const { __, _x, _n, sprintf } = window.wp.i18n;
    66            const validation_warning      = __( 'You must select a delivery point', 'inpost-international' );
    7             const button_text             = __( 'Select Parcel Locker', 'inpost-international' );
    8             const button_text2            = __( 'Change Parcel Locker', 'inpost-international' );
     7            let button_text               = __( 'Choose pick-up point', 'inpost-international' );
     8            let button_text2              = __( 'Change pick-up point', 'inpost-international' );
     9
     10            const button_texts         = inpost_intl_frontend.button_texts;
     11            const selected_point_texts = inpost_intl_frontend.selected_texts;
    912
    1013            let inpost_intl_geowidget_modal;
     
    345348                    if (typeof checkout_data != 'undefined' && checkout_data !== null) {
    346349                        selected_country = checkout_data.shipping_address.country;
    347                         //console.log( "window.wcSettings country_code" );
    348                         //console.log( selected_country );
     350                        // console.log( "window.wcSettings country_code" );
     351                        // console.log( selected_country );
    349352                    }
    350353                }
     
    364367                        function (event) {
    365368                            inpost_global_geowidget_api = event.detail.api;
    366                             //console.log( 'inpost_global_geowidget_api' );
    367                             //console.log( inpost_global_geowidget_api );
    368                             //console.log( selected_country );
     369                            // console.log( 'inpost_global_geowidget_api' );
     370                            // console.log( inpost_global_geowidget_api );
     371                            // console.log( selected_country );
    369372
    370373                            if (typeof selected_country != 'undefined' && selected_country !== null) {
     
    398401                                inpost_international_frontend.set_initial_geowidget_position( this.value );
    399402                                selected_country = this.value;
    400                                 $( '#inpost_intl_show_geowidget' ).css( 'display', 'none' );
     403                                if ( button_texts.hasOwnProperty( selected_country ) ) {
     404                                    button_text = button_texts[selected_country];
     405                                    if (typeof $( '#inpost_intl_show_geowidget' ) != 'undefined' && $( '#inpost_intl_show_geowidget' ) !== null ) {
     406                                        $('#inpost_intl_show_geowidget').text(button_text);
     407                                    }
     408                                } else {
     409                                    if (typeof $( '#inpost_intl_show_geowidget' ) != 'undefined' && $( '#inpost_intl_show_geowidget' ) !== null ) {
     410                                        $( '#inpost_intl_show_geowidget' ).css( 'display', 'none' );
     411                                    }
     412                                }
     413
    401414                                $( '.inpost_intl_selected_point_data' ).each(
    402415                                    function (ind, elem) {
     
    411424                                inpost_international_frontend.change_react_input_value( document.getElementById( 'inpost-international-locker-id' ), '' );
    412425                                inpost_international_frontend.change_react_input_value( document.getElementById( 'inpost-international-locker-description' ), '' );
     426
    413427                            }
    414428                        );
     
    455469                            if ( typeof inpost_methods != 'undefined' && inpost_methods !== null) {
    456470                                let map_config_settings = inpost_methods[instance_id];
    457                                 console.log( "map_config_settings" );
    458                                 console.log( map_config_settings );
     471                                // console.log( "map_config_settings" );
     472                                // console.log( map_config_settings );
    459473                                inpost_international_frontend.wait_for_element( '#inpost_intl_show_geowidget' ).then(
    460474                                    function (map_button) {
    461                                         //console.log( "map_button_is_appeared" );
     475                                        // console.log( "map_button_is_visible" );
    462476                                        if ( typeof map_config_settings != 'undefined' && map_config_settings !== null) {
     477                                            if ( button_texts.hasOwnProperty( selected_country ) ) {
     478                                                button_text = button_texts[selected_country];
     479                                            }
     480                                            $( map_button ).text( button_text );
    463481                                            $( map_button ).css( 'display', 'block' );
    464482                                        } else {
     
    477495            } else {
    478496                console.log( 'CHECKOUT TYPE BLOCK: false' );
    479                 //console.log( "wc_checkout_params" );
    480                 //console.log( window.wc_checkout_params );
     497                // console.log( "wc_checkout_params" );
     498                // console.log( window.wc_checkout_params );
    481499            }
    482500
     
    513531                'updated_checkout update_checkout',
    514532                function () {
    515                     //console.log( 'Inpost INT: updated checkout' );
     533
     534                    let selected_point_text = '';
     535                    if ( button_texts.hasOwnProperty( selected_country ) ) {
     536                        button_text = button_texts[selected_country];
     537                    }
     538                    if ( selected_point_texts.hasOwnProperty( selected_country ) ) {
     539                        selected_point_text = selected_point_texts[selected_country];
     540                    }
    516541
    517542                    let is_need_to_show_map_button = false;
     
    586611                            }
    587612                        }
     613
     614                        $( '#inpost_intl_show_geowidget' ).each(
     615                            function (ind, elem) {
     616                                $( elem ).text( button_text );
     617                            }
     618                        );
     619                        $( '.inpost_intl-visible-point-header' ).each(
     620                            function (ind, elem) {
     621                                $( elem ).text( selected_point_text );
     622                            }
     623                        );
     624
    588625                        $( '#inpost_intl_show_geowidget' ).css( 'display', 'block' );
    589626
     
    666703                                }
    667704                            }
    668 
    669                         }
    670                     }
    671 
     705                        }
     706                    }
    672707                }
    673708            );
     
    872907                    }
    873908
    874                     $( "#inpost_intl_show_geowidget" ).text( button_text2 );
     909                    // $( "#inpost_intl_show_geowidget" ).text( button_text2 );
    875910
    876911                    // for some templates like Divi - add hidden fields for Inpost Parcel locker dynamically.
     
    928963                        }
    929964                    );
    930                    
     965
    931966                    if ( point.detail.country !== selected_country ) {
    932967                        console.log( 'point.country !== selected_country' );
     
    956991                                    if ( typeof map_button != 'undefined' && map_button !== null) {
    957992                                        if ( typeof map_config_settings != 'undefined' && map_config_settings !== null) {
     993                                            if ( button_texts.hasOwnProperty( selected_country ) ) {
     994                                                button_text = button_texts[selected_country];
     995                                            }
     996                                            $( map_button ).text( button_text );
    958997                                            $( map_button ).css( 'display', 'block' );
    959998                                            $( '#inpost_intl_selected_point_data' ).show();
     
    10001039                            let chosen_shipping_method = parsedData.message.payload.data.shippingRate.id;
    10011040
    1002                             //console.log( 'Chosen_shipping_method:' );
    1003                             //console.log( chosen_shipping_method );
     1041                            // console.log( 'Chosen_shipping_method:' );
     1042                            // console.log( chosen_shipping_method );
    10041043
    10051044                            if ( chosen_shipping_method.indexOf( 'inpost_international_automated_locker_point' ) !== -1 ) {
  • inpost-international/trunk/blocks/src/js/inpost-intl-block/block.js

    r3327370 r3334052  
    257257                <>
    258258                    <button className="button alt inpost_intl_show_geowidget" id="inpost_intl_show_geowidget">
    259                         {__( 'Select Parcel Locker', 'inpost-international' )}
     259                        {__( 'Choose pick-up point', 'inpost-international' )}
    260260                    </button>
    261261                    <div id="inpost_intl_selected_point_data_wrap" className="inpost_intl_selected_point_data_wrap"
  • inpost-international/trunk/changelog.txt

    r3327370 r3334052  
    1313### Feat
    1414- Cron to refresh token
     15
     16## [1.0.3] - 2025-07-21
     17### Feat
     18- update JS lib for map
     19
     20## [1.0.4] - 2025-07-28
     21### Feat
     22- settings for map button text
  • inpost-international/trunk/inpost-international.php

    r3332019 r3334052  
    55 * Description: InPost International to oficjalna bezpłatna aplikacja InPost dla obsługi międzynarodowej dostawy
    66 * Tags: woocommerce, inpost, shipments
    7  * Version: 1.0.3
     7 * Version: 1.0.4
    88 * Tested up to: 6.8
    99 * Requires PHP: 7.4
     
    3636}
    3737
    38 define( 'INPOST_INTL_PLUGIN_VERSION', '1.0.3' );
     38define( 'INPOST_INTL_PLUGIN_VERSION', '1.0.4' );
    3939define( 'INPOST_INTL_PLUGIN_SLUG', 'inpost_international' );
    4040define( 'INPOST_INTL_PLUGIN_FILE', __FILE__ );
  • inpost-international/trunk/lang/inpost-international-de_DE-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Sandbox"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Wählen Sie den Punkt Inpost"
    18             ],
    19             "Select parcel locker": [
    20                 "Wählen Sie den Punkt Inpost"
     16            "Choose pick-up point": [
     17                "Sélectionner un point de collecte"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-de_DE-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "Sie müssen einen Lieferpunkt auswählen"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Paketschließfach auswählen"
     16            "Choose pick-up point": [
     17                "Sélectionner un point de collecte"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Paketfach wechseln"
     19            "Change pick-up point": [
     20                "Sélectionner un point de collecte"
    2121            ],
    2222            "Selected parcel locker:": [
  • inpost-international/trunk/lang/inpost-international-de_DE.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:36+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:52+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Farbe der Kartenschaltfläche"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Paketschließfach auswählen"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Paketschließfach auswählen"
     188msgid "Choose pick-up point"
     189msgstr "Sélectionner un point de collecte"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Zu kurzes Zeitintervall: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Paketschließfach ändern"
     737msgid "Change pick-up point"
     738msgstr "Sélectionner un point de collecte"
    742739
    743740msgid "Selected parcel locker:"
  • inpost-international/trunk/lang/inpost-international-es_ES-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Sandbox"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Seleccione Parcel Locker"
    18             ],
    19             "Select parcel locker": [
    20                 "Seleccione Parcel Locker"
     16            "Choose pick-up point": [
     17                "Seleccione un punto de recogida"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-es_ES-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "Debes seleccionar un punto de entrega"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Seleccione Parcel Locker"
     16            "Choose pick-up point": [
     17                "Seleccione un punto de recogida"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Casillero de cambio de paquetes"
     19            "Change pick-up point": [
     20                "Seleccione un punto de recogida"
    2121            ],
    2222            "Selected parcel locker:": [
    23                 "Casillero de paquetes seleccionado:"
     23                "Punto de recogida seleccionado:"
    2424            ]
    2525        }
  • inpost-international/trunk/lang/inpost-international-es_ES.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:36+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:52+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Color del botón del mapa"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Seleccionar InPost locker"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Seleccionar InPost locker"
     188msgid "Choose pick-up point"
     189msgstr "Seleccione un punto de recogida"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Intervalo de tiempo demasiado corto: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Cambiar InPost locker"
     737msgid "Change pick-up point"
     738msgstr "Seleccione un punto de recogida"
    742739
    743740msgid "Selected parcel locker:"
    744 msgstr "InPost locker seleccionado:"
     741msgstr "Punto de recogida seleccionado:"
    745742
    746743msgid "Selected parcel locker"
  • inpost-international/trunk/lang/inpost-international-fr_FR.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:35+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:53+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Couleur du bouton de la carte"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Sélectionner un casier à colis Inpost"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Sélectionner un casier à colis Inpost"
     188msgid "Choose pick-up point"
     189msgstr "Sélectionner un point de collecte"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Intervalle de temps trop court: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Changer de casier à colis Inpost"
     737msgid "Change pick-up point"
     738msgstr "Sélectionner un point de collecte"
    742739
    743740msgid "Selected parcel locker:"
    744 msgstr "Casier à colis Inpost sélectionné:"
     741msgstr "Point de collecte:"
    745742
    746743msgid "Selected parcel locker"
    747 msgstr "Casier à colis Inpost sélectionné"
     744msgstr "Point de collecte"
    748745
    749746msgid "Status:"
  • inpost-international/trunk/lang/inpost-international-it_IT-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Sandbox"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Seleziona il pacco locker"
    18             ],
    19             "Select parcel locker": [
    20                 "Seleziona il pacco locker"
     16            "Choose pick-up point": [
     17                "Selezionare un punto di ritiro"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-it_IT-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "Devi selezionare un punto di consegna"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Seleziona il pacco locker"
     16            "Choose pick-up point": [
     17                "Selezionare un punto di ritiro"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Cambia pacco locker"
     19            "Change pick-up point": [
     20                "Selezionare un punto di ritiro"
    2121            ],
    2222            "Selected parcel locker:": [
    23                 "Armadietto per pacchi selezionato:"
     23                "Punto di ritiro selezionato:"
    2424            ]
    2525        }
  • inpost-international/trunk/lang/inpost-international-it_IT.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:35+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:53+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Colore del pulsante della mappa"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Seleziona Punto Pacco Inpost"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Seleziona Punto Pacco Inpost"
     188msgid "Choose pick-up point"
     189msgstr "Selezionare un punto di ritiro"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Intervallo di tempo troppo breve: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Cambia Punto Pacco Inpost"
     737msgid "Change pick-up point"
     738msgstr "Selezionare un punto di ritiro"
    742739
    743740msgid "Selected parcel locker:"
    744 msgstr "Punto Pacco Inpost selezionato:"
     741msgstr "Punto di ritiro:"
    745742
    746743msgid "Selected parcel locker"
    747 msgstr "Punto Pacco Inpost selezionato"
     744msgstr "Punto di ritiro"
    748745
    749746msgid "Status:"
  • inpost-international/trunk/lang/inpost-international-nl_BE-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Sandbox"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Selecteer Pakketkluis"
    18             ],
    19             "Select parcel locker": [
    20                 "Selecteer Pakketkluis"
     16            "Choose pick-up point": [
     17                "Sélectionner un point de collecte"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-nl_BE-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "U moet een afleverpunt selecteren"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Selecteer Pakketkluis"
     16            "Choose pick-up point": [
     17                "Sélectionner un point de collecte"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Pakketkluis wijzigen"
     19            "Change pick-up point": [
     20                "Sélectionner un point de collecte"
    2121            ],
    2222            "Selected parcel locker:": [
    23                 "Geselecteerde pakketkluis:"
     23                "Point de collecte:"
    2424            ]
    2525        }
  • inpost-international/trunk/lang/inpost-international-nl_BE.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-04-03 11:38+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:53+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    1212"Content-Transfer-Encoding: 8bit\n"
    1313"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
    14 "X-Generator: Poedit 3.5\n"
     14"X-Generator: Poedit 3.6\n"
    1515"X-Poedit-Basepath: ../src\n"
    1616"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;X-Poedit-SearchPath-0: .\n"
     
    186186msgstr "Couleur du bouton de la carte"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Sélectionner un casier InPost"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Sélectionner un casier InPost"
     188msgid "Choose pick-up point"
     189msgstr "Sélectionner un point de collecte"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Te kort tijdsinterval: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Inpost locker wijzigen"
     737msgid "Change pick-up point"
     738msgstr "Sélectionner un point de collecte"
    742739
    743740msgid "Selected parcel locker:"
    744 msgstr "Geselecteerde Inpost locker:"
     741msgstr "Point de collecte:"
    745742
    746743msgid "Selected parcel locker"
    747 msgstr "Geselecteerde Inpost locker"
     744msgstr "Point de collecte"
    748745
    749746msgid "Status:"
  • inpost-international/trunk/lang/inpost-international-nl_NL-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Sandbox"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Selecteer Pakketkluis"
    18             ],
    19             "Select parcel locker": [
    20                 "Selecteer Pakketkluis"
     16            "Choose pick-up point": [
     17                "Levering van Locker of Relaispun"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-nl_NL-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "U moet een afleverpunt selecteren"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Selecteer Pakketkluis"
     16            "Choose pick-up point": [
     17                "Levering van Locker of Relaispun"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Pakketkluis wijzigen"
     19            "Change pick-up point": [
     20                "Levering van Locker of Relaispun"
    2121            ],
    2222            "Selected parcel locker:": [
    23                 "Geselecteerde pakketkluis:"
     23                "Locker of Relaispun:"
    2424            ]
    2525        }
  • inpost-international/trunk/lang/inpost-international-nl_NL.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:36+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:53+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Kleur van de kaartknop"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Selecteer InPost locker"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Selecteer InPost locker"
     188msgid "Choose pick-up point"
     189msgstr "Levering van Locker of Relaispun"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Te kort tijdsinterval: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Inpost locker wijzigen"
     737msgid "Change pick-up point"
     738msgstr "Levering van Locker of Relaispun"
    742739
    743740msgid "Selected parcel locker:"
    744 msgstr "Geselecteerde Inpost locker:"
     741msgstr "Locker of Relaispun:"
    745742
    746743msgid "Selected parcel locker"
    747 msgstr "Geselecteerde Inpost locker"
     744msgstr "Locker of Relaispun"
    748745
    749746msgid "Status:"
  • inpost-international/trunk/lang/inpost-international-pl_PL-inpost-international-wc-blocks-integration.json

    r3291728 r3334052  
    1414                "Piaskownica"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Wybierz punkt Inpost"
    18             ],
    19             "Select parcel locker": [
    20                 "Wybierz punkt Inpost"
     16            "Choose pick-up point": [
     17                "Wybierz punkt odbioru"
    2118            ]
    2219        }
  • inpost-international/trunk/lang/inpost-international-pl_PL-inpost_international_front_js.json

    r3291728 r3334052  
    1414                "Musisz wybrać punkt dostawy"
    1515            ],
    16             "Select Parcel Locker": [
    17                 "Wybierz paczkomat"
     16            "Choose pick-up point": [
     17                "Wybierz punkt odbioru"
    1818            ],
    19             "Change Parcel Locker": [
    20                 "Zmień paczkomat"
     19            "Change pick-up point": [
     20                "Zmień punkt odbioru"
    2121            ],
    2222            "Selected parcel locker:": [
    23                 "Wybrany paczkomat:"
     23                "Wybrany punkt odbioru:"
    2424            ],
    2525            "Are you sure?": [
  • inpost-international/trunk/lang/inpost-international-pl_PL.po

    r3327370 r3334052  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2024-11-18T15:04:40+02:00\n"
    6 "PO-Revision-Date: 2025-07-10 15:36+0200\n"
     6"PO-Revision-Date: 2025-07-23 14:53+0200\n"
    77"Last-Translator: Aleksander Sikirytski <[email protected]>\n"
    88"Language-Team: Aleksander Sikirytski <[email protected]>\n"
     
    186186msgstr "Kolor przycisku mapy"
    187187
    188 msgid "Select Parcel Locker"
    189 msgstr "Wybierz paczkomat"
    190 
    191 msgid "Select parcel locker"
    192 msgstr "Wybierz paczkomat"
     188msgid "Choose pick-up point"
     189msgstr "Wybierz punkt odbioru"
    193190
    194191msgid "WooCommerce Shipping Settings"
     
    738735msgstr "Zbyt krótki odstęp czasu: "
    739736
    740 msgid "Change Parcel Locker"
    741 msgstr "Zmień paczkomat"
     737msgid "Change pick-up point"
     738msgstr "Zmień punkt odbioru"
    742739
    743740msgid "Selected parcel locker:"
     
    881878msgid "Supported mobile phone numbers for countries Poland, Italy, Spain, Portugal, France, Netherlands, Luxembourg, Belgium."
    882879msgstr "Obsługiwane numery telefonów dla następujących krajów: Polska, Włochy, Hiszpania, Portugalia, Francja, Holandia, Luksemburg, Belgia."
     880
     881msgid "Map button text for buyers from Italy"
     882msgstr "Tekst przycisku mapy dla kupujących z Włoch"
     883
     884msgid "Map button text for buyers from Spain"
     885msgstr "Tekst przycisku mapy dla kupujących z Hiszpanii"
     886
     887msgid "Map button text for buyers from Portugal"
     888msgstr "Tekst przycisku mapy dla kupujących z Portugalii"
     889
     890msgid "Map button text for buyers from the Netherlands"
     891msgstr "Tekst przycisku mapy dla kupujących z Holandii"
     892
     893msgid "Map button text for buyers from France"
     894msgstr "Tekst przycisku mapy dla kupujących z Francji"
     895
     896msgid "Tekst przycisku mapy dla kupujących z Belgii"
     897msgstr "Tekst przycisku mapy dla kupujących z Włoch"
     898
     899msgid "Map button text for buyers from Luxembourg"
     900msgstr "Tekst przycisku mapy dla kupujących z Luksemburga"
  • inpost-international/trunk/readme.txt

    r3332019 r3334052  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    7373== Changelog ==
    7474
     75= 1.0.4 =
     76* Feat: settings for map button text
     77
    7578= 1.0.3 =
    7679* Feat: update JS lib for map
  • inpost-international/trunk/src/Plugin.php

    r3327370 r3334052  
    139139            $geowidget_token = $this->get_geowidget_token();
    140140            $this->enqueue_geowidget_assets();
     141           
     142            $map_button_texts = array(
     143                'PL' => 'Wybierz punkt odbioru',
     144                'IT' => ! empty( $plugin_geowidget_settings['geowidget_button_text_it'] ) ? $plugin_geowidget_settings['geowidget_button_text_it'] : 'Selezionare un punto di ritiro',
     145                'ES' => ! empty( $plugin_geowidget_settings['geowidget_button_text_es'] ) ? $plugin_geowidget_settings['geowidget_button_text_es'] : 'Seleccione un punto de recogida',
     146                'PT' => ! empty( $plugin_geowidget_settings['geowidget_button_text_pt'] ) ? $plugin_geowidget_settings['geowidget_button_text_pt'] : 'Selecionar um ponto de recolha',
     147                'NL' => ! empty( $plugin_geowidget_settings['geowidget_button_text_nl'] ) ? $plugin_geowidget_settings['geowidget_button_text_nl'] : 'Levering van Locker of Relaispun',
     148                'FR' => ! empty( $plugin_geowidget_settings['geowidget_button_text_fr'] ) ? $plugin_geowidget_settings['geowidget_button_text_fr'] : 'Sélectionner un point de collecte',
     149                'BE' => ! empty( $plugin_geowidget_settings['geowidget_button_text_be'] ) ? $plugin_geowidget_settings['geowidget_button_text_be'] : 'Sélectionner un point de collecte',
     150                'LU' => ! empty( $plugin_geowidget_settings['geowidget_button_text_lu'] ) ? $plugin_geowidget_settings['geowidget_button_text_lu'] : 'Sélectionner un point de collecte',
     151            );
     152           
     153            $selected_texts = array(
     154                'PL' => 'Wybrany punkt odbioru',
     155                'IT' => 'Punto di ritiro',
     156                'ES' => 'Punto de recogida',
     157                'PT' => 'Ponto de recolha',
     158                'NL' => 'Locker of Relaispun',
     159                'FR' => 'Point de collecte',
     160                'BE' => 'Point de collecte',
     161                'LU' => 'Point de collecte',
     162            );
    141163
    142164            $front_js_path = inpost_intl_core()->get_plugin_dir() . 'assets/js/front.js';
     
    163185                    'inpost_methods'     => $inpost_methods,
    164186                    'geowidget_token'    => $geowidget_token,
     187                    'button_texts'       => $map_button_texts,
     188                    'selected_texts'     => $selected_texts,
    165189                )
    166190            );
  • inpost-international/trunk/src/Settings/Admin_Settings.php

    r3327370 r3334052  
    369369                'default' => '#ffc107',
    370370                'desc'    => esc_html__( 'Color of map button', 'inpost-international' ),
     371            )
     372        );
     373       
     374        $this->settings_helper->add_field(
     375            $fifth_tab_section_id,
     376            array(
     377                'id'      => 'geowidget_button_text_it',
     378                'type'    => 'text',
     379                'name'    => '',
     380                'default' => 'Selezionare un punto di ritiro',
     381                'desc'    => function () {
     382                    ?>
     383                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from Italy', 'inpost-international' ); ?></p>
     384                    <?php
     385                },
     386            )
     387        );
     388
     389        $this->settings_helper->add_field(
     390            $fifth_tab_section_id,
     391            array(
     392                'id'      => 'geowidget_button_text_es',
     393                'type'    => 'text',
     394                'name'    => '',
     395                'default' => 'Seleccione un punto de recogida',
     396                'desc'    => function () {
     397                    ?>
     398                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from Spain', 'inpost-international' ); ?></p>
     399                    <?php
     400                },
     401            )
     402        );
     403
     404        $this->settings_helper->add_field(
     405            $fifth_tab_section_id,
     406            array(
     407                'id'      => 'geowidget_button_text_pt',
     408                'type'    => 'text',
     409                'name'    => '',
     410                'default' => 'Selecionar um ponto de recolha',
     411                'desc'    => function () {
     412                    ?>
     413                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from Portugal', 'inpost-international' ); ?></p>
     414                    <?php
     415                },
     416            )
     417        );
     418
     419        $this->settings_helper->add_field(
     420            $fifth_tab_section_id,
     421            array(
     422                'id'      => 'geowidget_button_text_nl',
     423                'type'    => 'text',
     424                'name'    => '',
     425                'default' => 'Levering van Locker of Relaispun',
     426                'desc'    => function () {
     427                    ?>
     428                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from the Netherlands', 'inpost-international' ); ?></p>
     429                    <?php
     430                },
     431            )
     432        );
     433
     434        $this->settings_helper->add_field(
     435            $fifth_tab_section_id,
     436            array(
     437                'id'      => 'geowidget_button_text_nl',
     438                'type'    => 'text',
     439                'name'    => '',
     440                'default' => 'Levering van Locker of Relaispun',
     441                'desc'    => function () {
     442                    ?>
     443                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from the Netherlands', 'inpost-international' ); ?></p>
     444                    <?php
     445                },
     446            )
     447        );
     448
     449        $this->settings_helper->add_field(
     450            $fifth_tab_section_id,
     451            array(
     452                'id'      => 'geowidget_button_text_fr',
     453                'type'    => 'text',
     454                'name'    => '',
     455                'default' => 'Sélectionner un point de collecte',
     456                'desc'    => function () {
     457                    ?>
     458                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from France', 'inpost-international' ); ?></p>
     459                    <?php
     460                },
     461            )
     462        );
     463
     464        $this->settings_helper->add_field(
     465            $fifth_tab_section_id,
     466            array(
     467                'id'      => 'geowidget_button_text_be',
     468                'type'    => 'text',
     469                'name'    => '',
     470                'default' => 'Sélectionner un point de collecte',
     471                'desc'    => function () {
     472                    ?>
     473                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from Belgium', 'inpost-international' ); ?></p>
     474                    <?php
     475                },
     476            )
     477        );
     478
     479        $this->settings_helper->add_field(
     480            $fifth_tab_section_id,
     481            array(
     482                'id'      => 'geowidget_button_text_lu',
     483                'type'    => 'text',
     484                'name'    => '',
     485                'default' => 'Sélectionner un point de collecte',
     486                'desc'    => function () {
     487                    ?>
     488                    <p class="inpost_intl_before_setting_description"><?php esc_html_e( 'Map button text for buyers from Luxembourg', 'inpost-international' ); ?></p>
     489                    <?php
     490                },
    371491            )
    372492        );
  • inpost-international/trunk/templates/classic-checkout-map-button.php

    r3291728 r3334052  
    3434
    3535            <div class="inpost_intl_show_geowidget" id="inpost_intl_show_geowidget">
    36                 <?php echo esc_html__( 'Select parcel locker', 'inpost-international' ); ?>
     36                <?php echo esc_html__( 'Choose pick-up point', 'inpost-international' ); ?>
    3737            </div>
    3838
Note: See TracChangeset for help on using the changeset viewer.