Plugin Directory

Changeset 2009142


Ignore:
Timestamp:
01/09/2019 02:14:43 PM (7 years ago)
Author:
craftyclicks
Message:

feature: New config option allowing transliteration of non-ASCII characters to Latin characters

Location:
clicktoaddress-auto-complete/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • clicktoaddress-auto-complete/trunk/admin/js/config.js

    r1896347 r2009142  
    66 * @copyright   Copyright (c) 2018, Crafty Clicks Limited
    77 * @license     Licensed under the terms of the MIT license.
    8  * @version     1.1.8
     8 * @version     1.1.9
    99 */
    1010
  • clicktoaddress-auto-complete/trunk/admin/js/orders.js

    r1896347 r2009142  
    66 * @copyright   Copyright (c) 2018, Crafty Clicks Limited
    77 * @license     Licensed under the terms of the MIT license.
    8  * @version     1.1.8
     8 * @version     1.1.9
    99 */
    1010
     
    7575        countryMatchWith: 'iso_2'
    7676    };
     77    if(cc_c2a_config.transliterate == 1) {
     78        c2a_autocomplete_config.transliterate = 1;
     79    }
    7780    if(cc_c2a_config.match_countries) c2a_autocomplete_config.enabledCountries = c2a_enabled_countries;
    7881    if(cc_c2a_config.lock_country){
  • clicktoaddress-auto-complete/trunk/admin/js/users.js

    r1896347 r2009142  
    66 * @copyright   Copyright (c) 2018, Crafty Clicks Limited
    77 * @license     Licensed under the terms of the MIT license.
    8  * @version     1.1.8
     8 * @version     1.1.9
    99 */
    1010
     
    7474        countryMatchWith: 'iso_2'
    7575    };
     76    if(cc_c2a_config.transliterate == 1) {
     77        c2a_autocomplete_config.transliterate = 1;
     78    }
    7679    if(cc_c2a_config.match_countries) c2a_autocomplete_config.enabledCountries = c2a_enabled_countries;
    7780    if(cc_c2a_config.lock_country){
  • clicktoaddress-auto-complete/trunk/clicktoaddress-auto-complete.php

    r1896347 r2009142  
    55 * Author: Crafty Clicks
    66 * Author URI: https://craftyclicks.co.uk/
    7  * Version: 1.1.8
     7 * Version: 1.1.9
    88 *
    99 * This program is free software: you can redistribute it and/or modify
  • clicktoaddress-auto-complete/trunk/frontend/js/checkout.js

    r1896347 r2009142  
    66 * @copyright   Copyright (c) 2018, Crafty Clicks Limited
    77 * @license     Licensed under the terms of the MIT license.
    8  * @version     1.1.8
     8 * @version     1.1.9
    99 */
    1010
     
    8888        countryMatchWith: 'iso_2'
    8989    };
     90    if(cc_c2a_config.transliterate == 1) {
     91        c2a_autocomplete_config.transliterate = 1;
     92    }
    9093    if(cc_c2a_config.match_countries) c2a_autocomplete_config.enabledCountries = c2a_enabled_countries;
    9194    if(cc_c2a_config.lock_country){
  • clicktoaddress-auto-complete/trunk/includes/class-wc-clicktoaddress-autocomplete-integration.php

    r1844874 r2009142  
    5050            'country_button' =>         $this->get_option( 'country_button' ),
    5151            'generic_error' =>          $this->get_option( 'generic_error' ),
    52             'no_results' =>             $this->get_option( 'no_results' )
     52            'no_results' =>             $this->get_option( 'no_results' ),
     53            'transliterate' =>          $this->get_option('transliterate')
    5354        );
    5455
     
    347348                'default'       => 'No results found',
    348349                'placeholder'   => 'No results found'
     350            ),
     351            'transliterate' => array(
     352                'title'         => __( 'Transliterate for non ASCII characters', 'woocommerce-clicktoaddress-autocomplete' ),
     353                'type'          => 'select',
     354                'description'   => __( 'Changes non-Latin characters to Latin characters', 'woocommerce-clicktoaddress-autocomplete' ),
     355                'desc_tip'      => true,
     356                'default'       => 0,
     357                'options'     => array(
     358                    0 => __('No', 'woocommerce' ),
     359                    1 => __('Yes', 'woocommerce' )
     360                )
    349361            )
    350362        );
  • clicktoaddress-auto-complete/trunk/readme.txt

    r1896347 r2009142  
    44Tags: address, addresses, autocomplete, checkout, data, fill, find, finder, form, global, lookup, postcode, search, uk, validation, verification, woocommerce
    55Requires at least: 4.6
    6 Tested up to: 4.9.6
    7 Stable tag: 1.1.8
     6Tested up to: 4.9.8
     7Stable tag: 1.1.9
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6363== Changelog ==
    6464
     65= 1.1.9 =
     66* New config option allowing transliteration of non-ASCII characters to latin characters.
     67
    6568= 1.1.8 =
    6669* Fix: Trigger update event after address has been selected to validate the fields.
Note: See TracChangeset for help on using the changeset viewer.