Google Language Translator - Version 6.0.8

Version Description

  • Tested with new WordPress 5.6 version
  • Ground up rebuild of our Translation Proxy cloud network for paid customers, now page translations are 3x faster on average.
    • New proprietary spec-compliant HTML parser which is 8x faster than PHP SimpleHTMLDom library used by TranslatePress Multilingual and Weglot Translate plugins
    • In case of invalid HTML, it will be fixed after page translation
    • New caching layer to cache translated pages, previously only original pages were cached
    • Optimized caching with option to clear all original and translated page caches
    • Better error reporting
    • New top of the line hardware with Intel Xeon multi-core processors with up to 5 Ghz clock speed
Download this release

Release Info

Developer edo888
Plugin Icon wp plugin Google Language Translator
Version 6.0.8
Comparing to
See all releases

Code changes from version 6.0.7 to 6.0.8

google-language-translator.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: https://gtranslate.io/?xyz=3167
5
- Version: 6.0.7
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: https://gtranslate.io/?xyz=3167
5
+ Version: 6.0.8
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
readme.txt CHANGED
@@ -5,8 +5,8 @@ Author: Translate AI Multilingual Solutions
5
  Author URI: https://gtranslate.io/?xyz=3167
6
  Tags: translate wordpress, translate, translator, translation, language, multi language
7
  Requires at least: 2.9
8
- Tested up to: 5.5
9
- Stable tag: 6.0.7
10
 
11
  Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
12
 
@@ -155,6 +155,16 @@ If you want us to translate your website professionally or provide you a proofre
155
  Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
156
 
157
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
158
  = 6.0.7 =
159
  * Servers list updated, minor changes
160
 
5
  Author URI: https://gtranslate.io/?xyz=3167
6
  Tags: translate wordpress, translate, translator, translation, language, multi language
7
  Requires at least: 2.9
8
+ Tested up to: 5.6
9
+ Stable tag: 6.0.8
10
 
11
  Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
12
 
155
  Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
156
 
157
  == Changelog ==
158
+ = 6.0.8 =
159
+ * Tested with new WordPress 5.6 version
160
+ * Ground up rebuild of our Translation Proxy cloud network for paid customers, now page translations are 3x faster on average.
161
+ - New proprietary spec-compliant HTML parser which is 8x faster than PHP SimpleHTMLDom library used by TranslatePress Multilingual and Weglot Translate plugins
162
+ - In case of invalid HTML, it will be fixed after page translation
163
+ - New caching layer to cache translated pages, previously only original pages were cached
164
+ - Optimized caching with option to clear all original and translated page caches
165
+ - Better error reporting
166
+ - New top of the line hardware with Intel Xeon multi-core processors with up to 5 Ghz clock speed
167
+
168
  = 6.0.7 =
169
  * Servers list updated, minor changes
170
 
url_addon/gtranslate.php CHANGED
@@ -27,7 +27,7 @@ if(isset($get_params['gurl']))
27
  unset($get_params['gurl']);
28
 
29
  if(count($get_params)) {
30
- $page_url .= '?' . http_build_query($get_params);
31
  }
32
 
33
  $main_lang = isset($data['default_language']) ? $data['default_language'] : $main_lang;
@@ -219,7 +219,7 @@ $response_headers = explode(PHP_EOL, $header);
219
  //print_r($response_headers);
220
  $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|Refresh):/i', $header)) {
225
  $header = str_ireplace($host, $_SERVER['HTTP_HOST'] . '/' . $glang, $header);
27
  unset($get_params['gurl']);
28
 
29
  if(count($get_params)) {
30
+ $page_url .= '?' . rtrim(str_replace('=&', '&', http_build_query($get_params)), '=');
31
  }
32
 
33
  $main_lang = isset($data['default_language']) ? $data['default_language'] : $main_lang;
219
  //print_r($response_headers);
220
  $headers_sent = '';
221
  foreach($response_headers as $header) {
222
+ if(!empty(trim($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);