Version Description
- Fix for not saving GTranslate configuration on some hostings
- Tested up to 4.6
- Plugin tags modified: language translator, weglot, scrybs, wpml
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.0.15 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.15
- gtranslate.php +10 -2
- readme.txt +16 -9
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 |
|
@@ -29,6 +29,7 @@ Author URI: https://gtranslate.io
|
|
29 |
add_action('widgets_init', array('GTranslate', 'register'));
|
30 |
register_activation_hook(__FILE__, array('GTranslate', 'activate'));
|
31 |
register_deactivation_hook(__FILE__, array('GTranslate', 'deactivate'));
|
|
|
32 |
add_action('admin_menu', array('GTranslate', 'admin_menu'));
|
33 |
add_action('init', array('GTranslate', 'enqueue_scripts'));
|
34 |
add_shortcode('GTranslate', array('GTranslate', 'get_widget_code'));
|
@@ -58,6 +59,11 @@ class GTranslate extends WP_Widget {
|
|
58 |
// delete_option('GTranslate');
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
|
|
61 |
public static function update_message($plugin_data, $r) {
|
62 |
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>';
|
63 |
}
|
@@ -294,6 +300,8 @@ function RefreshDoWidgetCode() {
|
|
294 |
widget_code += 'function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: \'';
|
295 |
widget_code += default_language;
|
296 |
widget_code += '\',autoDisplay: false';
|
|
|
|
|
297 |
widget_code += "}, 'google_translate_element2');}"+new_line;
|
298 |
widget_code += '<\/script>';
|
299 |
widget_code += '<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"><\/script>'+new_line;
|
@@ -482,7 +490,7 @@ foreach($fincl_langs as $lang)
|
|
482 |
$script .= "jQuery('#fincl_langs$lang').attr('checked', true);\n";
|
483 |
?>
|
484 |
|
485 |
-
<form id="gtranslate" name="form1" method="post" action="<?php echo admin_url(
|
486 |
|
487 |
<div class="postbox-container og_left_col">
|
488 |
|
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.15
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: https://gtranslate.io
|
9 |
|
29 |
add_action('widgets_init', array('GTranslate', 'register'));
|
30 |
register_activation_hook(__FILE__, array('GTranslate', 'activate'));
|
31 |
register_deactivation_hook(__FILE__, array('GTranslate', 'deactivate'));
|
32 |
+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), array('GTranslate', 'settings_link'));
|
33 |
add_action('admin_menu', array('GTranslate', 'admin_menu'));
|
34 |
add_action('init', array('GTranslate', 'enqueue_scripts'));
|
35 |
add_shortcode('GTranslate', array('GTranslate', 'get_widget_code'));
|
59 |
// delete_option('GTranslate');
|
60 |
}
|
61 |
|
62 |
+
public static function settings_link($links) {
|
63 |
+
$settings_link = array('<a href="' . admin_url('options-general.php?page=gtranslate_options') . '">Settings</a>');
|
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 |
}
|
300 |
widget_code += 'function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: \'';
|
301 |
widget_code += default_language;
|
302 |
widget_code += '\',autoDisplay: false';
|
303 |
+
//if(analytics)
|
304 |
+
// widget_code += ",gaTrack: (typeof ga!='undefined'),gaId: (typeof ga!='undefined' ? ga.getAll()[0].get('trackingId') : '')";
|
305 |
widget_code += "}, 'google_translate_element2');}"+new_line;
|
306 |
widget_code += '<\/script>';
|
307 |
widget_code += '<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"><\/script>'+new_line;
|
490 |
$script .= "jQuery('#fincl_langs$lang').attr('checked', true);\n";
|
491 |
?>
|
492 |
|
493 |
+
<form id="gtranslate" name="form1" method="post" action="<?php echo admin_url('options-general.php?page=gtranslate_options'); ?>">
|
494 |
|
495 |
<div class="postbox-container og_left_col">
|
496 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
===
|
2 |
Contributors: edo888
|
3 |
Author: Edvard Ananyan
|
4 |
-
Tags:
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.
|
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
|
@@ -13,15 +13,17 @@ GTranslate - Google Translate for WordPress will make your website multilingual
|
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
|
17 |
|
18 |
GTranslate is a leading Google Translate provider since 2008 and powers more than 500.000 websites worldwide.
|
19 |
|
20 |
-
Please
|
|
|
|
|
21 |
|
22 |
**Features**
|
23 |
|
24 |
-
* Google automatic translation
|
25 |
* Hides "Suggest better translation" pop-up
|
26 |
* Hides Google top frame after translation
|
27 |
* Mouse over effect
|
@@ -34,7 +36,7 @@ Please `use` [GTranslate Forum](https://gtranslate.io/forum/) for your questions
|
|
34 |
* You can have sub-directory (example.com/**es**/) or sub-domain (**es.**example.com) URL structure (paid)
|
35 |
* URL Translation is possible (example.com/about-us -> example.es/sobre-nosotros) (paid)
|
36 |
|
37 |
-
[Download GTranslate](https://gtranslate.io
|
38 |
|
39 |
**GTranslate Wordpress Demo**
|
40 |
https://www.youtube.com/watch?v=9mtC3LFBErY
|
@@ -347,7 +349,7 @@ All the HTML websites are supported. However the contents of media files like im
|
|
347 |
You need to login to your Google Analytics account -> Content -> Event Tracking. The event name will be GTranslate and you will see event categories for each language code. If you want to see French language usage you can click on fr and you will see which pages are translated to French by your visitors.
|
348 |
|
349 |
= What is a Translation Delivery Network? =
|
350 |
-
Translation Delivery Network (TDN) aka
|
351 |
|
352 |
It means that you don't need to install any software on your server and maintain it to make your website multilingual.
|
353 |
|
@@ -392,6 +394,11 @@ You need to go to the language you want to edit, for instance, French: http://do
|
|
392 |
|
393 |
== Changelog ==
|
394 |
|
|
|
|
|
|
|
|
|
|
|
395 |
= 2.0.14 =
|
396 |
* Fix for javascript CDATA
|
397 |
* Support for Google new analytics.js added
|
1 |
+
=== Translate Wordpress with GTranslate ===
|
2 |
Contributors: edo888
|
3 |
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.15
|
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
|
13 |
|
14 |
== Description ==
|
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 Google Translate 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 |
+
|
22 |
+
Please check our [FAQ](https://gtranslate.io/?xyz=998#faq) to get quick answers.
|
23 |
|
24 |
**Features**
|
25 |
|
26 |
+
* Free Google automatic translation
|
27 |
* Hides "Suggest better translation" pop-up
|
28 |
* Hides Google top frame after translation
|
29 |
* Mouse over effect
|
36 |
* You can have sub-directory (example.com/**es**/) or sub-domain (**es.**example.com) URL structure (paid)
|
37 |
* URL Translation is possible (example.com/about-us -> example.es/sobre-nosotros) (paid)
|
38 |
|
39 |
+
[Download GTranslate](https://gtranslate.io/?xyz=998#pricing)
|
40 |
|
41 |
**GTranslate Wordpress Demo**
|
42 |
https://www.youtube.com/watch?v=9mtC3LFBErY
|
349 |
You need to login to your Google Analytics account -> Content -> Event Tracking. The event name will be GTranslate and you will see event categories for each language code. If you want to see French language usage you can click on fr and you will see which pages are translated to French by your visitors.
|
350 |
|
351 |
= What is a Translation Delivery Network? =
|
352 |
+
Translation Delivery Network (TDN) aka Translation Proxy is similar to Content Delivery Network (CDN) which is responsible for your static content delivery (images, videos, etc.). TDN will deliver your translations and make your site multilingual.
|
353 |
|
354 |
It means that you don't need to install any software on your server and maintain it to make your website multilingual.
|
355 |
|
394 |
|
395 |
== Changelog ==
|
396 |
|
397 |
+
= 2.0.15 =
|
398 |
+
* Fix for not saving GTranslate configuration on some hostings
|
399 |
+
* Tested up to 4.6
|
400 |
+
* Plugin tags modified: language translator, weglot, scrybs, wpml
|
401 |
+
|
402 |
= 2.0.14 =
|
403 |
* Fix for javascript CDATA
|
404 |
* Support for Google new analytics.js added
|