Version Description
- Fixed possible Cross-Site-Scripting security issue
- GTranslate logo moved to localhost
- Update notice removed
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.0.16 |
Comparing to | |
See all releases |
Code changes from version 2.0.15 to 2.0.16
- gt-logo.png +0 -0
- gtranslate-notices.css +1 -1
- gtranslate.php +7 -13
- readme.txt +8 -2
gt-logo.png
ADDED
Binary file
|
gtranslate-notices.css
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
clear: both;
|
15 |
content: "";
|
16 |
display: block;
|
17 |
-
background-image: url(
|
18 |
background-size: 125px auto;
|
19 |
background-repeat: no-repeat;
|
20 |
background-position: 0 45%;
|
14 |
clear: both;
|
15 |
content: "";
|
16 |
display: block;
|
17 |
+
background-image: url(gt-logo.png);
|
18 |
background-size: 125px auto;
|
19 |
background-repeat: no-repeat;
|
20 |
background-position: 0 45%;
|
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://gtranslate.io/forum/">GTranslate Forum</a>.
|
6 |
-
Version: 2.0.
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: https://gtranslate.io
|
9 |
|
@@ -37,8 +37,6 @@ add_shortcode('gtranslate', array('GTranslate', 'get_widget_code'));
|
|
37 |
|
38 |
if(is_admin()) {
|
39 |
global $pagenow;
|
40 |
-
if('plugins.php' === $pagenow)
|
41 |
-
add_action('in_plugin_update_message-' . basename(dirname( __FILE__ )) . '/' . basename(__FILE__), array('GTranslate', 'update_message'), 20, 2);
|
42 |
|
43 |
if(!defined('DOING_AJAX') or !DOING_AJAX)
|
44 |
new GTranslate_Notices();
|
@@ -64,10 +62,6 @@ class GTranslate extends WP_Widget {
|
|
64 |
return array_merge($links, $settings_link);
|
65 |
}
|
66 |
|
67 |
-
public static function update_message($plugin_data, $r) {
|
68 |
-
return print '<div style="color:#f33;">It is highly recommended to update to the latest version! <img src="//gtranslate.net/wp-logo.png" style="height:13px;vertical-align:middle;" border="0" title="GTranslate - your window to the world" alt="GTranslate"></div>';
|
69 |
-
}
|
70 |
-
|
71 |
public static function control() {
|
72 |
$data = get_option('GTranslate');
|
73 |
?>
|
@@ -100,8 +94,8 @@ class GTranslate extends WP_Widget {
|
|
100 |
else
|
101 |
echo $data['widget_code'];
|
102 |
|
103 |
-
if(isset($_SERVER['HTTP_X_GT_LANG'])) {
|
104 |
-
echo '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'
|
105 |
}
|
106 |
|
107 |
echo $args['after_widget'];
|
@@ -118,8 +112,8 @@ class GTranslate extends WP_Widget {
|
|
118 |
else
|
119 |
echo $data['widget_code'];
|
120 |
|
121 |
-
if(isset($_SERVER['HTTP_X_GT_LANG'])) {
|
122 |
-
echo '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'
|
123 |
}
|
124 |
|
125 |
echo $args['after_widget'];
|
@@ -132,8 +126,8 @@ class GTranslate extends WP_Widget {
|
|
132 |
if(empty($data['widget_code']))
|
133 |
return '<b>Notice:</b> Please configure GTranslate from WP-Admin -> Settings -> GTranslate to see it in action.';
|
134 |
else {
|
135 |
-
if(isset($_SERVER['HTTP_X_GT_LANG'])) {
|
136 |
-
return $data['widget_code'] . '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'
|
137 |
} else
|
138 |
return $data['widget_code'];
|
139 |
}
|
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://gtranslate.io/forum/">GTranslate Forum</a>.
|
6 |
+
Version: 2.0.16
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: https://gtranslate.io
|
9 |
|
37 |
|
38 |
if(is_admin()) {
|
39 |
global $pagenow;
|
|
|
|
|
40 |
|
41 |
if(!defined('DOING_AJAX') or !DOING_AJAX)
|
42 |
new GTranslate_Notices();
|
62 |
return array_merge($links, $settings_link);
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
65 |
public static function control() {
|
66 |
$data = get_option('GTranslate');
|
67 |
?>
|
94 |
else
|
95 |
echo $data['widget_code'];
|
96 |
|
97 |
+
if(isset($_SERVER['HTTP_X_GT_LANG']) and in_array($_SERVER['HTTP_X_GT_LANG'], array('en','ar','bg','zh-CN','zh-TW','zh-cn','zh-tw','hr','cs','da','nl','fi','fr','de','el','hi','it','ja','ko','no','pl','pt','ro','ru','es','sv','ca','tl','iw','id','lv','lt','sr','sk','sl','uk','vi','sq','et','gl','hu','mt','th','tr','fa','af','ms','sw','ga','cy','be','is','mk','yi','hy','az','eu','ka','ht','ur','bn','bs','ceb','eo','gu','ha','hmn','ig','jw','kn','km','lo','la','mi','mr','mn','ne','pa','so','ta','te','yo','zu','my','ny','kk','mg','ml','si','st','su','tg','uz','am','co','haw','ku','ky','lb','ps','sm','gd','sn','sd','fy','xh'))) {
|
98 |
+
echo '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'.esc_js($_SERVER['HTTP_X_GT_LANG']).'\']").html())});</script>';
|
99 |
}
|
100 |
|
101 |
echo $args['after_widget'];
|
112 |
else
|
113 |
echo $data['widget_code'];
|
114 |
|
115 |
+
if(isset($_SERVER['HTTP_X_GT_LANG']) and in_array($_SERVER['HTTP_X_GT_LANG'], array('en','ar','bg','zh-CN','zh-TW','zh-cn','zh-tw','hr','cs','da','nl','fi','fr','de','el','hi','it','ja','ko','no','pl','pt','ro','ru','es','sv','ca','tl','iw','id','lv','lt','sr','sk','sl','uk','vi','sq','et','gl','hu','mt','th','tr','fa','af','ms','sw','ga','cy','be','is','mk','yi','hy','az','eu','ka','ht','ur','bn','bs','ceb','eo','gu','ha','hmn','ig','jw','kn','km','lo','la','mi','mr','mn','ne','pa','so','ta','te','yo','zu','my','ny','kk','mg','ml','si','st','su','tg','uz','am','co','haw','ku','ky','lb','ps','sm','gd','sn','sd','fy','xh'))) {
|
116 |
+
echo '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'.esc_js($_SERVER['HTTP_X_GT_LANG']).'\']").html())});</script>';
|
117 |
}
|
118 |
|
119 |
echo $args['after_widget'];
|
126 |
if(empty($data['widget_code']))
|
127 |
return '<b>Notice:</b> Please configure GTranslate from WP-Admin -> Settings -> GTranslate to see it in action.';
|
128 |
else {
|
129 |
+
if(isset($_SERVER['HTTP_X_GT_LANG']) and in_array($_SERVER['HTTP_X_GT_LANG'], array('en','ar','bg','zh-CN','zh-TW','zh-cn','zh-tw','hr','cs','da','nl','fi','fr','de','el','hi','it','ja','ko','no','pl','pt','ro','ru','es','sv','ca','tl','iw','id','lv','lt','sr','sk','sl','uk','vi','sq','et','gl','hu','mt','th','tr','fa','af','ms','sw','ga','cy','be','is','mk','yi','hy','az','eu','ka','ht','ur','bn','bs','ceb','eo','gu','ha','hmn','ig','jw','kn','km','lo','la','mi','mr','mn','ne','pa','so','ta','te','yo','zu','my','ny','kk','mg','ml','si','st','su','tg','uz','am','co','haw','ku','ky','lb','ps','sm','gd','sn','sd','fy','xh'))) {
|
130 |
+
return $data['widget_code'] . '<script>jQuery(document).ready(function() {jQuery(\'.switcher div.selected a\').html(jQuery(".switcher div.option a[onclick*=\'|'.esc_js($_SERVER['HTTP_X_GT_LANG']).'\']").html())});</script>';
|
131 |
} else
|
132 |
return $data['widget_code'];
|
133 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Author: Edvard Ananyan
|
|
4 |
Tags: translation proxy, localization, translate, translation, localization, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 2.0.
|
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
|
@@ -15,7 +15,7 @@ GTranslate - Google Translate for WordPress will make your website multilingual
|
|
15 |
|
16 |
GTranslate plugin uses Google Translate automatic translation service to **translate your wordpress website** with Google power. With 103 available languages your site will be available to more than 99% of internet users. Our paid versions are **fully SEO compatible** which will **increase your international traffic and sales**.
|
17 |
|
18 |
-
GTranslate is a leading
|
19 |
|
20 |
Please use [GTranslate Support](https://gtranslate.io/?xyz=998#contact) for your questions and support requests! We have Live Chat, Helpdesk and Support Forum.
|
21 |
|
@@ -30,6 +30,7 @@ Please check our [FAQ](https://gtranslate.io/?xyz=998#faq) to get quick answers.
|
|
30 |
* Flags combined in one file to load faster
|
31 |
* Google Analytics integration
|
32 |
* Translates the site on the fly
|
|
|
33 |
* Available styles Dropdown/Flags/Flags with dropdown/Nice dropdown with flags
|
34 |
* Valid XHTML
|
35 |
* You can manually correct translations (paid)
|
@@ -394,6 +395,11 @@ You need to go to the language you want to edit, for instance, French: http://do
|
|
394 |
|
395 |
== Changelog ==
|
396 |
|
|
|
|
|
|
|
|
|
|
|
397 |
= 2.0.15 =
|
398 |
* Fix for not saving GTranslate configuration on some hostings
|
399 |
* Tested up to 4.6
|
4 |
Tags: translation proxy, localization, translate, translation, localization, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 2.0.16
|
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
|
15 |
|
16 |
GTranslate plugin uses Google Translate automatic translation service to **translate your wordpress website** with Google power. With 103 available languages your site will be available to more than 99% of internet users. Our paid versions are **fully SEO compatible** which will **increase your international traffic and sales**.
|
17 |
|
18 |
+
GTranslate is a leading website translation services provider since 2008 and powers more than 500.000 websites worldwide.
|
19 |
|
20 |
Please use [GTranslate Support](https://gtranslate.io/?xyz=998#contact) for your questions and support requests! We have Live Chat, Helpdesk and Support Forum.
|
21 |
|
30 |
* Flags combined in one file to load faster
|
31 |
* Google Analytics integration
|
32 |
* Translates the site on the fly
|
33 |
+
* Google language translator widget
|
34 |
* Available styles Dropdown/Flags/Flags with dropdown/Nice dropdown with flags
|
35 |
* Valid XHTML
|
36 |
* You can manually correct translations (paid)
|
395 |
|
396 |
== Changelog ==
|
397 |
|
398 |
+
= 2.0.16 =
|
399 |
+
* Fixed possible Cross-Site-Scripting security issue
|
400 |
+
* GTranslate logo moved to localhost
|
401 |
+
* Update notice removed
|
402 |
+
|
403 |
= 2.0.15 =
|
404 |
* Fix for not saving GTranslate configuration on some hostings
|
405 |
* Tested up to 4.6
|