Plugin Directory

Changeset 3379190


Ignore:
Timestamp:
10/16/2025 03:16:37 AM (6 months ago)
Author:
linguise
Message:

Updating to version 2.1.75

Location:
linguise
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • linguise/tags/2.1.75/linguise.php

    r3377801 r3379190  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.1.74
     7 * Version:2.1.75
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/tags/2.1.75/readme.txt

    r3377801 r3379190  
    44Requires at least: 4.0
    55Tested up to: 6.8
    6 Stable tag:2.1.74
     6Stable tag:2.1.75
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    104104
    105105== Changelog ==
     106= 2.1.75 =
     107- Fix: WooCommerce Issue: checkout process error
     108
    106109= 2.1.74 =
    107110- Feature: AI Translation support
  • linguise/tags/2.1.75/src/Helper.php

    r3366846 r3379190  
    380380        return preg_match('/\s/', $str) > 0;
    381381    }
     382
     383
     384    /**
     385     * Create a new URL based on the parsed_url output
     386     *
     387     * Code taken from Linguise Script Core Helper
     388     *
     389     * @param array   $parsed_url The parsed URL
     390     * @param boolean $encoded    Should we encode the URL or not.
     391     *
     392     * @return string
     393     */
     394    public static function buildUrl($parsed_url, $encoded = \false)
     395    {
     396        $final_url = '';
     397        if (empty($parsed_url['scheme'])) {
     398            $final_url .= '//';
     399        } else {
     400            $final_url .= $parsed_url['scheme'] . '://';
     401        }
     402
     403        if (!empty($parsed_url['user'])) {
     404            $final_url .= $parsed_url['user'];
     405            if (!empty($parsed_url['pass'])) {
     406                $final_url .= ':' . $parsed_url['pass'];
     407            }
     408            $final_url .= '@';
     409        }
     410
     411        $final_url .= empty($parsed_url['host']) ? '' : $parsed_url['host'];
     412
     413        if (!empty($parsed_url['port'])) {
     414            $final_url .= ':' . $parsed_url['port'];
     415        }
     416
     417        if (!empty($parsed_url['path'])) {
     418            if ($encoded) {
     419                $explode_path = array_map('rawurlencode', explode('/', $parsed_url['path']));
     420                $final_url .= implode('/', $explode_path);
     421            } else {
     422                $final_url .= $parsed_url['path'];
     423            }
     424        }
     425
     426        if (!empty($parsed_url['query'])) {
     427            $final_url .= '?' . $parsed_url['query'];
     428        }
     429
     430        if (!empty($parsed_url['fragment'])) {
     431            $final_url .= '#' . $parsed_url['fragment'];
     432        }
     433
     434        return $final_url;
     435    }
    382436}
  • linguise/tags/2.1.75/src/constants.php

    r3377801 r3379190  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.74');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.75');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.1.74');
     7    define('LINGUISE_VERSION', '2.1.75');
    88}
  • linguise/tags/2.1.75/src/frontend/redirector.php

    r3350018 r3379190  
    44
    55use Linguise\Vendor\Linguise\Script\Core\Database;
    6 use Linguise\Vendor\Linguise\Script\Core\Helper;
    76use Linguise\WordPress\Helper as WPHelper;
    87
     
    212211        }
    213212
    214         $final_url = Helper::buildUrl($parsed_url);
     213        $final_url = WPHelper::buildUrl($parsed_url);
    215214        $final_url = preg_replace('#(?<!:)//+#', '/', $final_url);
    216215        setcookie(static::$cookie_name, '1', time() + 60);
  • linguise/tags/2.1.75/src/thirdparty/wc/woocommerce.php

    r3325315 r3379190  
    33namespace Linguise\WordPress\Integrations;
    44
    5 use Linguise\Vendor\Linguise\Script\Core\Helper;
    6 use Linguise\WordPress\FragmentHandler;
    75use Linguise\WordPress\Helper as WPHelper;
    86
     
    288286
    289287        $url['path'] = '/' . $url_path;
    290         $result = Helper::buildUrl($url, $site_url, $language);
     288        $result = WPHelper::buildUrl($url, $site_url, $language);
    291289        return $result;
    292290    }
  • linguise/tags/2.1.75/vendor/composer/installed.php

    r3377801 r3379190  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd185a2f920545a4711493818abc3e90ab6e81f72',
     6        'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'd185a2f920545a4711493818abc3e90ab6e81f72',
     34            'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
  • linguise/trunk/linguise.php

    r3377801 r3379190  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.1.74
     7 * Version:2.1.75
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/trunk/readme.txt

    r3377801 r3379190  
    44Requires at least: 4.0
    55Tested up to: 6.8
    6 Stable tag:2.1.74
     6Stable tag:2.1.75
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    104104
    105105== Changelog ==
     106= 2.1.75 =
     107- Fix: WooCommerce Issue: checkout process error
     108
    106109= 2.1.74 =
    107110- Feature: AI Translation support
  • linguise/trunk/src/Helper.php

    r3366846 r3379190  
    380380        return preg_match('/\s/', $str) > 0;
    381381    }
     382
     383
     384    /**
     385     * Create a new URL based on the parsed_url output
     386     *
     387     * Code taken from Linguise Script Core Helper
     388     *
     389     * @param array   $parsed_url The parsed URL
     390     * @param boolean $encoded    Should we encode the URL or not.
     391     *
     392     * @return string
     393     */
     394    public static function buildUrl($parsed_url, $encoded = \false)
     395    {
     396        $final_url = '';
     397        if (empty($parsed_url['scheme'])) {
     398            $final_url .= '//';
     399        } else {
     400            $final_url .= $parsed_url['scheme'] . '://';
     401        }
     402
     403        if (!empty($parsed_url['user'])) {
     404            $final_url .= $parsed_url['user'];
     405            if (!empty($parsed_url['pass'])) {
     406                $final_url .= ':' . $parsed_url['pass'];
     407            }
     408            $final_url .= '@';
     409        }
     410
     411        $final_url .= empty($parsed_url['host']) ? '' : $parsed_url['host'];
     412
     413        if (!empty($parsed_url['port'])) {
     414            $final_url .= ':' . $parsed_url['port'];
     415        }
     416
     417        if (!empty($parsed_url['path'])) {
     418            if ($encoded) {
     419                $explode_path = array_map('rawurlencode', explode('/', $parsed_url['path']));
     420                $final_url .= implode('/', $explode_path);
     421            } else {
     422                $final_url .= $parsed_url['path'];
     423            }
     424        }
     425
     426        if (!empty($parsed_url['query'])) {
     427            $final_url .= '?' . $parsed_url['query'];
     428        }
     429
     430        if (!empty($parsed_url['fragment'])) {
     431            $final_url .= '#' . $parsed_url['fragment'];
     432        }
     433
     434        return $final_url;
     435    }
    382436}
  • linguise/trunk/src/constants.php

    r3377801 r3379190  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.74');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.75');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.1.74');
     7    define('LINGUISE_VERSION', '2.1.75');
    88}
  • linguise/trunk/src/frontend/redirector.php

    r3350018 r3379190  
    44
    55use Linguise\Vendor\Linguise\Script\Core\Database;
    6 use Linguise\Vendor\Linguise\Script\Core\Helper;
    76use Linguise\WordPress\Helper as WPHelper;
    87
     
    212211        }
    213212
    214         $final_url = Helper::buildUrl($parsed_url);
     213        $final_url = WPHelper::buildUrl($parsed_url);
    215214        $final_url = preg_replace('#(?<!:)//+#', '/', $final_url);
    216215        setcookie(static::$cookie_name, '1', time() + 60);
  • linguise/trunk/src/thirdparty/wc/woocommerce.php

    r3325315 r3379190  
    33namespace Linguise\WordPress\Integrations;
    44
    5 use Linguise\Vendor\Linguise\Script\Core\Helper;
    6 use Linguise\WordPress\FragmentHandler;
    75use Linguise\WordPress\Helper as WPHelper;
    86
     
    288286
    289287        $url['path'] = '/' . $url_path;
    290         $result = Helper::buildUrl($url, $site_url, $language);
     288        $result = WPHelper::buildUrl($url, $site_url, $language);
    291289        return $result;
    292290    }
  • linguise/trunk/vendor/composer/installed.php

    r3377801 r3379190  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd185a2f920545a4711493818abc3e90ab6e81f72',
     6        'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'd185a2f920545a4711493818abc3e90ab6e81f72',
     34            'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.