Translate WordPress with GTranslate - Version 2.8.23

Version Description

  • Show native language names option turned off by default
  • Fixed issue with initial rendering of the language selector
  • Documentation updated
Download this release

Release Info

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

Code changes from version 2.8.22 to 2.8.23

Files changed (2) hide show
  1. gtranslate.php +9 -7
  2. readme.txt +13 -4
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.22
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
@@ -718,11 +718,6 @@ if('$widget_look' == 'dropdown_with_flags' || '$widget_look' == 'dropdown' || '$
718
  jQuery('#flag_size_option').show();
719
  }
720
 
721
- if(jQuery('#widget_code').val() == '')
722
- RefreshDoWidgetCode();
723
- else
724
- ShowWidgetPreview(jQuery('#widget_code').val());
725
-
726
  if(jQuery('#native_language_names:checked').length) {
727
  jQuery('.en_names').hide();
728
  jQuery('.native_names').show();
@@ -764,6 +759,13 @@ foreach($incl_langs as $lang)
764
  // alt flags
765
  foreach($alt_flags as $flag)
766
  $script .= "jQuery('#alt_$flag').attr('checked', true);\n";
 
 
 
 
 
 
 
767
  ?>
768
 
769
  <form id="gtranslate" name="form1" method="post" class="notranslate" action="<?php echo admin_url('options-general.php?page=gtranslate_options'); ?>" onsubmit="return gt_validate_form();">
@@ -1237,7 +1239,7 @@ foreach($alt_flags as $flag)
1237
  $data['new_window'] = isset($data['new_window']) ? $data['new_window'] : '';
1238
  $data['show_in_menu'] = isset($data['show_in_menu']) ? $data['show_in_menu'] : ((isset($data['show_in_primary_menu']) and $data['show_in_primary_menu'] == 1) ? 'primary' : '');
1239
  $data['floating_language_selector'] = isset($data['floating_language_selector']) ? $data['floating_language_selector'] : 'no';
1240
- $data['native_language_names'] = isset($data['native_language_names']) ? $data['native_language_names'] : 1;
1241
  $data['analytics'] = isset($data['analytics']) ? $data['analytics'] : '';
1242
  $data['add_new_line'] = isset($data['add_new_line']) ? $data['add_new_line'] : '1';
1243
 
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.23
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
718
  jQuery('#flag_size_option').show();
719
  }
720
 
 
 
 
 
 
721
  if(jQuery('#native_language_names:checked').length) {
722
  jQuery('.en_names').hide();
723
  jQuery('.native_names').show();
759
  // alt flags
760
  foreach($alt_flags as $flag)
761
  $script .= "jQuery('#alt_$flag').attr('checked', true);\n";
762
+
763
+ $script .= <<<EOT
764
+ if(jQuery('#widget_code').val() == '')
765
+ RefreshDoWidgetCode();
766
+ else
767
+ ShowWidgetPreview(jQuery('#widget_code').val());
768
+ EOT;
769
  ?>
770
 
771
  <form id="gtranslate" name="form1" method="post" class="notranslate" action="<?php echo admin_url('options-general.php?page=gtranslate_options'); ?>" onsubmit="return gt_validate_form();">
1239
  $data['new_window'] = isset($data['new_window']) ? $data['new_window'] : '';
1240
  $data['show_in_menu'] = isset($data['show_in_menu']) ? $data['show_in_menu'] : ((isset($data['show_in_primary_menu']) and $data['show_in_primary_menu'] == 1) ? 'primary' : '');
1241
  $data['floating_language_selector'] = isset($data['floating_language_selector']) ? $data['floating_language_selector'] : 'no';
1242
+ $data['native_language_names'] = isset($data['native_language_names']) ? $data['native_language_names'] : '';
1243
  $data['analytics'] = isset($data['analytics']) ? $data['analytics'] : '';
1244
  $data['add_new_line'] = isset($data['add_new_line']) ? $data['add_new_line'] : '1';
1245
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Author: Edvard Ananyan
4
  Tags: bilingual, multilingual, translate, translation, language, localization, translation proxy, i18n, l10n, localisation, multilanguage, google translate
5
  Requires at least: 2.8.1
6
  Tested up to: 4.7
7
- Stable tag: 2.8.22
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
@@ -89,10 +89,14 @@ List of supported languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Aze
89
  1. There are 4 ways you can use to publish the language selector on your website
90
 
91
  **1. Floating Language Selector**
92
- You can turn on Floating language selector option from Settings &rarr; GTranslate screen and it will show the language selector in appropriate location (Top Right, Bottom Right, Top Left or Bottom Left)
93
 
94
  **2. Showing in Menu**
95
- You can select from the list of available menus in which menu the language selector should appear
 
 
 
 
96
 
97
  **3. Use GTranslate shortcode**
98
  You can use `[gtranslate]` shortcode anywhere on your website including posts, pages, text widgets.
@@ -101,7 +105,7 @@ You can edit your template files and use `<?php echo do_shortcode('[gtranslate]'
101
  **4. Use GTranslate Widget**
102
  You can use Appearence &rarr; Widgets screen to publish GTranslate widget inside a sidebar of your template.
103
 
104
- If you are using any cache plugin, do not forget to clear your cache.
105
 
106
  If you have any issues, please do not hesitate to use our [Support Forum](https://wordpress.org/support/plugin/gtranslate) or [Live Chat](https://gtranslate.io/?xyz=998#contact)
107
 
@@ -214,6 +218,11 @@ You need to go to the language you want to edit, for instance, French: http://do
214
 
215
  == Changelog ==
216
 
 
 
 
 
 
217
  = 2.8.22 =
218
  * Intercom live chat support integrated
219
  * Gzip compression optimizations
4
  Tags: bilingual, multilingual, translate, translation, language, localization, translation proxy, i18n, l10n, localisation, multilanguage, google translate
5
  Requires at least: 2.8.1
6
  Tested up to: 4.7
7
+ Stable tag: 2.8.23
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
89
  1. There are 4 ways you can use to publish the language selector on your website
90
 
91
  **1. Floating Language Selector**
92
+ You can turn on Floating language selector option from Settings &rarr; GTranslate screen and it will show the language selector in appropriate location (Top Right, Bottom Right, Top Left or Bottom Left).
93
 
94
  **2. Showing in Menu**
95
+ You can select from the list of available menus in which menu the language selector should appear.
96
+
97
+ **2.1 Showing in Menu as sub-menu dropdown**
98
+ In addition you can create a new Custom Link menu item with URL = #, Link Text = Global and add CSS Classes = gtranslate-parent to the newly created menu item.
99
+ After that you can configure GTranslate and set Widget look = (Flags with language name/Flags with language code/Language names/Language codes) and it will appear as a dropdown when you hover on the newly created menu item.
100
 
101
  **3. Use GTranslate shortcode**
102
  You can use `[gtranslate]` shortcode anywhere on your website including posts, pages, text widgets.
105
  **4. Use GTranslate Widget**
106
  You can use Appearence &rarr; Widgets screen to publish GTranslate widget inside a sidebar of your template.
107
 
108
+ Please NOTE: If you are using any cache plugin, do not forget to clear your cache.
109
 
110
  If you have any issues, please do not hesitate to use our [Support Forum](https://wordpress.org/support/plugin/gtranslate) or [Live Chat](https://gtranslate.io/?xyz=998#contact)
111
 
218
 
219
  == Changelog ==
220
 
221
+ = 2.8.23 =
222
+ * Show native language names option turned off by default
223
+ * Fixed issue with initial rendering of the language selector
224
+ * Documentation updated
225
+
226
  = 2.8.22 =
227
  * Intercom live chat support integrated
228
  * Gzip compression optimizations