Version Description
- Solved issue with wp_get_referer checks not passing on translated sub-domains
- Solved issue with http Refresh header which was not redirecting to correct URL in translated version
- Email translation is coming: we need volunteers to test translation of emails, please contact live chat
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.8.50 |
Comparing to | |
See all releases |
Code changes from version 2.8.49 to 2.8.50
- gtranslate.php +14 -1
- readme.txt +10 -2
- url_addon/gtranslate.php +1 -1
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
|
@@ -2217,3 +2217,16 @@ if($data['pro_version'] or $data['enterprise_version']) {
|
|
2217 |
|
2218 |
add_filter('woocommerce_geolocate_ip', 'gt_woocommerce_geolocate_ip', 10, 4);
|
2219 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.50
|
7 |
Author: Translate AI Multilingual Solutions
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
2217 |
|
2218 |
add_filter('woocommerce_geolocate_ip', 'gt_woocommerce_geolocate_ip', 10, 4);
|
2219 |
}
|
2220 |
+
|
2221 |
+
if($data['enterprise_version']) {
|
2222 |
+
// solve wp_get_referer issue
|
2223 |
+
function gt_allowed_redirect_hosts($hosts) {
|
2224 |
+
$gt_hosts = array();
|
2225 |
+
if(isset($_SERVER['HTTP_X_GT_LANG']))
|
2226 |
+
$gt_hosts[] = $_SERVER['HTTP_X_GT_LANG'] . '.' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
|
2227 |
+
|
2228 |
+
return array_merge($hosts, $gt_hosts);
|
2229 |
+
}
|
2230 |
+
|
2231 |
+
add_filter('allowed_redirect_hosts', 'gt_allowed_redirect_hosts');
|
2232 |
+
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: edo888
|
|
3 |
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.
|
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
|
@@ -156,6 +156,9 @@ Multilingual SEO is a SEO strategy which uses new content generation technique b
|
|
156 |
= Is URL Translation available? =
|
157 |
In our paid versions we have a feature to translate URL of your website which will give you more SEO advantage. For example http://example.com/*about-us* → http://example.com/*sobre-nosotros*
|
158 |
|
|
|
|
|
|
|
159 |
= How the free version differs from the paid versions? =
|
160 |
Free vesion is a nice looking language selector you can place on your website. It has a built in Javascript engine which allows to translate your website automatically to multiple languages. With free version your website URL doesn't change and the translations are not stored. While paid versions are a translation proxy also known as Translation Delivery Network. We host the translated versions of your website on our cloud network under a language specific domain. In that case every language will have a separate domain and be indexed in search engines, which will help you to increase international traffic and sales.
|
161 |
|
@@ -221,6 +224,11 @@ 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.49 =
|
225 |
* Added translate support for MyHome IDX Broker plugin
|
226 |
|
3 |
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.3
|
7 |
+
Stable tag: 2.8.50
|
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
|
156 |
= Is URL Translation available? =
|
157 |
In our paid versions we have a feature to translate URL of your website which will give you more SEO advantage. For example http://example.com/*about-us* → http://example.com/*sobre-nosotros*
|
158 |
|
159 |
+
= Does it translate emails too? =
|
160 |
+
Email translation feature is in testing stage for our paid version. Please contact our live chat to test email translation now.
|
161 |
+
|
162 |
= How the free version differs from the paid versions? =
|
163 |
Free vesion is a nice looking language selector you can place on your website. It has a built in Javascript engine which allows to translate your website automatically to multiple languages. With free version your website URL doesn't change and the translations are not stored. While paid versions are a translation proxy also known as Translation Delivery Network. We host the translated versions of your website on our cloud network under a language specific domain. In that case every language will have a separate domain and be indexed in search engines, which will help you to increase international traffic and sales.
|
164 |
|
224 |
8. User Dashboard
|
225 |
|
226 |
== Changelog ==
|
227 |
+
= 2.8.50 =
|
228 |
+
* Solved issue with wp_get_referer checks not passing on translated sub-domains
|
229 |
+
* Solved issue with http Refresh header which was not redirecting to correct URL in translated version
|
230 |
+
* Email translation is coming: we need volunteers to test translation of emails, please contact live chat
|
231 |
+
|
232 |
= 2.8.49 =
|
233 |
* Added translate support for MyHome IDX Broker plugin
|
234 |
|
url_addon/gtranslate.php
CHANGED
@@ -221,7 +221,7 @@ $headers_sent = '';
|
|
221 |
foreach($response_headers as $header) {
|
222 |
if(!empty($header) and !preg_match('/Content\-Length:|Transfer\-Encoding:|Content\-Encoding:|Link:/i', $header)) {
|
223 |
|
224 |
-
if(preg_match('/^Location:/i', $header)) {
|
225 |
$header = str_ireplace($host, $_SERVER['HTTP_HOST'] . '/' . $glang, $header);
|
226 |
$header = str_ireplace('Location: /', 'Location: /' . $glang . '/', $header);
|
227 |
$header = str_replace('/' . $glang . '/' . $glang . '/', '/' . $glang . '/', $header);
|
221 |
foreach($response_headers as $header) {
|
222 |
if(!empty($header) and !preg_match('/Content\-Length:|Transfer\-Encoding:|Content\-Encoding:|Link:/i', $header)) {
|
223 |
|
224 |
+
if(preg_match('/^(Location|Refresh):/i', $header)) {
|
225 |
$header = str_ireplace($host, $_SERVER['HTTP_HOST'] . '/' . $glang, $header);
|
226 |
$header = str_ireplace('Location: /', 'Location: /' . $glang . '/', $header);
|
227 |
$header = str_replace('/' . $glang . '/' . $glang . '/', '/' . $glang . '/', $header);
|