Version Description
(15/06/2022) = * Add: Disable translate pdf and add filter to activate it
Download this release
Release Info
Developer | remyb92 |
Plugin | Weglot Translate – Translate your WP website |
Version | 3.7.1 |
Comparing to | |
See all releases |
Code changes from version 3.7 to 3.7.1
- readme.txt +3 -11
- src/third/woocommercepdf/class-wcpdf-weglot.php +6 -0
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +2 -2
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +5 -5
- vendor/composer/installed.php +2 -2
- weglot.php +2 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: translate, multilingual, language, translation, localization, multilingual
|
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 3.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -210,16 +210,8 @@ See changelog for upgrade changes.
|
|
210 |
|
211 |
== Changelog ==
|
212 |
|
213 |
-
= 3.7 (
|
214 |
-
* Add:
|
215 |
-
* Add: Optimize button accessibility
|
216 |
-
* Add: Pageviews integration
|
217 |
-
* Add: Add switcher editor integration
|
218 |
-
* Add: Woocomerce translate all mail
|
219 |
-
* Add: Do not translate .eps or .txt
|
220 |
-
* Add: Detect if switcher is child of an iframe and if so, don't display it
|
221 |
-
* Add: Reduce api call on wp-admin
|
222 |
-
* Bugfix: Some bug fix
|
223 |
|
224 |
= Older versions =
|
225 |
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 3.7.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
210 |
|
211 |
== Changelog ==
|
212 |
|
213 |
+
= 3.7.1 (15/06/2022) =
|
214 |
+
* Add: Disable translate pdf and add filter to activate it
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
= Older versions =
|
217 |
|
src/third/woocommercepdf/class-wcpdf-weglot.php
CHANGED
@@ -70,6 +70,12 @@ class WCPDF_Weglot implements Hooks_Interface_Weglot {
|
|
70 |
*/
|
71 |
public function translate_invoice_pdf( $dompdf, $html ) {
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
if( ! empty( sanitize_key($_GET['order_ids'] ))){ // phpcs:ignore
|
74 |
$order_id = sanitize_key($_GET['order_ids']); // phpcs:ignore
|
75 |
}
|
70 |
*/
|
71 |
public function translate_invoice_pdf( $dompdf, $html ) {
|
72 |
|
73 |
+
$translate_pdf = apply_filters( 'weglot_translate_pdf', false );
|
74 |
+
|
75 |
+
if( !$translate_pdf ){
|
76 |
+
return $dompdf;
|
77 |
+
}
|
78 |
+
|
79 |
if( ! empty( sanitize_key($_GET['order_ids'] ))){ // phpcs:ignore
|
80 |
$order_id = sanitize_key($_GET['order_ids']); // phpcs:ignore
|
81 |
}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
|
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
-
'reference' => '
|
34 |
'name' => 'weglot/translate-wordpress',
|
35 |
),
|
36 |
'versions' =>
|
@@ -69,7 +69,7 @@ private static $installed = array (
|
|
69 |
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
-
'reference' => '
|
73 |
),
|
74 |
'weglot/translation-definitions' =>
|
75 |
array (
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
+
'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
|
34 |
'name' => 'weglot/translate-wordpress',
|
35 |
),
|
36 |
'versions' =>
|
69 |
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
+
'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
|
73 |
),
|
74 |
'weglot/translation-definitions' =>
|
75 |
array (
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInita5571042c34750f8fd2a5843b13637e1
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInita5571042c34750f8fd2a5843b13637e1
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitb3f7ccf6e4bc92d8b4155b125d596c2d', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequireb3f7ccf6e4bc92d8b4155b125d596c2d($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequireb3f7ccf6e4bc92d8b4155b125d596c2d($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
|
@@ -66,10 +66,10 @@ class ComposerStaticInita5571042c34750f8fd2a5843b13637e1
|
|
66 |
public static function getInitializer(ClassLoader $loader)
|
67 |
{
|
68 |
return \Closure::bind(function () use ($loader) {
|
69 |
-
$loader->prefixLengthsPsr4 =
|
70 |
-
$loader->prefixDirsPsr4 =
|
71 |
-
$loader->prefixesPsr0 =
|
72 |
-
$loader->classMap =
|
73 |
|
74 |
}, null, ClassLoader::class);
|
75 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
|
66 |
public static function getInitializer(ClassLoader $loader)
|
67 |
{
|
68 |
return \Closure::bind(function () use ($loader) {
|
69 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixLengthsPsr4;
|
70 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixDirsPsr4;
|
71 |
+
$loader->prefixesPsr0 = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$prefixesPsr0;
|
72 |
+
$loader->classMap = ComposerStaticInitb3f7ccf6e4bc92d8b4155b125d596c2d::$classMap;
|
73 |
|
74 |
}, null, ClassLoader::class);
|
75 |
}
|
vendor/composer/installed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'weglot/translate-wordpress',
|
11 |
),
|
12 |
'versions' =>
|
@@ -45,7 +45,7 @@
|
|
45 |
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
-
'reference' => '
|
49 |
),
|
50 |
'weglot/translation-definitions' =>
|
51 |
array (
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
|
10 |
'name' => 'weglot/translate-wordpress',
|
11 |
),
|
12 |
'versions' =>
|
45 |
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
+
'reference' => '5daea625214ece0efff0c03bf27108f1179904f5',
|
49 |
),
|
50 |
'weglot/translation-definitions' =>
|
51 |
array (
|
weglot.php
CHANGED
@@ -7,7 +7,7 @@ Author: Weglot Translate team
|
|
7 |
Author URI: https://weglot.com/
|
8 |
Text Domain: weglot
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 3.7
|
11 |
*/
|
12 |
|
13 |
/**
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
22 |
define( 'WEGLOT_NAME', 'Weglot' );
|
23 |
define( 'WEGLOT_SLUG', 'weglot-translate' );
|
24 |
define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
|
25 |
-
define( 'WEGLOT_VERSION', '3.7' );
|
26 |
define( 'WEGLOT_PHP_MIN', '5.6' );
|
27 |
define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
|
28 |
define( 'WEGLOT_DIR', __DIR__ );
|
7 |
Author URI: https://weglot.com/
|
8 |
Text Domain: weglot
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 3.7.1
|
11 |
*/
|
12 |
|
13 |
/**
|
22 |
define( 'WEGLOT_NAME', 'Weglot' );
|
23 |
define( 'WEGLOT_SLUG', 'weglot-translate' );
|
24 |
define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
|
25 |
+
define( 'WEGLOT_VERSION', '3.7.1' );
|
26 |
define( 'WEGLOT_PHP_MIN', '5.6' );
|
27 |
define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
|
28 |
define( 'WEGLOT_DIR', __DIR__ );
|