Changeset 3334052
- Timestamp:
- 07/25/2025 08:35:40 AM (7 months ago)
- Location:
- inpost-international/trunk
- Files:
-
- 35 edited
-
assets/build/inpost-intl-block-frontend.js (modified) (1 diff)
-
assets/js/front.js (modified) (14 diffs)
-
blocks/src/js/inpost-intl-block/block.js (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
inpost-international.php (modified) (2 diffs)
-
lang/inpost-international-de_DE-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-de_DE-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-de_DE.mo (modified) (previous)
-
lang/inpost-international-de_DE.po (modified) (3 diffs)
-
lang/inpost-international-es_ES-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-es_ES-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-es_ES.mo (modified) (previous)
-
lang/inpost-international-es_ES.po (modified) (3 diffs)
-
lang/inpost-international-fr_FR.mo (modified) (previous)
-
lang/inpost-international-fr_FR.po (modified) (3 diffs)
-
lang/inpost-international-it_IT-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-it_IT-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-it_IT.mo (modified) (previous)
-
lang/inpost-international-it_IT.po (modified) (3 diffs)
-
lang/inpost-international-nl_BE-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-nl_BE-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-nl_BE.mo (modified) (previous)
-
lang/inpost-international-nl_BE.po (modified) (4 diffs)
-
lang/inpost-international-nl_NL-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-nl_NL-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-nl_NL.mo (modified) (previous)
-
lang/inpost-international-nl_NL.po (modified) (3 diffs)
-
lang/inpost-international-pl_PL-inpost-international-wc-blocks-integration.json (modified) (1 diff)
-
lang/inpost-international-pl_PL-inpost_international_front_js.json (modified) (1 diff)
-
lang/inpost-international-pl_PL.mo (modified) (previous)
-
lang/inpost-international-pl_PL.po (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Plugin.php (modified) (2 diffs)
-
src/Settings/Admin_Settings.php (modified) (1 diff)
-
templates/classic-checkout-map-button.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
inpost-international/trunk/assets/build/inpost-intl-block-frontend.js
r3327370 r3334052 132 132 className: "button alt inpost_intl_show_geowidget", 133 133 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", { 135 135 id: "inpost_intl_selected_point_data_wrap", 136 136 className: "inpost_intl_selected_point_data_wrap", -
inpost-international/trunk/assets/js/front.js
r3327370 r3334052 5 5 const { __, _x, _n, sprintf } = window.wp.i18n; 6 6 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; 9 12 10 13 let inpost_intl_geowidget_modal; … … 345 348 if (typeof checkout_data != 'undefined' && checkout_data !== null) { 346 349 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 ); 349 352 } 350 353 } … … 364 367 function (event) { 365 368 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 ); 369 372 370 373 if (typeof selected_country != 'undefined' && selected_country !== null) { … … 398 401 inpost_international_frontend.set_initial_geowidget_position( this.value ); 399 402 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 401 414 $( '.inpost_intl_selected_point_data' ).each( 402 415 function (ind, elem) { … … 411 424 inpost_international_frontend.change_react_input_value( document.getElementById( 'inpost-international-locker-id' ), '' ); 412 425 inpost_international_frontend.change_react_input_value( document.getElementById( 'inpost-international-locker-description' ), '' ); 426 413 427 } 414 428 ); … … 455 469 if ( typeof inpost_methods != 'undefined' && inpost_methods !== null) { 456 470 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 ); 459 473 inpost_international_frontend.wait_for_element( '#inpost_intl_show_geowidget' ).then( 460 474 function (map_button) { 461 // console.log( "map_button_is_appeared" );475 // console.log( "map_button_is_visible" ); 462 476 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 ); 463 481 $( map_button ).css( 'display', 'block' ); 464 482 } else { … … 477 495 } else { 478 496 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 ); 481 499 } 482 500 … … 513 531 'updated_checkout update_checkout', 514 532 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 } 516 541 517 542 let is_need_to_show_map_button = false; … … 586 611 } 587 612 } 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 588 625 $( '#inpost_intl_show_geowidget' ).css( 'display', 'block' ); 589 626 … … 666 703 } 667 704 } 668 669 } 670 } 671 705 } 706 } 672 707 } 673 708 ); … … 872 907 } 873 908 874 $( "#inpost_intl_show_geowidget" ).text( button_text2 );909 // $( "#inpost_intl_show_geowidget" ).text( button_text2 ); 875 910 876 911 // for some templates like Divi - add hidden fields for Inpost Parcel locker dynamically. … … 928 963 } 929 964 ); 930 965 931 966 if ( point.detail.country !== selected_country ) { 932 967 console.log( 'point.country !== selected_country' ); … … 956 991 if ( typeof map_button != 'undefined' && map_button !== null) { 957 992 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 ); 958 997 $( map_button ).css( 'display', 'block' ); 959 998 $( '#inpost_intl_selected_point_data' ).show(); … … 1000 1039 let chosen_shipping_method = parsedData.message.payload.data.shippingRate.id; 1001 1040 1002 // console.log( 'Chosen_shipping_method:' );1003 // console.log( chosen_shipping_method );1041 // console.log( 'Chosen_shipping_method:' ); 1042 // console.log( chosen_shipping_method ); 1004 1043 1005 1044 if ( chosen_shipping_method.indexOf( 'inpost_international_automated_locker_point' ) !== -1 ) { -
inpost-international/trunk/blocks/src/js/inpost-intl-block/block.js
r3327370 r3334052 257 257 <> 258 258 <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' )} 260 260 </button> 261 261 <div id="inpost_intl_selected_point_data_wrap" className="inpost_intl_selected_point_data_wrap" -
inpost-international/trunk/changelog.txt
r3327370 r3334052 13 13 ### Feat 14 14 - 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 5 5 * Description: InPost International to oficjalna bezpłatna aplikacja InPost dla obsługi międzynarodowej dostawy 6 6 * Tags: woocommerce, inpost, shipments 7 * Version: 1.0. 37 * Version: 1.0.4 8 8 * Tested up to: 6.8 9 9 * Requires PHP: 7.4 … … 36 36 } 37 37 38 define( 'INPOST_INTL_PLUGIN_VERSION', '1.0. 3' );38 define( 'INPOST_INTL_PLUGIN_VERSION', '1.0.4' ); 39 39 define( 'INPOST_INTL_PLUGIN_SLUG', 'inpost_international' ); 40 40 define( 'INPOST_INTL_PLUGIN_FILE', __FILE__ ); -
inpost-international/trunk/lang/inpost-international-de_DE-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Sandbox" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-de_DE-inpost_international_front_js.json
r3291728 r3334052 14 14 "Sie müssen einen Lieferpunkt auswählen" 15 15 ], 16 " Select Parcel Locker": [17 " Paketschließfach auswählen"16 "Choose pick-up point": [ 17 "Sélectionner un point de collecte" 18 18 ], 19 "Change Parcel Locker": [20 " Paketfach wechseln"19 "Change pick-up point": [ 20 "Sélectionner un point de collecte" 21 21 ], 22 22 "Selected parcel locker:": [ -
inpost-international/trunk/lang/inpost-international-de_DE.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Farbe der Kartenschaltfläche" 187 187 188 msgid "Select Parcel Locker" 189 msgstr "Paketschließfach auswählen" 190 191 msgid "Select parcel locker" 192 msgstr "Paketschließfach auswählen" 188 msgid "Choose pick-up point" 189 msgstr "Sélectionner un point de collecte" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Zu kurzes Zeitintervall: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Paketschließfach ändern"737 msgid "Change pick-up point" 738 msgstr "Sélectionner un point de collecte" 742 739 743 740 msgid "Selected parcel locker:" -
inpost-international/trunk/lang/inpost-international-es_ES-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Sandbox" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-es_ES-inpost_international_front_js.json
r3291728 r3334052 14 14 "Debes seleccionar un punto de entrega" 15 15 ], 16 " Select Parcel Locker": [17 "Seleccione Parcel Locker"16 "Choose pick-up point": [ 17 "Seleccione un punto de recogida" 18 18 ], 19 "Change Parcel Locker": [20 " Casillero de cambio de paquetes"19 "Change pick-up point": [ 20 "Seleccione un punto de recogida" 21 21 ], 22 22 "Selected parcel locker:": [ 23 " Casillero de paquetesseleccionado:"23 "Punto de recogida seleccionado:" 24 24 ] 25 25 } -
inpost-international/trunk/lang/inpost-international-es_ES.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Color del botón del mapa" 187 187 188 msgid "Select Parcel Locker" 189 msgstr "Seleccionar InPost locker" 190 191 msgid "Select parcel locker" 192 msgstr "Seleccionar InPost locker" 188 msgid "Choose pick-up point" 189 msgstr "Seleccione un punto de recogida" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Intervalo de tiempo demasiado corto: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Cambiar InPost locker"737 msgid "Change pick-up point" 738 msgstr "Seleccione un punto de recogida" 742 739 743 740 msgid "Selected parcel locker:" 744 msgstr " InPost lockerseleccionado:"741 msgstr "Punto de recogida seleccionado:" 745 742 746 743 msgid "Selected parcel locker" -
inpost-international/trunk/lang/inpost-international-fr_FR.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Couleur du bouton de la carte" 187 187 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" 188 msgid "Choose pick-up point" 189 msgstr "Sélectionner un point de collecte" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Intervalle de temps trop court: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Changer de casier à colis Inpost"737 msgid "Change pick-up point" 738 msgstr "Sélectionner un point de collecte" 742 739 743 740 msgid "Selected parcel locker:" 744 msgstr " Casier à colis Inpost sélectionné:"741 msgstr "Point de collecte:" 745 742 746 743 msgid "Selected parcel locker" 747 msgstr " Casier à colis Inpost sélectionné"744 msgstr "Point de collecte" 748 745 749 746 msgid "Status:" -
inpost-international/trunk/lang/inpost-international-it_IT-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Sandbox" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-it_IT-inpost_international_front_js.json
r3291728 r3334052 14 14 "Devi selezionare un punto di consegna" 15 15 ], 16 " Select Parcel Locker": [17 "Seleziona il pacco locker"16 "Choose pick-up point": [ 17 "Selezionare un punto di ritiro" 18 18 ], 19 "Change Parcel Locker": [20 " Cambia pacco locker"19 "Change pick-up point": [ 20 "Selezionare un punto di ritiro" 21 21 ], 22 22 "Selected parcel locker:": [ 23 " Armadietto per pacchiselezionato:"23 "Punto di ritiro selezionato:" 24 24 ] 25 25 } -
inpost-international/trunk/lang/inpost-international-it_IT.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Colore del pulsante della mappa" 187 187 188 msgid "Select Parcel Locker" 189 msgstr "Seleziona Punto Pacco Inpost" 190 191 msgid "Select parcel locker" 192 msgstr "Seleziona Punto Pacco Inpost" 188 msgid "Choose pick-up point" 189 msgstr "Selezionare un punto di ritiro" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Intervallo di tempo troppo breve: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Cambia Punto Pacco Inpost"737 msgid "Change pick-up point" 738 msgstr "Selezionare un punto di ritiro" 742 739 743 740 msgid "Selected parcel locker:" 744 msgstr "Punto Pacco Inpost selezionato:"741 msgstr "Punto di ritiro:" 745 742 746 743 msgid "Selected parcel locker" 747 msgstr "Punto Pacco Inpost selezionato"744 msgstr "Punto di ritiro" 748 745 749 746 msgid "Status:" -
inpost-international/trunk/lang/inpost-international-nl_BE-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Sandbox" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-nl_BE-inpost_international_front_js.json
r3291728 r3334052 14 14 "U moet een afleverpunt selecteren" 15 15 ], 16 " Select Parcel Locker": [17 "S electeer Pakketkluis"16 "Choose pick-up point": [ 17 "Sélectionner un point de collecte" 18 18 ], 19 "Change Parcel Locker": [20 " Pakketkluis wijzigen"19 "Change pick-up point": [ 20 "Sélectionner un point de collecte" 21 21 ], 22 22 "Selected parcel locker:": [ 23 " Geselecteerde pakketkluis:"23 "Point de collecte:" 24 24 ] 25 25 } -
inpost-international/trunk/lang/inpost-international-nl_BE.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2024-11-18T15:04:40+02:00\n" 6 "PO-Revision-Date: 2025-0 4-03 11:38+0200\n"6 "PO-Revision-Date: 2025-07-23 14:53+0200\n" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "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" 15 15 "X-Poedit-Basepath: ../src\n" 16 16 "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" … … 186 186 msgstr "Couleur du bouton de la carte" 187 187 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" 188 msgid "Choose pick-up point" 189 msgstr "Sélectionner un point de collecte" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Te kort tijdsinterval: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Inpost locker wijzigen"737 msgid "Change pick-up point" 738 msgstr "Sélectionner un point de collecte" 742 739 743 740 msgid "Selected parcel locker:" 744 msgstr " Geselecteerde Inpost locker:"741 msgstr "Point de collecte:" 745 742 746 743 msgid "Selected parcel locker" 747 msgstr " Geselecteerde Inpost locker"744 msgstr "Point de collecte" 748 745 749 746 msgid "Status:" -
inpost-international/trunk/lang/inpost-international-nl_NL-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Sandbox" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-nl_NL-inpost_international_front_js.json
r3291728 r3334052 14 14 "U moet een afleverpunt selecteren" 15 15 ], 16 " Select Parcel Locker": [17 " Selecteer Pakketkluis"16 "Choose pick-up point": [ 17 "Levering van Locker of Relaispun" 18 18 ], 19 "Change Parcel Locker": [20 " Pakketkluis wijzigen"19 "Change pick-up point": [ 20 "Levering van Locker of Relaispun" 21 21 ], 22 22 "Selected parcel locker:": [ 23 " Geselecteerde pakketkluis:"23 "Locker of Relaispun:" 24 24 ] 25 25 } -
inpost-international/trunk/lang/inpost-international-nl_NL.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Kleur van de kaartknop" 187 187 188 msgid "Select Parcel Locker" 189 msgstr "Selecteer InPost locker" 190 191 msgid "Select parcel locker" 192 msgstr "Selecteer InPost locker" 188 msgid "Choose pick-up point" 189 msgstr "Levering van Locker of Relaispun" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Te kort tijdsinterval: " 739 736 740 msgid "Change Parcel Locker"741 msgstr " Inpost locker wijzigen"737 msgid "Change pick-up point" 738 msgstr "Levering van Locker of Relaispun" 742 739 743 740 msgid "Selected parcel locker:" 744 msgstr " Geselecteerde Inpost locker:"741 msgstr "Locker of Relaispun:" 745 742 746 743 msgid "Selected parcel locker" 747 msgstr " Geselecteerde Inpost locker"744 msgstr "Locker of Relaispun" 748 745 749 746 msgid "Status:" -
inpost-international/trunk/lang/inpost-international-pl_PL-inpost-international-wc-blocks-integration.json
r3291728 r3334052 14 14 "Piaskownica" 15 15 ], 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" 21 18 ] 22 19 } -
inpost-international/trunk/lang/inpost-international-pl_PL-inpost_international_front_js.json
r3291728 r3334052 14 14 "Musisz wybrać punkt dostawy" 15 15 ], 16 " Select Parcel Locker": [17 "Wybierz p aczkomat"16 "Choose pick-up point": [ 17 "Wybierz punkt odbioru" 18 18 ], 19 "Change Parcel Locker": [20 "Zmień p aczkomat"19 "Change pick-up point": [ 20 "Zmień punkt odbioru" 21 21 ], 22 22 "Selected parcel locker:": [ 23 "Wybrany p aczkomat:"23 "Wybrany punkt odbioru:" 24 24 ], 25 25 "Are you sure?": [ -
inpost-international/trunk/lang/inpost-international-pl_PL.po
r3327370 r3334052 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "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" 7 7 "Last-Translator: Aleksander Sikirytski <[email protected]>\n" 8 8 "Language-Team: Aleksander Sikirytski <[email protected]>\n" … … 186 186 msgstr "Kolor przycisku mapy" 187 187 188 msgid "Select Parcel Locker" 189 msgstr "Wybierz paczkomat" 190 191 msgid "Select parcel locker" 192 msgstr "Wybierz paczkomat" 188 msgid "Choose pick-up point" 189 msgstr "Wybierz punkt odbioru" 193 190 194 191 msgid "WooCommerce Shipping Settings" … … 738 735 msgstr "Zbyt krótki odstęp czasu: " 739 736 740 msgid "Change Parcel Locker"741 msgstr "Zmień p aczkomat"737 msgid "Change pick-up point" 738 msgstr "Zmień punkt odbioru" 742 739 743 740 msgid "Selected parcel locker:" … … 881 878 msgid "Supported mobile phone numbers for countries Poland, Italy, Spain, Portugal, France, Netherlands, Luxembourg, Belgium." 882 879 msgstr "Obsługiwane numery telefonów dla następujących krajów: Polska, Włochy, Hiszpania, Portugalia, Francja, Holandia, Luksemburg, Belgia." 880 881 msgid "Map button text for buyers from Italy" 882 msgstr "Tekst przycisku mapy dla kupujących z Włoch" 883 884 msgid "Map button text for buyers from Spain" 885 msgstr "Tekst przycisku mapy dla kupujących z Hiszpanii" 886 887 msgid "Map button text for buyers from Portugal" 888 msgstr "Tekst przycisku mapy dla kupujących z Portugalii" 889 890 msgid "Map button text for buyers from the Netherlands" 891 msgstr "Tekst przycisku mapy dla kupujących z Holandii" 892 893 msgid "Map button text for buyers from France" 894 msgstr "Tekst przycisku mapy dla kupujących z Francji" 895 896 msgid "Tekst przycisku mapy dla kupujących z Belgii" 897 msgstr "Tekst przycisku mapy dla kupujących z Włoch" 898 899 msgid "Map button text for buyers from Luxembourg" 900 msgstr "Tekst przycisku mapy dla kupujących z Luksemburga" -
inpost-international/trunk/readme.txt
r3332019 r3334052 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 7.4 8 8 License: GPLv3 or later … … 73 73 == Changelog == 74 74 75 = 1.0.4 = 76 * Feat: settings for map button text 77 75 78 = 1.0.3 = 76 79 * Feat: update JS lib for map -
inpost-international/trunk/src/Plugin.php
r3327370 r3334052 139 139 $geowidget_token = $this->get_geowidget_token(); 140 140 $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 ); 141 163 142 164 $front_js_path = inpost_intl_core()->get_plugin_dir() . 'assets/js/front.js'; … … 163 185 'inpost_methods' => $inpost_methods, 164 186 'geowidget_token' => $geowidget_token, 187 'button_texts' => $map_button_texts, 188 'selected_texts' => $selected_texts, 165 189 ) 166 190 ); -
inpost-international/trunk/src/Settings/Admin_Settings.php
r3327370 r3334052 369 369 'default' => '#ffc107', 370 370 '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 }, 371 491 ) 372 492 ); -
inpost-international/trunk/templates/classic-checkout-map-button.php
r3291728 r3334052 34 34 35 35 <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' ); ?> 37 37 </div> 38 38
Note: See TracChangeset
for help on using the changeset viewer.