Translate WordPress with GTranslate - Version 2.8.42

Version Description

  • New dashboard for paid customers https://my.gtranslate.io/
  • Minor changes
Download this release

Release Info

Developer edo888
Plugin Icon 128x128 Translate WordPress with GTranslate
Version 2.8.42
Comparing to
See all releases

Code changes from version 2.8.41 to 2.8.42

Files changed (2) hide show
  1. gtranslate.php +14 -2
  2. readme.txt +5 -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.41
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
@@ -1240,6 +1240,7 @@ EOT;
1240
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/videos" target="_blank"><?php _e('Videos', 'gtranslate'); ?></a></li>
1241
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/?xyz=998#faq" target="_blank"><?php _e('FAQ', 'gtranslate'); ?></a></li>
1242
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/forum/" target="_blank"><?php _e('Support forum', 'gtranslate'); ?></a></li>
 
1243
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/?xyz=998#pricing" target="_blank"><?php _e('Compare plans', 'gtranslate'); ?></a></li>
1244
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/about-us" target="_blank"><?php _e('About GTranslate team', 'gtranslate'); ?></a></li>
1245
  <li style="margin:0;"><a style="text-decoration:none;" href="https://wordpress.org/support/plugin/gtranslate/reviews/" target="_blank"><?php _e('Reviews', 'gtranslate'); ?></a></li>
@@ -1682,7 +1683,7 @@ class GTranslate_Notices {
1682
 
1683
  public function gt_admin_notices() {
1684
 
1685
- $deactivate_plugins= array('WP Translator' => 'wptranslator/WPTranslator.php', 'TranslatePress' => 'translatepress-multilingual/index.php', 'Google Language Translator' => 'google-language-translator/google-language-translator.php', 'Google Website Translator' => 'google-website-translator/google-website-translator.php', 'Weglot' => 'weglot/weglot.php');
1686
  foreach($deactivate_plugins as $name => $plugin_file) {
1687
  if(is_plugin_active($plugin_file)) {
1688
  $deactivate_link = wp_nonce_url('plugins.php?action=deactivate&amp;plugin='.urlencode($plugin_file ).'&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $plugin_file);
@@ -2127,6 +2128,17 @@ if($data['pro_version'] or $data['enterprise_version']) {
2127
 
2128
  $locale = json_decode($data['locale']);
2129
 
 
 
 
 
 
 
 
 
 
 
 
2130
  if(isset($locale->default->shipping->address_1))
2131
  $locale->default->shipping->address_1->gt_translate_keys = array('label', 'placeholder');
2132
  if(isset($locale->default->shipping->address_2))
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.42
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
1240
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/videos" target="_blank"><?php _e('Videos', 'gtranslate'); ?></a></li>
1241
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/?xyz=998#faq" target="_blank"><?php _e('FAQ', 'gtranslate'); ?></a></li>
1242
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/forum/" target="_blank"><?php _e('Support forum', 'gtranslate'); ?></a></li>
1243
+ <li style="margin:0;"><a style="text-decoration:none;" href="https://my.gtranslate.io/" target="_blank"><?php _e('User dashboard', 'gtranslate'); ?></a></li>
1244
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/?xyz=998#pricing" target="_blank"><?php _e('Compare plans', 'gtranslate'); ?></a></li>
1245
  <li style="margin:0;"><a style="text-decoration:none;" href="https://gtranslate.io/about-us" target="_blank"><?php _e('About GTranslate team', 'gtranslate'); ?></a></li>
1246
  <li style="margin:0;"><a style="text-decoration:none;" href="https://wordpress.org/support/plugin/gtranslate/reviews/" target="_blank"><?php _e('Reviews', 'gtranslate'); ?></a></li>
1683
 
1684
  public function gt_admin_notices() {
1685
 
1686
+ $deactivate_plugins= array('WP Translator' => 'wptranslator/WPTranslator.php', 'TranslatePress' => 'translatepress-multilingual/index.php', 'Google Language Translator' => 'google-language-translator/google-language-translator.php', 'Google Website Translator' => 'google-website-translator/google-website-translator.php', 'Weglot' => 'weglot/weglot.php', 'TransPosh' => 'transposh-translation-filter-for-wordpress/transposh.php');
1687
  foreach($deactivate_plugins as $name => $plugin_file) {
1688
  if(is_plugin_active($plugin_file)) {
1689
  $deactivate_link = wp_nonce_url('plugins.php?action=deactivate&amp;plugin='.urlencode($plugin_file ).'&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $plugin_file);
2128
 
2129
  $locale = json_decode($data['locale']);
2130
 
2131
+ if(isset($locale->default->address_1))
2132
+ $locale->default->address_1->gt_translate_keys = array('label', 'placeholder');
2133
+ if(isset($locale->default->address_2))
2134
+ $locale->default->address_2->gt_translate_keys = array('label', 'placeholder');
2135
+ if(isset($locale->default->city))
2136
+ $locale->default->city->gt_translate_keys = array('label', 'placeholder');
2137
+ if(isset($locale->default->postcode))
2138
+ $locale->default->postcode->gt_translate_keys = array('label', 'placeholder');
2139
+ if(isset($locale->default->state))
2140
+ $locale->default->state->gt_translate_keys = array('label', 'placeholder');
2141
+
2142
  if(isset($locale->default->shipping->address_1))
2143
  $locale->default->shipping->address_1->gt_translate_keys = array('label', 'placeholder');
2144
  if(isset($locale->default->shipping->address_2))
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 4.9
7
- Stable tag: 2.8.41
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
@@ -68,6 +68,7 @@ Please check our [FAQ](https://gtranslate.io/?xyz=998#faq) to get quick answers.
68
  * Translation Proxy (aka Translation Delivery Network)
69
  * Centralized Translation Cache - We revise and improve translations over time
70
  * Language Hosting (**example.fr**)
 
71
  * Live Chat Support
72
 
73
  [Download GTranslate](https://gtranslate.io/?xyz=998#pricing)
@@ -219,6 +220,9 @@ You need to go to the language you want to edit, for instance, French: http://do
219
  7. Settings page
220
 
221
  == Changelog ==
 
 
 
222
 
223
  = 2.8.41 =
224
  * Added support for WP REST API JSON translation for posts and categories
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: 4.9
7
+ Stable tag: 2.8.42
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
68
  * Translation Proxy (aka Translation Delivery Network)
69
  * Centralized Translation Cache - We revise and improve translations over time
70
  * Language Hosting (**example.fr**)
71
+ * User Dashboard with Analytics
72
  * Live Chat Support
73
 
74
  [Download GTranslate](https://gtranslate.io/?xyz=998#pricing)
220
  7. Settings page
221
 
222
  == Changelog ==
223
+ = 2.8.42 =
224
+ * New dashboard for paid customers https://my.gtranslate.io/
225
+ * Minor changes
226
 
227
  = 2.8.41 =
228
  * Added support for WP REST API JSON translation for posts and categories