Changeset 3422046
- Timestamp:
- 12/17/2025 03:21:41 PM (3 months ago)
- Location:
- woot-ro/trunk
- Files:
-
- 3 added
- 3 deleted
- 7 edited
-
README.txt (modified) (3 diffs)
-
includes/class-woot-i18n.php (modified) (1 diff)
-
includes/class-woot-woocommerce-couriers.php (modified) (5 diffs)
-
includes/class-woot-woocommerce-locations.php (modified) (6 diffs)
-
includes/class-woot-woocommerce.php (modified) (4 diffs)
-
includes/class-woot.php (modified) (1 diff)
-
languages/woot-ro-ro_RO.mo (added)
-
languages/woot-ro-ro_RO.po (added)
-
languages/woot-ro.pot (added)
-
languages/woot-ro_RO.mo (deleted)
-
languages/woot-ro_RO.po (deleted)
-
languages/woot.pot (deleted)
-
woot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woot-ro/trunk/README.txt
r3422019 r3422046 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9 6 Stable tag: 2. 0.96 Stable tag: 2.1.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 51 51 52 52 == Changelog == 53 54 = 2.1.0 = 55 * Improvement: Updated text domain to match plugin slug (woot-ro) 56 * Improvement: Fixed internationalization for WordPress.org translations 57 * Improvement: Updated Romanian translations 53 58 54 59 = 2.0.9 = … … 103 108 == Upgrade Notice == 104 109 110 = 2.1.0 = 111 * Fixed internationalization for WordPress.org translations 112 105 113 = 2.0.9 = 106 114 * New features: Payment method fees, order received location display, HPOS compatibility -
woot-ro/trunk/includes/class-woot-i18n.php
r3153520 r3422046 36 36 37 37 load_plugin_textdomain( 38 'woot ',38 'woot-ro', 39 39 false, 40 dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'40 'woot-ro/languages' 41 41 ); 42 42 -
woot-ro/trunk/includes/class-woot-woocommerce-couriers.php
r3422017 r3422046 24 24 25 25 $this->id = 'woot_couriers'; 26 $this->method_title = __('Woot.ro - Couriers', 'woot ');27 $this->method_description = __('Shipping method for Woot.ro couriers.', 'woot ');26 $this->method_title = __('Woot.ro - Couriers', 'woot-ro'); 27 $this->method_description = __('Shipping method for Woot.ro couriers.', 'woot-ro'); 28 28 29 29 $this->supports = array( … … 35 35 36 36 $this->enabled = isset($this->instance_settings['enabled']) ? $this->instance_settings['enabled'] : 'yes'; 37 $this->title = !empty($this->instance_settings['title']) ? $this->instance_settings['title'] : __('Courier shipping', 'woot ');37 $this->title = !empty($this->instance_settings['title']) ? $this->instance_settings['title'] : __('Courier shipping', 'woot-ro'); 38 38 } 39 39 … … 81 81 82 82 $this->add_rate([ 83 'label' => $this->instance_settings['title'] ?? __('Courier shipping', 'woot '),83 'label' => $this->instance_settings['title'] ?? __('Courier shipping', 'woot-ro'), 84 84 'cost' => $cost 85 85 ]); … … 92 92 $fields = array( 93 93 'title' => array( 94 'title' => __('Title', 'woot '),94 'title' => __('Title', 'woot-ro'), 95 95 'type' => 'text', 96 'description' => __('Title to be display on site', 'woot '),97 'default' => __('Courier shipping', 'woot ')96 'description' => __('Title to be display on site', 'woot-ro'), 97 'default' => __('Courier shipping', 'woot-ro') 98 98 ), 99 99 100 100 'shipping_price' => array( 101 'title' => __('Cost', 'woot '),101 'title' => __('Cost', 'woot-ro'), 102 102 'type' => 'number', 103 'description' => __('Shipping price', 'woot '),103 'description' => __('Shipping price', 'woot-ro'), 104 104 'default' => '' 105 105 ), 106 106 107 107 'shipping_free' => array( 108 'title' => __('Free', 'woot '),108 'title' => __('Free', 'woot-ro'), 109 109 'type' => 'number', 110 'description' => __('Minimum subtotal for free shipping', 'woot '),110 'description' => __('Minimum subtotal for free shipping', 'woot-ro'), 111 111 'default' => '' 112 112 ) … … 117 117 if ($gateways) { 118 118 $fields[] = array( 119 'title' => __('Payment methods fees', 'woot '),119 'title' => __('Payment methods fees', 'woot-ro'), 120 120 'type' => 'title', 121 'description' => __('Extra charges for specific payment method alongside this shipping method.', 'woot '),121 'description' => __('Extra charges for specific payment method alongside this shipping method.', 'woot-ro'), 122 122 'default' => '' 123 123 ); -
woot-ro/trunk/includes/class-woot-woocommerce-locations.php
r3422017 r3422046 24 24 25 25 $this->id = 'woot_locations'; 26 $this->method_title = __('Woot.ro - Locations', 'woot ');27 $this->method_description = __('Shipping method for Woot.ro locations.', 'woot ');26 $this->method_title = __('Woot.ro - Locations', 'woot-ro'); 27 $this->method_description = __('Shipping method for Woot.ro locations.', 'woot-ro'); 28 28 29 29 $this->supports = array( … … 35 35 36 36 $this->enabled = isset($this->instance_settings['enabled']) ? $this->instance_settings['enabled'] : 'yes'; 37 $this->title = !empty($this->instance_settings['title']) ? $this->instance_settings['title'] : __('Location shipping', 'woot ');37 $this->title = !empty($this->instance_settings['title']) ? $this->instance_settings['title'] : __('Location shipping', 'woot-ro'); 38 38 } 39 39 … … 71 71 // Validate couriers 72 72 if (empty($post_data['woocommerce_' . $this->id . '_couriers'])) { 73 $this->add_error(__('Select at least one courier', 'woot '));73 $this->add_error(__('Select at least one courier', 'woot-ro')); 74 74 return false; 75 75 } … … 88 88 89 89 $this->add_rate([ 90 'label' => $this->instance_settings['title'] ?? __('Location shipping', 'woot '),90 'label' => $this->instance_settings['title'] ?? __('Location shipping', 'woot-ro'), 91 91 'cost' => $cost 92 92 ]); … … 99 99 $fields = array( 100 100 'title' => array( 101 'title' => __('Title', 'woot '),101 'title' => __('Title', 'woot-ro'), 102 102 'type' => 'text', 103 'description' => __('Title to be display on site', 'woot '),104 'default' => __('Location shipping', 'woot ')103 'description' => __('Title to be display on site', 'woot-ro'), 104 'default' => __('Location shipping', 'woot-ro') 105 105 ), 106 106 107 107 'shipping_price' => array( 108 'title' => __('Cost', 'woot '),108 'title' => __('Cost', 'woot-ro'), 109 109 'type' => 'number', 110 'description' => __('Shipping price', 'woot '),110 'description' => __('Shipping price', 'woot-ro'), 111 111 'default' => '' 112 112 ), 113 113 114 114 'shipping_free' => array( 115 'title' => __('Free', 'woot '),115 'title' => __('Free', 'woot-ro'), 116 116 'type' => 'number', 117 'description' => __('Minimum subtotal for free shipping', 'woot '),117 'description' => __('Minimum subtotal for free shipping', 'woot-ro'), 118 118 'default' => '' 119 119 ), 120 120 121 121 'couriers' => array( 122 'title' => __('Couriers', 'woot '),122 'title' => __('Couriers', 'woot-ro'), 123 123 'type' => 'multiselect', 124 'description' => __('Select the couriers you want to appear on the map or in select', 'woot '),124 'description' => __('Select the couriers you want to appear on the map or in select', 'woot-ro'), 125 125 'default' => [], 126 126 'options' => [] … … 143 143 if ($gateways) { 144 144 $fields[] = array( 145 'title' => __('Payment methods fees', 'woot '),145 'title' => __('Payment methods fees', 'woot-ro'), 146 146 'type' => 'title', 147 'description' => __('Extra charges for specific payment method alongside this shipping method.', 'woot '),147 'description' => __('Extra charges for specific payment method alongside this shipping method.', 'woot-ro'), 148 148 'default' => '' 149 149 ); -
woot-ro/trunk/includes/class-woot-woocommerce.php
r3422017 r3422046 366 366 echo '<button type="button" class="button alt wp-element-button wt-locations-btn" onclick="wootOpenLocationsMap()"> 367 367 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg> 368 <span>' . esc_html__('Select delivery point', 'woot ') . '</span>368 <span>' . esc_html__('Select delivery point', 'woot-ro') . '</span> 369 369 </button>'; 370 370 echo '<div class="wt-location-details" id="wt-location-details" style="' . $details_style . '">' . $details_html . '</div>'; … … 372 372 <div class="wt-modal-content"> 373 373 <div class="wt-modal-toolbar"> 374 <div class="wt-toolbar-title">' . esc_html__('Select a delivery point', 'woot ') . '</div>375 <button type="button" class="wt-modal-close" onclick="wootCloseLocationsMap()" aria-label="' . esc_attr__('Close', 'woot ') . '">374 <div class="wt-toolbar-title">' . esc_html__('Select a delivery point', 'woot-ro') . '</div> 375 <button type="button" class="wt-modal-close" onclick="wootCloseLocationsMap()" aria-label="' . esc_attr__('Close', 'woot-ro') . '"> 376 376 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg> 377 377 </button> … … 407 407 408 408 if (empty($location_id)) { 409 wc_add_notice(__('Please select a delivery location from the map.', 'woot '), 'error');409 wc_add_notice(__('Please select a delivery location from the map.', 'woot-ro'), 'error'); 410 410 } 411 411 } … … 631 631 632 632 echo '<section class="woocommerce-delivery-point">'; 633 echo '<h2 class="woocommerce-delivery-point__title">' . esc_html__('Delivery point', 'woot ') . '</h2>';633 echo '<h2 class="woocommerce-delivery-point__title">' . esc_html__('Delivery point', 'woot-ro') . '</h2>'; 634 634 echo $this->build_location_card_html($location); 635 635 echo '</section>'; -
woot-ro/trunk/includes/class-woot.php
r3422017 r3422046 149 149 $plugin_i18n = new Woot_i18n(); 150 150 151 $this->loader->add_action(' plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');151 $this->loader->add_action('init', $plugin_i18n, 'load_plugin_textdomain'); 152 152 } 153 153 -
woot-ro/trunk/woot.php
r3422019 r3422046 17 17 * Plugin URI: https://woot.ro 18 18 * Description: Integrates all popular couriers in Romania, providing a one-stop solution for all your delivery needs 19 * Version: 2. 0.919 * Version: 2.1.0 20 20 * Author: Woot.ro 21 21 * Author URI: https://woot.ro 22 22 * License: GPL-2.0+ 23 23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 24 * Text Domain: woot 24 * Text Domain: woot-ro 25 25 * Domain Path: /languages 26 26 */ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('WOOT_VERSION', '2. 0.9');38 define('WOOT_VERSION', '2.1.0'); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.