Plugin Directory

Changeset 3422046


Ignore:
Timestamp:
12/17/2025 03:21:41 PM (3 months ago)
Author:
wootro
Message:

Version 2.1.0 - Fixed internationalization, text domain now matches plugin slug (woot-ro)

Location:
woot-ro/trunk
Files:
3 added
3 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • woot-ro/trunk/README.txt

    r3422019 r3422046  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.0.9
     6Stable tag: 2.1.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    5151
    5252== 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
    5358
    5459= 2.0.9 =
     
    103108== Upgrade Notice ==
    104109
     110= 2.1.0 =
     111* Fixed internationalization for WordPress.org translations
     112
    105113= 2.0.9 =
    106114* New features: Payment method fees, order received location display, HPOS compatibility
  • woot-ro/trunk/includes/class-woot-i18n.php

    r3153520 r3422046  
    3636
    3737        load_plugin_textdomain(
    38             'woot',
     38            'woot-ro',
    3939            false,
    40             dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
     40            'woot-ro/languages'
    4141        );
    4242
  • woot-ro/trunk/includes/class-woot-woocommerce-couriers.php

    r3422017 r3422046  
    2424
    2525        $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');
    2828
    2929        $this->supports = array(
     
    3535
    3636        $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');
    3838    }
    3939
     
    8181
    8282        $this->add_rate([
    83             'label' => $this->instance_settings['title'] ?? __('Courier shipping', 'woot'),
     83            'label' => $this->instance_settings['title'] ?? __('Courier shipping', 'woot-ro'),
    8484            'cost' => $cost
    8585        ]);
     
    9292        $fields = array(
    9393            'title' => array(
    94                 'title' => __('Title', 'woot'),
     94                'title' => __('Title', 'woot-ro'),
    9595                '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')
    9898            ),
    9999
    100100            'shipping_price' => array(
    101                 'title' => __('Cost', 'woot'),
     101                'title' => __('Cost', 'woot-ro'),
    102102                'type' => 'number',
    103                 'description' => __('Shipping price', 'woot'),
     103                'description' => __('Shipping price', 'woot-ro'),
    104104                'default' => ''
    105105            ),
    106106
    107107            'shipping_free' => array(
    108                 'title' => __('Free', 'woot'),
     108                'title' => __('Free', 'woot-ro'),
    109109                'type' => 'number',
    110                 'description' => __('Minimum subtotal for free shipping', 'woot'),
     110                'description' => __('Minimum subtotal for free shipping', 'woot-ro'),
    111111                'default' => ''
    112112            )
     
    117117        if ($gateways) {
    118118            $fields[] = array(
    119                 'title' => __('Payment methods fees', 'woot'),
     119                'title' => __('Payment methods fees', 'woot-ro'),
    120120                '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'),
    122122                'default' => ''
    123123            );
  • woot-ro/trunk/includes/class-woot-woocommerce-locations.php

    r3422017 r3422046  
    2424
    2525        $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');
    2828
    2929        $this->supports = array(
     
    3535
    3636        $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');
    3838    }
    3939
     
    7171        // Validate couriers
    7272        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'));
    7474            return false;
    7575        }
     
    8888
    8989        $this->add_rate([
    90             'label' => $this->instance_settings['title'] ?? __('Location shipping', 'woot'),
     90            'label' => $this->instance_settings['title'] ?? __('Location shipping', 'woot-ro'),
    9191            'cost' => $cost
    9292        ]);
     
    9999        $fields = array(
    100100            'title' => array(
    101                 'title' => __('Title', 'woot'),
     101                'title' => __('Title', 'woot-ro'),
    102102                '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')
    105105            ),
    106106
    107107            'shipping_price' => array(
    108                 'title' => __('Cost', 'woot'),
     108                'title' => __('Cost', 'woot-ro'),
    109109                'type' => 'number',
    110                 'description' => __('Shipping price', 'woot'),
     110                'description' => __('Shipping price', 'woot-ro'),
    111111                'default' => ''
    112112            ),
    113113
    114114            'shipping_free' => array(
    115                 'title' => __('Free', 'woot'),
     115                'title' => __('Free', 'woot-ro'),
    116116                'type' => 'number',
    117                 'description' => __('Minimum subtotal for free shipping', 'woot'),
     117                'description' => __('Minimum subtotal for free shipping', 'woot-ro'),
    118118                'default' => ''
    119119            ),
    120120
    121121            'couriers' => array(
    122                 'title' => __('Couriers', 'woot'),
     122                'title' => __('Couriers', 'woot-ro'),
    123123                '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'),
    125125                'default' => [],
    126126                'options' => []
     
    143143        if ($gateways) {
    144144            $fields[] = array(
    145                 'title' => __('Payment methods fees', 'woot'),
     145                'title' => __('Payment methods fees', 'woot-ro'),
    146146                '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'),
    148148                'default' => ''
    149149            );
  • woot-ro/trunk/includes/class-woot-woocommerce.php

    r3422017 r3422046  
    366366                    echo '<button type="button" class="button alt wp-element-button wt-locations-btn" onclick="wootOpenLocationsMap()">
    367367                        <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>
    369369                    </button>';
    370370                    echo '<div class="wt-location-details" id="wt-location-details" style="' . $details_style . '">' . $details_html . '</div>';
     
    372372                                <div class="wt-modal-content">
    373373                                    <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') . '">
    376376                                            <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>
    377377                                        </button>
     
    407407
    408408                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');
    410410                }
    411411            }
     
    631631
    632632        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>';
    634634        echo $this->build_location_card_html($location);
    635635        echo '</section>';
  • woot-ro/trunk/includes/class-woot.php

    r3422017 r3422046  
    149149        $plugin_i18n = new Woot_i18n();
    150150
    151         $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
     151        $this->loader->add_action('init', $plugin_i18n, 'load_plugin_textdomain');
    152152    }
    153153
  • woot-ro/trunk/woot.php

    r3422019 r3422046  
    1717 * Plugin URI:        https://woot.ro
    1818 * Description:       Integrates all popular couriers in Romania, providing a one-stop solution for all your delivery needs
    19  * Version:           2.0.9
     19 * Version:           2.1.0
    2020 * Author:            Woot.ro
    2121 * Author URI:        https://woot.ro
    2222 * License:           GPL-2.0+
    2323 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    24  * Text Domain:       woot
     24 * Text Domain:       woot-ro
    2525 * Domain Path:       /languages
    2626 */
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('WOOT_VERSION', '2.0.9');
     38define('WOOT_VERSION', '2.1.0');
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.