Translate WordPress with GTranslate - Version 2.8.18

Version Description

  • Make sure default language is always selected
  • Paid pricing updated
  • Disable text highlighting when translated
Download this release

Release Info

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

Code changes from version 2.8.17 to 2.8.18

Files changed (2) hide show
  1. gtranslate.php +9 -4
  2. readme.txt +8 -3
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.17
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
@@ -241,6 +241,12 @@ function RefreshDoWidgetCode() {
241
  var native_language_names = jQuery('#native_language_names:checked').length > 0 ? true : false;
242
  var analytics = jQuery('#analytics:checked').length > 0 ? true : false;
243
 
 
 
 
 
 
 
244
  if(pro_version || enterprise_version) {
245
  translation_method = 'redirect';
246
  jQuery('#new_window_option').show();
@@ -378,13 +384,12 @@ function RefreshDoWidgetCode() {
378
  // Adding onfly html and css
379
  if(translation_method == 'onfly') {
380
  widget_code += '<style type="text/css">'+new_line;
381
- widget_code += '<!--'+new_line;
382
  widget_code += "#goog-gt-tt {display:none !important;}"+new_line;
383
  widget_code += ".goog-te-banner-frame {display:none !important;}"+new_line;
384
  widget_code += ".goog-te-menu-value:hover {text-decoration:none !important;}"+new_line;
 
385
  widget_code += "body {top:0 !important;}"+new_line;
386
  widget_code += "#google_translate_element2 {display:none!important;}"+new_line;
387
- widget_code += '-->'+new_line;
388
  widget_code += '</style>'+new_line+new_line;
389
  widget_code += '<div id="google_translate_element2"></div>'+new_line;
390
  widget_code += '<script type="text/javascript">'+new_line;
@@ -1055,7 +1060,7 @@ foreach($alt_flags as $flag)
1055
  <div class="postbox">
1056
  <h3 id="settings"><?php _e('Paid features', 'gtranslate'); ?></h3>
1057
  <div class="inside">
1058
- <p><?php _e('Prices starting from <b>$1.99/month</b>!', 'gtranslate'); ?></p>
1059
  <ul style="list-style-type:square;padding-left:20px;">
1060
  <li style="margin:0;"><?php _e('Enable search engine indexing', 'gtranslate'); ?></li>
1061
  <li style="margin:0;"><?php _e('Search engine friendly (SEF) URLs', 'gtranslate'); ?></li>
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.18
7
  Author: Edvard Ananyan
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
241
  var native_language_names = jQuery('#native_language_names:checked').length > 0 ? true : false;
242
  var analytics = jQuery('#analytics:checked').length > 0 ? true : false;
243
 
244
+ // make sure default language is on
245
+ if(widget_look == 'flags_dropdown' || widget_look == 'dropdown_with_flags' || widget_look == 'flags' || widget_look == 'flags_name' || widget_code == 'flags_code')
246
+ jQuery('#fincl_langs'+default_language).prop('checked', true);
247
+ if(widget_look == 'dropdown' || widget_look == 'globe' || widget_look == 'lang_names' || widget_look == 'lang_codes')
248
+ jQuery('#incl_langs'+default_language).prop('checked', true);
249
+
250
  if(pro_version || enterprise_version) {
251
  translation_method = 'redirect';
252
  jQuery('#new_window_option').show();
384
  // Adding onfly html and css
385
  if(translation_method == 'onfly') {
386
  widget_code += '<style type="text/css">'+new_line;
 
387
  widget_code += "#goog-gt-tt {display:none !important;}"+new_line;
388
  widget_code += ".goog-te-banner-frame {display:none !important;}"+new_line;
389
  widget_code += ".goog-te-menu-value:hover {text-decoration:none !important;}"+new_line;
390
+ widget_code += ".goog-text-highlight {background-color:transparent !important;box-shadow:none !important;}"+new_line;
391
  widget_code += "body {top:0 !important;}"+new_line;
392
  widget_code += "#google_translate_element2 {display:none!important;}"+new_line;
 
393
  widget_code += '</style>'+new_line+new_line;
394
  widget_code += '<div id="google_translate_element2"></div>'+new_line;
395
  widget_code += '<script type="text/javascript">'+new_line;
1060
  <div class="postbox">
1061
  <h3 id="settings"><?php _e('Paid features', 'gtranslate'); ?></h3>
1062
  <div class="inside">
1063
+ <p><?php _e('Prices starting from <b>$3.99/month</b>!', 'gtranslate'); ?></p>
1064
  <ul style="list-style-type:square;padding-left:20px;">
1065
  <li style="margin:0;"><?php _e('Enable search engine indexing', 'gtranslate'); ?></li>
1066
  <li style="margin:0;"><?php _e('Search engine friendly (SEF) URLs', 'gtranslate'); ?></li>
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: edo888
3
  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
6
  Tested up to: 4.7
7
- Stable tag: 2.8.17
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
@@ -80,7 +80,7 @@ Keywords: translate wordpress, wordpress translator, translate, translator, tran
80
 
81
  List of supported languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Catalan, Cebuano, Chichewa, Chinese (Simplified), Chinese (Traditional), Corsican, Croatian, Czech, Danish, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Kurdish (Kurmanji), Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar (Burmese), Nepali, Norwegian, Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scottish Gaelic, Serbian, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sudanese, Swahili, Swedish, Tajik, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, Xhosa, Yiddish, Yoruba, Zulu
82
 
83
- **Installation**
84
 
85
  1. Upload the plugin files to the `/wp-content/plugins/gtranslate` directory, or install the plugin through the WordPress plugins screen directly.
86
  1. Activate the plugin through the 'Plugins' screen in WordPress
@@ -211,6 +211,11 @@ You need to go to the language you want to edit, for instance, French: http://do
211
 
212
  == Changelog ==
213
 
 
 
 
 
 
214
  = 2.8.17 =
215
  * Fixed saving translation issue which appeared in 2.8.16 version
216
  * Minor readme fixes
2
  Contributors: edo888
3
  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.18
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
80
 
81
  List of supported languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Catalan, Cebuano, Chichewa, Chinese (Simplified), Chinese (Traditional), Corsican, Croatian, Czech, Danish, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Kurdish (Kurmanji), Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar (Burmese), Nepali, Norwegian, Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scottish Gaelic, Serbian, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sudanese, Swahili, Swedish, Tajik, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, Xhosa, Yiddish, Yoruba, Zulu
82
 
83
+ == Installation ==
84
 
85
  1. Upload the plugin files to the `/wp-content/plugins/gtranslate` directory, or install the plugin through the WordPress plugins screen directly.
86
  1. Activate the plugin through the 'Plugins' screen in WordPress
211
 
212
  == Changelog ==
213
 
214
+ = 2.8.18 =
215
+ * Make sure default language is always selected
216
+ * Paid pricing updated
217
+ * Disable text highlighting when translated
218
+
219
  = 2.8.17 =
220
  * Fixed saving translation issue which appeared in 2.8.16 version
221
  * Minor readme fixes