Version Description
- Fix for relative path issue for some hosts
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.8.46 |
Comparing to | |
See all releases |
Code changes from version 2.8.45 to 2.8.46
- gtranslate.php +1 -1
- readme.txt +4 -1
- url_addon/gtranslate.php +5 -5
gtranslate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
-
Version: 2.8.
|
7 |
Author: Translate AI Multilingual Solutions
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
+
Version: 2.8.46
|
7 |
Author: Translate AI Multilingual Solutions
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Author: Translate AI Multilingual Solutions
|
|
4 |
Tags: translate wordpress, multilingual, translate, translation, language, bilingual, localization, translation proxy, i18n, l10n, localisation, multilanguage, google translate
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 5.1
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
@@ -221,6 +221,9 @@ You need to go to the language you want to edit, for instance, French: http://do
|
|
221 |
8. User Dashboard
|
222 |
|
223 |
== Changelog ==
|
|
|
|
|
|
|
224 |
= 2.8.45 =
|
225 |
* Fix for expired cacert.pem file, please update
|
226 |
|
4 |
Tags: translate wordpress, multilingual, translate, translation, language, bilingual, localization, translation proxy, i18n, l10n, localisation, multilanguage, google translate
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 5.1
|
7 |
+
Stable tag: 2.8.46
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
221 |
8. User Dashboard
|
222 |
|
223 |
== Changelog ==
|
224 |
+
= 2.8.46 =
|
225 |
+
* Fix for relative path issue for some hosts
|
226 |
+
|
227 |
= 2.8.45 =
|
228 |
* Fix for expired cacert.pem file, please update
|
229 |
|
url_addon/gtranslate.php
CHANGED
@@ -141,7 +141,7 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
141 |
//curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
|
142 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
143 |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
144 |
-
curl_setopt($ch, CURLOPT_CAINFO, 'cacert.pem');
|
145 |
|
146 |
switch($_SERVER['REQUEST_METHOD']) {
|
147 |
case 'POST': {
|
@@ -162,7 +162,7 @@ switch($_SERVER['REQUEST_METHOD']) {
|
|
162 |
$new_post = array('a'=>1,'b'=>2);
|
163 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $new_post); // todo: think about $_FILES: http://php.net/manual/en/class.curlfile.php
|
164 |
//curl_setopt($ch, CURLOPT_HTTPHEADER, array());
|
165 |
-
file_put_contents('debug.txt', print_r($new_post, true)."\n", FILE_APPEND);
|
166 |
} else {
|
167 |
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents('php://input'));
|
168 |
}
|
@@ -176,7 +176,7 @@ switch($_SERVER['REQUEST_METHOD']) {
|
|
176 |
|
177 |
// Debug
|
178 |
if($debug or isset($_GET['enable_debug'])) {
|
179 |
-
$fh = fopen('debug.txt', 'a');
|
180 |
curl_setopt($ch, CURLOPT_VERBOSE, true);
|
181 |
curl_setopt($ch, CURLOPT_STDERR, $fh);
|
182 |
}
|
@@ -244,8 +244,8 @@ $html = str_ireplace('action=\'//' . $_SERVER['HTTP_HOST'], 'action=\'//' . $_SE
|
|
244 |
|
245 |
// woocommerce specific changes
|
246 |
$html = str_ireplace(
|
247 |
-
array('ajax_url":"\\/', '"checkout_url":"\\/'
|
248 |
-
array('ajax_url":"\\/'.$glang.'\\/', '"checkout_url":"\\/'.$glang.'\\/'
|
249 |
$html
|
250 |
);
|
251 |
|
141 |
//curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
|
142 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
143 |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
144 |
+
curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__).'/cacert.pem');
|
145 |
|
146 |
switch($_SERVER['REQUEST_METHOD']) {
|
147 |
case 'POST': {
|
162 |
$new_post = array('a'=>1,'b'=>2);
|
163 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $new_post); // todo: think about $_FILES: http://php.net/manual/en/class.curlfile.php
|
164 |
//curl_setopt($ch, CURLOPT_HTTPHEADER, array());
|
165 |
+
file_put_contents(dirname(__FILE__).'/debug.txt', print_r($new_post, true)."\n", FILE_APPEND);
|
166 |
} else {
|
167 |
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents('php://input'));
|
168 |
}
|
176 |
|
177 |
// Debug
|
178 |
if($debug or isset($_GET['enable_debug'])) {
|
179 |
+
$fh = fopen(dirname(__FILE__).'/debug.txt', 'a');
|
180 |
curl_setopt($ch, CURLOPT_VERBOSE, true);
|
181 |
curl_setopt($ch, CURLOPT_STDERR, $fh);
|
182 |
}
|
244 |
|
245 |
// woocommerce specific changes
|
246 |
$html = str_ireplace(
|
247 |
+
array('ajax_url":"\\/', '"checkout_url":"\\/' ),
|
248 |
+
array('ajax_url":"\\/'.$glang.'\\/', '"checkout_url":"\\/'.$glang.'\\/' ),
|
249 |
$html
|
250 |
);
|
251 |
|