Translate WordPress with GTranslate - Version 2.8.34

Version Description

  • Fixed update issue related to bug in new WP 4.9 flatten_dirlist function. Important: If you are using Globe widget look, make sure to open GTranslate settings page, click "Reset Code to Default" under Widget Code section and Save.
Download this release

Release Info

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

Code changes from version 2.8.33 to 2.8.34

Files changed (110) hide show
  1. 24/Morocco.png +0 -0
  2. {24 → globe_flags_24}/af.png +0 -0
  3. {24 → globe_flags_24}/am.png +0 -0
  4. {24 → globe_flags_24}/ar.png +0 -0
  5. {24 → globe_flags_24}/az.png +0 -0
  6. {24 → globe_flags_24}/be.png +0 -0
  7. {24 → globe_flags_24}/bg.png +0 -0
  8. {24 → globe_flags_24}/bn.png +0 -0
  9. {24 → globe_flags_24}/bs.png +0 -0
  10. {24 → globe_flags_24}/ca.png +0 -0
  11. {24 → globe_flags_24}/ceb.png +0 -0
  12. {24 → globe_flags_24}/co.png +0 -0
  13. {24 → globe_flags_24}/cs.png +0 -0
  14. {24 → globe_flags_24}/cy.png +0 -0
  15. {24 → globe_flags_24}/da.png +0 -0
  16. {24 → globe_flags_24}/de.png +0 -0
  17. {24 → globe_flags_24}/el.png +0 -0
  18. {24 → globe_flags_24}/en-us.png +0 -0
  19. {24 → globe_flags_24}/en.png +0 -0
  20. {24 → globe_flags_24}/eo.png +0 -0
  21. {24 → globe_flags_24}/es-mx.png +0 -0
  22. {24 → globe_flags_24}/es.png +0 -0
  23. {24 → globe_flags_24}/et.png +0 -0
  24. {24 → globe_flags_24}/eu.png +0 -0
  25. {24 → globe_flags_24}/fa.png +0 -0
  26. {24 → globe_flags_24}/fi.png +0 -0
  27. {24 → globe_flags_24}/fr.png +0 -0
  28. {24 → globe_flags_24}/fy.png +0 -0
  29. {24 → globe_flags_24}/ga.png +0 -0
  30. {24 → globe_flags_24}/gd.png +0 -0
  31. {24 → globe_flags_24}/gl.png +0 -0
  32. {24 → globe_flags_24}/gu.png +0 -0
  33. {24 → globe_flags_24}/ha.png +0 -0
  34. {24 → globe_flags_24}/haw.png +0 -0
  35. {24 → globe_flags_24}/hi.png +0 -0
  36. {24 → globe_flags_24}/hmn.png +0 -0
  37. {24 → globe_flags_24}/hr.png +0 -0
  38. {24 → globe_flags_24}/ht.png +0 -0
  39. {24 → globe_flags_24}/hu.png +0 -0
  40. {24 → globe_flags_24}/hy.png +0 -0
  41. {24 → globe_flags_24}/id.png +0 -0
  42. {24 → globe_flags_24}/ig.png +0 -0
  43. {24 → globe_flags_24}/is.png +0 -0
  44. {24 → globe_flags_24}/it.png +0 -0
  45. {24 → globe_flags_24}/iw.png +0 -0
  46. {24 → globe_flags_24}/ja.png +0 -0
  47. {24 → globe_flags_24}/jw.png +0 -0
  48. {24 → globe_flags_24}/ka.png +0 -0
  49. {24 → globe_flags_24}/kk.png +0 -0
  50. {24 → globe_flags_24}/km.png +0 -0
  51. {24 → globe_flags_24}/kn.png +0 -0
  52. {24 → globe_flags_24}/ko.png +0 -0
  53. {24 → globe_flags_24}/ku.png +0 -0
  54. {24 → globe_flags_24}/ky.png +0 -0
  55. {24 → globe_flags_24}/la.png +0 -0
  56. {24 → globe_flags_24}/lb.png +0 -0
  57. {24 → globe_flags_24}/lo.png +0 -0
  58. {24 → globe_flags_24}/lt.png +0 -0
  59. {24 → globe_flags_24}/lv.png +0 -0
  60. {24 → globe_flags_24}/mg.png +0 -0
  61. {24 → globe_flags_24}/mi.png +0 -0
  62. {24 → globe_flags_24}/mk.png +0 -0
  63. {24 → globe_flags_24}/ml.png +0 -0
  64. {24 → globe_flags_24}/mn.png +0 -0
  65. {24 → globe_flags_24}/mr.png +0 -0
  66. {24 → globe_flags_24}/ms.png +0 -0
  67. {24 → globe_flags_24}/mt.png +0 -0
  68. {24 → globe_flags_24}/my.png +0 -0
  69. {24 → globe_flags_24}/ne.png +0 -0
  70. {24 → globe_flags_24}/nl.png +0 -0
  71. {24 → globe_flags_24}/no.png +0 -0
  72. {24 → globe_flags_24}/ny.png +0 -0
  73. {24 → globe_flags_24}/pa.png +0 -0
  74. {24 → globe_flags_24}/pl.png +0 -0
  75. {24 → globe_flags_24}/ps.png +0 -0
  76. {24 → globe_flags_24}/pt-br.png +0 -0
  77. {24 → globe_flags_24}/pt.png +0 -0
  78. {24 → globe_flags_24}/ro.png +0 -0
  79. {24 → globe_flags_24}/ru.png +0 -0
  80. {24 → globe_flags_24}/sd.png +0 -0
  81. {24 → globe_flags_24}/si.png +0 -0
  82. {24 → globe_flags_24}/sk.png +0 -0
  83. {24 → globe_flags_24}/sl.png +0 -0
  84. {24 → globe_flags_24}/sm.png +0 -0
  85. {24 → globe_flags_24}/sn.png +0 -0
  86. {24 → globe_flags_24}/so.png +0 -0
  87. {24 → globe_flags_24}/sq.png +0 -0
  88. {24 → globe_flags_24}/sr.png +0 -0
  89. {24 → globe_flags_24}/st.png +0 -0
  90. {24 → globe_flags_24}/su.png +0 -0
  91. {24 → globe_flags_24}/sv.png +0 -0
  92. {24 → globe_flags_24}/sw.png +0 -0
  93. {24 → globe_flags_24}/ta.png +0 -0
  94. {24 → globe_flags_24}/te.png +0 -0
  95. {24 → globe_flags_24}/tg.png +0 -0
  96. {24 → globe_flags_24}/th.png +0 -0
  97. {24 → globe_flags_24}/tl.png +0 -0
  98. {24 → globe_flags_24}/tr.png +0 -0
  99. {24 → globe_flags_24}/uk.png +0 -0
  100. {24 → globe_flags_24}/ur.png +0 -0
  101. {24 → globe_flags_24}/uz.png +0 -0
  102. {24 → globe_flags_24}/vi.png +0 -0
  103. {24 → globe_flags_24}/xh.png +0 -0
  104. {24 → globe_flags_24}/yi.png +0 -0
  105. {24 → globe_flags_24}/yo.png +0 -0
  106. {24 → globe_flags_24}/zh-CN.png +0 -0
  107. {24 → globe_flags_24}/zh-TW.png +0 -0
  108. {24 → globe_flags_24}/zu.png +0 -0
  109. gtranslate.php +6 -6
  110. readme.txt +4 -1
24/Morocco.png DELETED
Binary file
{24 → globe_flags_24}/af.png RENAMED
File without changes
{24 → globe_flags_24}/am.png RENAMED
File without changes
{24 → globe_flags_24}/ar.png RENAMED
File without changes
{24 → globe_flags_24}/az.png RENAMED
File without changes
{24 → globe_flags_24}/be.png RENAMED
File without changes
{24 → globe_flags_24}/bg.png RENAMED
File without changes
{24 → globe_flags_24}/bn.png RENAMED
File without changes
{24 → globe_flags_24}/bs.png RENAMED
File without changes
{24 → globe_flags_24}/ca.png RENAMED
File without changes
{24 → globe_flags_24}/ceb.png RENAMED
File without changes
{24 → globe_flags_24}/co.png RENAMED
File without changes
{24 → globe_flags_24}/cs.png RENAMED
File without changes
{24 → globe_flags_24}/cy.png RENAMED
File without changes
{24 → globe_flags_24}/da.png RENAMED
File without changes
{24 → globe_flags_24}/de.png RENAMED
File without changes
{24 → globe_flags_24}/el.png RENAMED
File without changes
{24 → globe_flags_24}/en-us.png RENAMED
File without changes
{24 → globe_flags_24}/en.png RENAMED
File without changes
{24 → globe_flags_24}/eo.png RENAMED
File without changes
{24 → globe_flags_24}/es-mx.png RENAMED
File without changes
{24 → globe_flags_24}/es.png RENAMED
File without changes
{24 → globe_flags_24}/et.png RENAMED
File without changes
{24 → globe_flags_24}/eu.png RENAMED
File without changes
{24 → globe_flags_24}/fa.png RENAMED
File without changes
{24 → globe_flags_24}/fi.png RENAMED
File without changes
{24 → globe_flags_24}/fr.png RENAMED
File without changes
{24 → globe_flags_24}/fy.png RENAMED
File without changes
{24 → globe_flags_24}/ga.png RENAMED
File without changes
{24 → globe_flags_24}/gd.png RENAMED
File without changes
{24 → globe_flags_24}/gl.png RENAMED
File without changes
{24 → globe_flags_24}/gu.png RENAMED
File without changes
{24 → globe_flags_24}/ha.png RENAMED
File without changes
{24 → globe_flags_24}/haw.png RENAMED
File without changes
{24 → globe_flags_24}/hi.png RENAMED
File without changes
{24 → globe_flags_24}/hmn.png RENAMED
File without changes
{24 → globe_flags_24}/hr.png RENAMED
File without changes
{24 → globe_flags_24}/ht.png RENAMED
File without changes
{24 → globe_flags_24}/hu.png RENAMED
File without changes
{24 → globe_flags_24}/hy.png RENAMED
File without changes
{24 → globe_flags_24}/id.png RENAMED
File without changes
{24 → globe_flags_24}/ig.png RENAMED
File without changes
{24 → globe_flags_24}/is.png RENAMED
File without changes
{24 → globe_flags_24}/it.png RENAMED
File without changes
{24 → globe_flags_24}/iw.png RENAMED
File without changes
{24 → globe_flags_24}/ja.png RENAMED
File without changes
{24 → globe_flags_24}/jw.png RENAMED
File without changes
{24 → globe_flags_24}/ka.png RENAMED
File without changes
{24 → globe_flags_24}/kk.png RENAMED
File without changes
{24 → globe_flags_24}/km.png RENAMED
File without changes
{24 → globe_flags_24}/kn.png RENAMED
File without changes
{24 → globe_flags_24}/ko.png RENAMED
File without changes
{24 → globe_flags_24}/ku.png RENAMED
File without changes
{24 → globe_flags_24}/ky.png RENAMED
File without changes
{24 → globe_flags_24}/la.png RENAMED
File without changes
{24 → globe_flags_24}/lb.png RENAMED
File without changes
{24 → globe_flags_24}/lo.png RENAMED
File without changes
{24 → globe_flags_24}/lt.png RENAMED
File without changes
{24 → globe_flags_24}/lv.png RENAMED
File without changes
{24 → globe_flags_24}/mg.png RENAMED
File without changes
{24 → globe_flags_24}/mi.png RENAMED
File without changes
{24 → globe_flags_24}/mk.png RENAMED
File without changes
{24 → globe_flags_24}/ml.png RENAMED
File without changes
{24 → globe_flags_24}/mn.png RENAMED
File without changes
{24 → globe_flags_24}/mr.png RENAMED
File without changes
{24 → globe_flags_24}/ms.png RENAMED
File without changes
{24 → globe_flags_24}/mt.png RENAMED
File without changes
{24 → globe_flags_24}/my.png RENAMED
File without changes
{24 → globe_flags_24}/ne.png RENAMED
File without changes
{24 → globe_flags_24}/nl.png RENAMED
File without changes
{24 → globe_flags_24}/no.png RENAMED
File without changes
{24 → globe_flags_24}/ny.png RENAMED
File without changes
{24 → globe_flags_24}/pa.png RENAMED
File without changes
{24 → globe_flags_24}/pl.png RENAMED
File without changes
{24 → globe_flags_24}/ps.png RENAMED
File without changes
{24 → globe_flags_24}/pt-br.png RENAMED
File without changes
{24 → globe_flags_24}/pt.png RENAMED
File without changes
{24 → globe_flags_24}/ro.png RENAMED
File without changes
{24 → globe_flags_24}/ru.png RENAMED
File without changes
{24 → globe_flags_24}/sd.png RENAMED
File without changes
{24 → globe_flags_24}/si.png RENAMED
File without changes
{24 → globe_flags_24}/sk.png RENAMED
File without changes
{24 → globe_flags_24}/sl.png RENAMED
File without changes
{24 → globe_flags_24}/sm.png RENAMED
File without changes
{24 → globe_flags_24}/sn.png RENAMED
File without changes
{24 → globe_flags_24}/so.png RENAMED
File without changes
{24 → globe_flags_24}/sq.png RENAMED
File without changes
{24 → globe_flags_24}/sr.png RENAMED
File without changes
{24 → globe_flags_24}/st.png RENAMED
File without changes
{24 → globe_flags_24}/su.png RENAMED
File without changes
{24 → globe_flags_24}/sv.png RENAMED
File without changes
{24 → globe_flags_24}/sw.png RENAMED
File without changes
{24 → globe_flags_24}/ta.png RENAMED
File without changes
{24 → globe_flags_24}/te.png RENAMED
File without changes
{24 → globe_flags_24}/tg.png RENAMED
File without changes
{24 → globe_flags_24}/th.png RENAMED
File without changes
{24 → globe_flags_24}/tl.png RENAMED
File without changes
{24 → globe_flags_24}/tr.png RENAMED
File without changes
{24 → globe_flags_24}/uk.png RENAMED
File without changes
{24 → globe_flags_24}/ur.png RENAMED
File without changes
{24 → globe_flags_24}/uz.png RENAMED
File without changes
{24 → globe_flags_24}/vi.png RENAMED
File without changes
{24 → globe_flags_24}/xh.png RENAMED
File without changes
{24 → globe_flags_24}/yi.png RENAMED
File without changes
{24 → globe_flags_24}/yo.png RENAMED
File without changes
{24 → globe_flags_24}/zh-CN.png RENAMED
File without changes
{24 → globe_flags_24}/zh-TW.png RENAMED
File without changes
{24 → globe_flags_24}/zu.png RENAMED
File without changes
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.33
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
@@ -492,7 +492,7 @@ function RefreshDoWidgetCode() {
492
  widget_preview += 'var x, y, angle;'+new_line;
493
  widget_preview += 'do {if (j + 1 > Math.round(2 * r0 * Math.PI / d) * (nc + 1) * (nc + 2) / 2) {nc++;r = r + r0;cntpc = Math.floor(2 * Math.PI * r / d);}angle = j * 2 * Math.PI / cntpc + Math.PI / 4;x = centerPosition.left + Math.cos(angle) * r;y = centerPosition.top + Math.sin(angle) * r;'+new_line;
494
  widget_preview += "var positionGSatelites = ($('.gsatelites').parent().css('position') == 'fixed' ? $('.gsatelites').parent().position() : $('.gsatelites').offset()),vpHeight = $(window).height(),vpWidth = $(window).width(),tpViz = positionGSatelites.top + y >= 0 && positionGSatelites.top + y < vpHeight,btViz = positionGSatelites.top + y + 24 > 0 && positionGSatelites.top + y + 24 <= vpHeight,ltViz = positionGSatelites.left + x >= 0 && positionGSatelites.left + x < vpWidth,rtViz = positionGSatelites.left + x + 24 > 0 && positionGSatelites.left + x + 24 <= vpWidth,vVisible = tpViz && btViz,hVisible = ltViz && rtViz;if (vVisible && hVisible) {break;} else {j++;}} while (j - i < 10 * count);"+new_line;
495
- widget_preview += "$('.gsatelites').append('<span class=\"gsatelite gs' + (i + 1) + ' glang_' + language_codes2[i] + '\" onclick=\"doGTranslate("+"\\\\'"+default_language+"|'+language_codes2[i]+'"+"\\\\'"+")\" title=\"' + languages[i] + '\" style=\"background-image:url($wp_plugin_url/24/' + (function(l){if(l == 'en' && us_flag)return 'en-us';if(l == 'pt' && br_flag)return 'pt-br';if(l == 'es' && mx_flag)return 'es-mx';return l;})(language_codes2[i]) + '.png);left:' + x + 'px;top:' + y + 'px;\"></span>');"+new_line;
496
  widget_preview += "$('.gs' + (i + 1)).delay((i + 1) * 10).fadeIn('fast');"+new_line;
497
  widget_preview += '}}'+new_line;
498
  widget_preview += "function hideGSatelites($) { $('.gsatelite').each(function(i) { $(this).delay(($('.gsatelite').length - i - 1) * 10).fadeOut('fast');});}"+new_line;
@@ -727,14 +727,14 @@ function RefreshDoWidgetCode() {
727
  } else if(enterprise_version && translation_method == 'redirect' && new_window) {
728
  widget_code += "function openTab(url) {var form=document.createElement('form');form.method='post';form.action=url;form.target='_blank';document.body.appendChild(form);form.submit();}"+new_line;
729
  if(analytics)
730
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent', 'GTranslate', lang, location.hostname+location.pathname+location.search]);}else {if(typeof ga!='undefined')ga('send', 'event', 'GTranslate', lang, location.hostname+location.pathname+location.search);}var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';openTab(location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '\\\\\\\\.'), '')+gt_request_uri);}"+new_line;
731
  else
732
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';openTab(location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '\\\\\\\\.'), '')+gt_request_uri);}"+new_line;
733
  } else if(enterprise_version && translation_method == 'redirect') {
734
  if(analytics)
735
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent', 'GTranslate', lang, location.hostname+location.pathname+location.search]);}else {if(typeof ga!='undefined')ga('send', 'event', 'GTranslate', lang, location.hostname+location.pathname+location.search);}var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';location.href=location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '\\\\\\\\.'), '')+gt_request_uri;}"+new_line;
736
  else
737
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';location.href=location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '\\\\\\\\.'), '')+gt_request_uri;}"+new_line;
738
  } else if(translation_method == 'onfly') {
739
  widget_code += "function GTranslateGetCurrentLang() {var keyValue = document['cookie'].match('(^|;) ?googtrans=([^;]*)(;|$)');return keyValue ? keyValue[2].split('/')[2] : null;}"+new_line;
740
  widget_code += "function GTranslateFireEvent(element,event){try{if(document.createEventObject){var evt=document.createEventObject();element.fireEvent('on'+event,evt)}else{var evt=document.createEvent('HTMLEvents');evt.initEvent(event,true,true);element.dispatchEvent(evt)}}catch(e){}}"+new_line;
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.34
7
  Author: Translate AI Multilingual Solutions
8
  Author URI: https://gtranslate.io
9
  Text Domain: gtranslate
492
  widget_preview += 'var x, y, angle;'+new_line;
493
  widget_preview += 'do {if (j + 1 > Math.round(2 * r0 * Math.PI / d) * (nc + 1) * (nc + 2) / 2) {nc++;r = r + r0;cntpc = Math.floor(2 * Math.PI * r / d);}angle = j * 2 * Math.PI / cntpc + Math.PI / 4;x = centerPosition.left + Math.cos(angle) * r;y = centerPosition.top + Math.sin(angle) * r;'+new_line;
494
  widget_preview += "var positionGSatelites = ($('.gsatelites').parent().css('position') == 'fixed' ? $('.gsatelites').parent().position() : $('.gsatelites').offset()),vpHeight = $(window).height(),vpWidth = $(window).width(),tpViz = positionGSatelites.top + y >= 0 && positionGSatelites.top + y < vpHeight,btViz = positionGSatelites.top + y + 24 > 0 && positionGSatelites.top + y + 24 <= vpHeight,ltViz = positionGSatelites.left + x >= 0 && positionGSatelites.left + x < vpWidth,rtViz = positionGSatelites.left + x + 24 > 0 && positionGSatelites.left + x + 24 <= vpWidth,vVisible = tpViz && btViz,hVisible = ltViz && rtViz;if (vVisible && hVisible) {break;} else {j++;}} while (j - i < 10 * count);"+new_line;
495
+ widget_preview += "$('.gsatelites').append('<span class=\"gsatelite gs' + (i + 1) + ' glang_' + language_codes2[i] + '\" onclick=\"doGTranslate("+"\\\\'"+default_language+"|'+language_codes2[i]+'"+"\\\\'"+")\" title=\"' + languages[i] + '\" style=\"background-image:url($wp_plugin_url/globe_flags_24/' + (function(l){if(l == 'en' && us_flag)return 'en-us';if(l == 'pt' && br_flag)return 'pt-br';if(l == 'es' && mx_flag)return 'es-mx';return l;})(language_codes2[i]) + '.png);left:' + x + 'px;top:' + y + 'px;\"></span>');"+new_line;
496
  widget_preview += "$('.gs' + (i + 1)).delay((i + 1) * 10).fadeIn('fast');"+new_line;
497
  widget_preview += '}}'+new_line;
498
  widget_preview += "function hideGSatelites($) { $('.gsatelite').each(function(i) { $(this).delay(($('.gsatelite').length - i - 1) * 10).fadeOut('fast');});}"+new_line;
727
  } else if(enterprise_version && translation_method == 'redirect' && new_window) {
728
  widget_code += "function openTab(url) {var form=document.createElement('form');form.method='post';form.action=url;form.target='_blank';document.body.appendChild(form);form.submit();}"+new_line;
729
  if(analytics)
730
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent', 'GTranslate', lang, location.hostname+location.pathname+location.search]);}else {if(typeof ga!='undefined')ga('send', 'event', 'GTranslate', lang, location.hostname+location.pathname+location.search);}var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';openTab(location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '[.]'), '')+gt_request_uri);}"+new_line;
731
  else
732
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';openTab(location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '[.]'), '')+gt_request_uri);}"+new_line;
733
  } else if(enterprise_version && translation_method == 'redirect') {
734
  if(analytics)
735
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent', 'GTranslate', lang, location.hostname+location.pathname+location.search]);}else {if(typeof ga!='undefined')ga('send', 'event', 'GTranslate', lang, location.hostname+location.pathname+location.search);}var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';location.href=location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '[.]'), '')+gt_request_uri;}"+new_line;
736
  else
737
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='"+default_language+"';location.href=location.protocol+'//'+(lang == '"+default_language+"' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '[.]'), '')+gt_request_uri;}"+new_line;
738
  } else if(translation_method == 'onfly') {
739
  widget_code += "function GTranslateGetCurrentLang() {var keyValue = document['cookie'].match('(^|;) ?googtrans=([^;]*)(;|$)');return keyValue ? keyValue[2].split('/')[2] : null;}"+new_line;
740
  widget_code += "function GTranslateFireEvent(element,event){try{if(document.createEventObject){var evt=document.createEventObject();element.fireEvent('on'+event,evt)}else{var evt=document.createEvent('HTMLEvents');evt.initEvent(event,true,true);element.dispatchEvent(evt)}}catch(e){}}"+new_line;
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.33
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
@@ -219,6 +219,9 @@ You need to go to the language you want to edit, for instance, French: http://do
219
 
220
  == Changelog ==
221
 
 
 
 
222
  = 2.8.33 =
223
  * Fixed issue related to new version of Contact Form 7
224
  * Ready for WordPress 4.9
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.34
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
219
 
220
  == Changelog ==
221
 
222
+ = 2.8.34 =
223
+ * Fixed update issue related to bug in new WP 4.9 flatten_dirlist function. Important: If you are using Globe widget look, make sure to open GTranslate settings page, click "Reset Code to Default" under Widget Code section and Save.
224
+
225
  = 2.8.33 =
226
  * Fixed issue related to new version of Contact Form 7
227
  * Ready for WordPress 4.9