Translate WordPress with GTranslate - Version 1.0.11

Version Description

  • Analytics feature implemented. If you have Google Analytics _gaq code on your site you can enable it and see the language usage.
  • Fixed issue with the cookie path in On Fly method
Download this release

Release Info

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

Code changes from version 1.0.10 to 1.0.11

Files changed (2) hide show
  1. gtranslate.php +30 -6
  2. readme.txt +9 -1
gtranslate.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: GTranslate
4
  Plugin URI: http://edo.webmaster.am/gtranslate
5
  Description: Get translations with a single click between 58 languages (more than 98% of internet users) on your website!
6
- Version: 1.0.10
7
  Author: Edvard Ananyan
8
  Author URI: http://edo.webmaster.am
9
 
@@ -107,6 +107,7 @@ function RefreshDoWidgetCode() {
107
  var flag_size = jQuery('#flag_size').val();
108
  var pro_version = jQuery('#pro_version:checked').length > 0 ? true : false;
109
  var new_window = jQuery('#new_window:checked').length > 0 ? true : false;
 
110
 
111
  var languages = ['Afrikaans','Albanian','Arabic','Armenian','Azerbaijani','Basque','Belarusian','Bulgarian','Catalan','Chinese (Simplified)','Chinese (Traditional)','Croatian','Czech','Danish','Dutch','English','Estonian','Filipino','Finnish','French','Galician','Georgian','German','Greek','Haitian Creole','Hebrew','Hindi','Hungarian','Icelandic','Indonesian','Irish','Italian','Japanese','Korean','Latvian','Lithuanian','Macedonian','Malay','Maltese','Norwegian','Persian','Polish','Portuguese','Romanian','Russian','Serbian','Slovak','Slovenian','Spanish','Swahili','Swedish','Thai','Turkish','Ukrainian','Urdu','Vietnamese','Welsh','Yiddish'];
112
  var language_codes = ['af','sq','ar','hy','az','eu','be','bg','ca','zh-CN','zh-TW','hr','cs','da','nl','en','et','tl','fi','fr','gl','ka','de','el','ht','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pl','pt','ro','ru','sr','sk','sl','es','sw','sv','th','tr','uk','ur','vi','cy','yi'];
@@ -186,23 +187,38 @@ function RefreshDoWidgetCode() {
186
  widget_code += '//<![CDATA['+new_line;
187
  if(pro_version && translation_method == 'redirect' && new_window) {
188
  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;
189
- 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.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')openTab(location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search);else openTab(location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search);}"+new_line;
 
 
 
190
  } else if(pro_version && translation_method == 'redirect') {
191
- 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.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')location.href=location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search;else location.href=location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search;}"+new_line;
 
 
 
192
  } else if(translation_method == 'redirect' && new_window) {
193
  widget_code += 'if(top.location!=self.location)top.location=self.location;'+new_line;
194
  widget_code += "window['_tipoff']=function(){};window['_tipon']=function(a){};"+new_line;
195
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;else if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')openTab(unescape(gfg('u')));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href));else openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u')));}"+new_line;
 
 
 
196
  widget_code += 'function gfg(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(location.href);if(results==null)return "";return results[1];}'+new_line;
197
  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;
198
  } else if(translation_method == 'redirect') {
199
  widget_code += 'if(top.location!=self.location)top.location=self.location;'+new_line;
200
  widget_code += "window['_tipoff']=function(){};window['_tipon']=function(a){};"+new_line;
201
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;else if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')location.href=unescape(gfg('u'));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href);else location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u'));}"+new_line;
 
 
 
202
  widget_code += 'function gfg(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(location.href);if(results==null)return "";return results[1];}'+new_line;
203
  } else if(translation_method == 'on_fly') {
204
  widget_code += "if(jQuery.cookie('glang') && jQuery.cookie('glang') != '"+default_language+"') jQuery(function(\$){\$('body').translate('"+default_language+"', \$.cookie('glang'), {toggle:true, not:'.notranslate'});});"+new_line;
205
- widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;var lang=lang_pair.split('|')[1];if(lang=='pt')lang='pt-PT';jQuery.cookie('glang', lang);jQuery(function(\$){\$('body').translate('"+default_language+"', lang, {toggle:true, not:'.notranslate'});});}"+new_line;
 
 
 
206
  }
207
 
208
  widget_code += '//]]>'+new_line;
@@ -227,6 +243,7 @@ function ShowWidgetPreview(widget_preview) {
227
 
228
  jQuery('#pro_version').attr('checked', '$pro_version'.length > 0);
229
  jQuery('#new_window').attr('checked', '$new_window'.length > 0);
 
230
  jQuery('#load_jquery').attr('checked', '$load_jquery'.length > 0);
231
  jQuery('#add_new_line').attr('checked', '$add_new_line'.length > 0);
232
  jQuery('#show_dropdown').attr('checked', '$show_dropdown'.length > 0);
@@ -332,6 +349,10 @@ EOT;
332
  <td class="option_name">Open in new window:</td>
333
  <td><input id="new_window" name="new_window" value="1" type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()"/></td>
334
  </tr>
 
 
 
 
335
  <tr>
336
  <td class="option_name">Operate with Pro version:</td>
337
  <td><input id="pro_version" name="pro_version" value="1" type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()"/></td>
@@ -495,6 +516,7 @@ EOT;
495
  <h4>Widget preview</h4>
496
  <div id="widget_preview"></div>
497
  <div style="margin-top:15px;"><small class="black">Save the changes to see it in action.</small></div>
 
498
  </div>
499
 
500
  <div style="clear:both;"></div>
@@ -516,6 +538,7 @@ EOT;
516
 
517
  $data['pro_version'] = $_POST['pro_version'];
518
  $data['new_window'] = $_POST['new_window'];
 
519
  $data['load_jquery'] = $_POST['load_jquery'];
520
  $data['default_language'] = $_POST['default_language'];
521
  $data['translation_method'] = $_POST['translation_method'];
@@ -533,6 +556,7 @@ EOT;
533
  function load_defaults(& $data) {
534
  $data['pro_version'] = isset($data['pro_version']) ? $data['pro_version'] : '';
535
  $data['new_window'] = isset($data['new_window']) ? $data['new_window'] : '';
 
536
  $data['load_jquery'] = isset($data['load_jquery']) ? $data['load_jquery'] : '1';
537
  $data['add_new_line'] = isset($data['add_new_line']) ? $data['add_new_line'] : '1';
538
  $data['show_dropdown'] = isset($data['show_dropdown']) ? $data['show_dropdown'] : '1';
3
  Plugin Name: GTranslate
4
  Plugin URI: http://edo.webmaster.am/gtranslate
5
  Description: Get translations with a single click between 58 languages (more than 98% of internet users) on your website!
6
+ Version: 1.0.11
7
  Author: Edvard Ananyan
8
  Author URI: http://edo.webmaster.am
9
 
107
  var flag_size = jQuery('#flag_size').val();
108
  var pro_version = jQuery('#pro_version:checked').length > 0 ? true : false;
109
  var new_window = jQuery('#new_window:checked').length > 0 ? true : false;
110
+ var analytics = jQuery('#analytics:checked').length > 0 ? true : false;
111
 
112
  var languages = ['Afrikaans','Albanian','Arabic','Armenian','Azerbaijani','Basque','Belarusian','Bulgarian','Catalan','Chinese (Simplified)','Chinese (Traditional)','Croatian','Czech','Danish','Dutch','English','Estonian','Filipino','Finnish','French','Galician','Georgian','German','Greek','Haitian Creole','Hebrew','Hindi','Hungarian','Icelandic','Indonesian','Irish','Italian','Japanese','Korean','Latvian','Lithuanian','Macedonian','Malay','Maltese','Norwegian','Persian','Polish','Portuguese','Romanian','Russian','Serbian','Slovak','Slovenian','Spanish','Swahili','Swedish','Thai','Turkish','Ukrainian','Urdu','Vietnamese','Welsh','Yiddish'];
113
  var language_codes = ['af','sq','ar','hy','az','eu','be','bg','ca','zh-CN','zh-TW','hr','cs','da','nl','en','et','tl','fi','fr','gl','ka','de','el','ht','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pl','pt','ro','ru','sr','sk','sl','es','sw','sv','th','tr','uk','ur','vi','cy','yi'];
187
  widget_code += '//<![CDATA['+new_line;
188
  if(pro_version && translation_method == 'redirect' && new_window) {
189
  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;
190
+ if(analytics)
191
+ 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];_gaq.push(['_trackEvent', 'GTranslate', lang, location.pathname+location.search]);var plang=location.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')openTab(location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search);else openTab(location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search);}"+new_line;
192
+ else
193
+ 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.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')openTab(location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search);else openTab(location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search);}"+new_line;
194
  } else if(pro_version && translation_method == 'redirect') {
195
+ if(analytics)
196
+ 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];_gaq.push(['_trackEvent', 'GTranslate', lang, location.pathname+location.search]);var plang=location.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')location.href=location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search;else location.href=location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search;}"+new_line;
197
+ else
198
+ 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.pathname.split('/')[1];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='"+default_language+"';if(lang == '"+default_language+"')location.href=location.protocol+'//'+location.host+location.pathname.replace('/'+plang, '')+location.search;else location.href=location.protocol+'//'+location.host+'/'+lang+location.pathname.replace('/'+plang, '')+location.search;}"+new_line;
199
  } else if(translation_method == 'redirect' && new_window) {
200
  widget_code += 'if(top.location!=self.location)top.location=self.location;'+new_line;
201
  widget_code += "window['_tipoff']=function(){};window['_tipon']=function(a){};"+new_line;
202
+ if(analytics)
203
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;var lang=lang_pair.split('|')[1];_gaq.push(['_trackEvent', 'GTranslate', lang, location.pathname+location.search]);if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')openTab(unescape(gfg('u')));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href));else openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u')));}"+new_line;
204
+ else
205
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;else if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')openTab(unescape(gfg('u')));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href));else openTab('http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u')));}"+new_line;
206
  widget_code += 'function gfg(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(location.href);if(results==null)return "";return results[1];}'+new_line;
207
  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;
208
  } else if(translation_method == 'redirect') {
209
  widget_code += 'if(top.location!=self.location)top.location=self.location;'+new_line;
210
  widget_code += "window['_tipoff']=function(){};window['_tipon']=function(a){};"+new_line;
211
+ if(analytics)
212
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;var lang=lang_pair.split('|')[1];_gaq.push(['_trackEvent', 'GTranslate', lang, location.pathname+location.search]);if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')location.href=unescape(gfg('u'));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href);else location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u'));}"+new_line;
213
+ else
214
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(location.hostname!='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')return;else if(location.hostname=='translate.googleusercontent.com' && lang_pair=='"+default_language+"|"+default_language+"')location.href=unescape(gfg('u'));else if(location.hostname!='translate.googleusercontent.com' && lang_pair!='"+default_language+"|"+default_language+"')location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href);else location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u'));}"+new_line;
215
  widget_code += 'function gfg(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(location.href);if(results==null)return "";return results[1];}'+new_line;
216
  } else if(translation_method == 'on_fly') {
217
  widget_code += "if(jQuery.cookie('glang') && jQuery.cookie('glang') != '"+default_language+"') jQuery(function(\$){\$('body').translate('"+default_language+"', \$.cookie('glang'), {toggle:true, not:'.notranslate'});});"+new_line;
218
+ if(analytics)
219
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;var lang=lang_pair.split('|')[1];_gaq.push(['_trackEvent', 'GTranslate', lang, location.pathname+location.search]);jQuery.cookie('glang', lang, {path: '/'});jQuery(function(\$){\$('body').translate('"+default_language+"', lang, {toggle:true, not:'.notranslate'});});}"+new_line;
220
+ else
221
+ widget_code += "function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;var lang=lang_pair.split('|')[1];jQuery.cookie('glang', lang, {path: '/'});jQuery(function(\$){\$('body').translate('"+default_language+"', lang, {toggle:true, not:'.notranslate'});});}"+new_line;
222
  }
223
 
224
  widget_code += '//]]>'+new_line;
243
 
244
  jQuery('#pro_version').attr('checked', '$pro_version'.length > 0);
245
  jQuery('#new_window').attr('checked', '$new_window'.length > 0);
246
+ jQuery('#analytics').attr('checked', '$analytics'.length > 0);
247
  jQuery('#load_jquery').attr('checked', '$load_jquery'.length > 0);
248
  jQuery('#add_new_line').attr('checked', '$add_new_line'.length > 0);
249
  jQuery('#show_dropdown').attr('checked', '$show_dropdown'.length > 0);
349
  <td class="option_name">Open in new window:</td>
350
  <td><input id="new_window" name="new_window" value="1" type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()"/></td>
351
  </tr>
352
+ <tr>
353
+ <td class="option_name">Analytics:</td>
354
+ <td><input id="analytics" name="analytics" value="1" type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()"/></td>
355
+ </tr>
356
  <tr>
357
  <td class="option_name">Operate with Pro version:</td>
358
  <td><input id="pro_version" name="pro_version" value="1" type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()"/></td>
516
  <h4>Widget preview</h4>
517
  <div id="widget_preview"></div>
518
  <div style="margin-top:15px;"><small class="black">Save the changes to see it in action.</small></div>
519
+ <div style="margin-top:15px;"><small class="black">Note: Analytics feature can be enabled if you have Google Analytics _gaq code in your site. To see the analytics data you need to login to your Google Analytics account -> Content -> Event Tracking. Will not work in Google Default translation method.</small></div>
520
  </div>
521
 
522
  <div style="clear:both;"></div>
538
 
539
  $data['pro_version'] = $_POST['pro_version'];
540
  $data['new_window'] = $_POST['new_window'];
541
+ $data['analytics'] = $_POST['analytics'];
542
  $data['load_jquery'] = $_POST['load_jquery'];
543
  $data['default_language'] = $_POST['default_language'];
544
  $data['translation_method'] = $_POST['translation_method'];
556
  function load_defaults(& $data) {
557
  $data['pro_version'] = isset($data['pro_version']) ? $data['pro_version'] : '';
558
  $data['new_window'] = isset($data['new_window']) ? $data['new_window'] : '';
559
+ $data['analytics'] = isset($data['analytics']) ? $data['analytics'] : '';
560
  $data['load_jquery'] = isset($data['load_jquery']) ? $data['load_jquery'] : '1';
561
  $data['add_new_line'] = isset($data['add_new_line']) ? $data['add_new_line'] : '1';
562
  $data['show_dropdown'] = isset($data['show_dropdown']) ? $data['show_dropdown'] : '1';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://edo.webmaster.am/gtranslate
5
  Tags: widget, plugin, sidebar, google, translate, translation, automatic translator, google translate, ajax translator, jquery translator
6
  Requires at least: 2.3
7
  Tested up to: 3.0
8
- Stable tag: 1.0.10
9
 
10
  Get translations with a single click between 58 languages (more than 98% of internet users) on your website with the help of Google Translate automatic translation service!
11
 
@@ -17,6 +17,7 @@ This module uses Google Translate automatic translation service to translate you
17
  * Hides Google top frame after translation
18
  * Mouse over effect
19
  * Flags combined in one file to load faster
 
20
  * Option to open translated page in new window
21
  * Option to translate the page on fly
22
  * Available styles Dropdown/Flags/flags with dropdown
@@ -36,6 +37,9 @@ To configure the widget go to Settings -> GTranslate
36
 
37
  == Frequently Asked Questions ==
38
 
 
 
 
39
  = What is the quality of translation? =
40
  It's a Google translation, hence Google quality.
41
 
@@ -51,6 +55,10 @@ Yes, you need to wrap the text you don't want to be translated with &lt;span cla
51
 
52
  == Changelog ==
53
 
 
 
 
 
54
  = 1.0.10 =
55
  * Bug fixed: configuration settings were lost after update
56
  * FAQ updated
5
  Tags: widget, plugin, sidebar, google, translate, translation, automatic translator, google translate, ajax translator, jquery translator
6
  Requires at least: 2.3
7
  Tested up to: 3.0
8
+ Stable tag: 1.0.11
9
 
10
  Get translations with a single click between 58 languages (more than 98% of internet users) on your website with the help of Google Translate automatic translation service!
11
 
17
  * Hides Google top frame after translation
18
  * Mouse over effect
19
  * Flags combined in one file to load faster
20
+ * Analytics
21
  * Option to open translated page in new window
22
  * Option to translate the page on fly
23
  * Available styles Dropdown/Flags/flags with dropdown
37
 
38
  == Frequently Asked Questions ==
39
 
40
+ = Where I can see analytics data? =
41
+ 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.
42
+
43
  = What is the quality of translation? =
44
  It's a Google translation, hence Google quality.
45
 
55
 
56
  == Changelog ==
57
 
58
+ = 1.0.11 =
59
+ * Analytics feature implemented. If you have Google Analytics _gaq code on your site you can enable it and see the language usage.
60
+ * Fixed issue with the cookie path in On Fly method
61
+
62
  = 1.0.10 =
63
  * Bug fixed: configuration settings were lost after update
64
  * FAQ updated