Google Language Translator - Version 6.0.3

Version Description

  • 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 Icon wp plugin Google Language Translator
Version 6.0.3
Comparing to
See all releases

Code changes from version 6.0.2 to 6.0.3

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.2
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.3
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.2
9
- Stable tag: 6.0.2
10
 
11
  Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
12
 
@@ -96,6 +96,9 @@ Multilingual SEO is a SEO strategy which uses new content generation technique b
96
  = Is URL Translation available? =
97
  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*
98
 
 
 
 
99
  = How the free version differs from the paid versions? =
100
  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.
101
 
@@ -136,6 +139,10 @@ You need to go to the language you want to edit, for instance, French: http://do
136
  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>
137
 
138
  == Changelog ==
 
 
 
 
139
  = 6.0.2 =
140
  * Added translate support for MyHome IDX Broker plugin
141
 
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.3
9
+ Stable tag: 6.0.3
10
 
11
  Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.
12
 
96
  = Is URL Translation available? =
97
  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* &rarr; http://example.com/*sobre-nosotros*
98
 
99
+ = Does it translate emails too? =
100
+ Email translation feature is in testing stage for our paid version. Please contact our live chat to test email translation now.
101
+
102
  = How the free version differs from the paid versions? =
103
  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.
104
 
139
  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>
140
 
141
  == Changelog ==
142
+ = 6.0.3 =
143
+ * Solved issue with http Refresh header which was not redirecting to correct URL in translated version
144
+ * Email translation is coming: we need volunteers to test translation of emails, please contact live chat
145
+
146
  = 6.0.2 =
147
  * Added translate support for MyHome IDX Broker plugin
148
 
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);