Google Language Translator - Version 3.0.1

Version Description

Download this release

Release Info

Developer rm2773
Plugin Icon wp plugin Google Language Translator
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0 to 3.0.1

Files changed (3) hide show
  1. css/style.css +0 -8
  2. google-language-translator.php +78 -80
  3. readme.txt +8 -2
css/style.css CHANGED
@@ -59,8 +59,6 @@ p.hello {
59
  color:darkgray;
60
  }
61
 
62
- /* Elegant Theme Translator Styles */
63
-
64
  .flag{
65
  font-size:16px;
66
  padding:1px 0;
@@ -121,10 +119,4 @@ span.vertical-translator {
121
  margin-top: 2px;
122
  right: -50px;
123
  z-index: 9999;
124
- }
125
-
126
- /* Hide the edit translation box */
127
-
128
- #goog-gt-tt {
129
- display:none !important;
130
  }
59
  color:darkgray;
60
  }
61
 
 
 
62
  .flag{
63
  font-size:16px;
64
  padding:1px 0;
119
  margin-top: 2px;
120
  right: -50px;
121
  z-index: 9999;
 
 
 
 
 
 
122
  }
google-language-translator.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
- Version: 3.0
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.studio88design.com/
@@ -46,7 +46,7 @@ function flags() {
46
  wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
47
  wp_enqueue_style( 'style.css' );
48
  }
49
- add_action('wp_enqueue_scripts', 'flags');
50
 
51
  function page_layout (){
52
  global $p;
@@ -790,87 +790,87 @@ function initialize_settings() {
790
  } ?>
791
 
792
  <div class="languages" style="width:25%; float:left">
793
- <div><input type="checkbox" name="language_display_settings[af]" value="1"<?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?> /> Afrikaans</div>
794
- <div><input type="checkbox" name="language_display_settings[sq]" value="1"<?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?> /> Albanian</div>
795
- <div><input type="checkbox" name="language_display_settings[ar]" value="1"<?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?> /> Arabic</div>
796
- <div><input type="checkbox" name="language_display_settings[hy]" value="1"<?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?> /> Armenian</div>
797
- <div><input type="checkbox" name="language_display_settings[az]" value="1"<?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?> /> Azerbaijani</div>
798
- <div><input type="checkbox" name="language_display_settings[eu]" value="1"<?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?> /> Basque</div>
799
- <div><input type="checkbox" name="language_display_settings[be]" value="1"<?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?> /> Belarusian</div>
800
- <div><input type="checkbox" name="language_display_settings[bn]" value="1"<?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?> /> Bengali</div>
801
- <div><input type="checkbox" name="language_display_settings[bs]" value="1"<?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?> /> Bosnian</div>
802
- <div><input type="checkbox" name="language_display_settings[bg]" value="1"<?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?> /> Bulgarian</div>
803
- <div><input type="checkbox" name="language_display_settings[ca]" value="1"<?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?> /> Catalan</div>
804
- <div><input type="checkbox" name="language_display_settings[ceb]" value="1"<?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?> /> Cebuano</div>
805
- <div><input type="checkbox" name="language_display_settings[zh-CN]" value="1"<?php if ( 1 == $get_language_choices['zh-CN'] ) echo 'checked="checked"'; ?> /> Chinese</div>
806
- <div><input type="checkbox" name="language_display_settings[zh-TW]" value="1"<?php if ( 1 == $get_language_choices['zh-TW'] ) echo 'checked="checked"'; ?> /> Chinese (Han)</div>
807
- <div><input type="checkbox" name="language_display_settings[hr]" value="1"<?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?> /> Croatian</div>
808
- <div><input type="checkbox" name="language_display_settings[cs]" value="1"<?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?> /> Czech</div>
809
- <div><input type="checkbox" name="language_display_settings[da]" value="1"<?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?> /> Danish</div>
810
- <div><input type="checkbox" name="language_display_settings[nl]" value="1"<?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?> /> Dutch</div>
811
- <div><input type="checkbox" name="language_display_settings[en]" value="1"<?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?> /> English</div>
812
  </div>
813
 
814
  <div class="languages" style="width:25%; float:left">
815
- <div><input type="checkbox" name="language_display_settings[eo]" value="1"<?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?> /> Esperanto</div>
816
- <div><input type="checkbox" name="language_display_settings[et]" value="1"<?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?> /> Estonian</div>
817
- <div><input type="checkbox" name="language_display_settings[tl]" value="1"<?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?> /> Filipino</div>
818
- <div><input type="checkbox" name="language_display_settings[fi]" value="1"<?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?> /> Finnish</div>
819
- <div><input type="checkbox" name="language_display_settings[fr]" value="1"<?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?> /> French</div>
820
- <div><input type="checkbox" name="language_display_settings[gl]" value="1"<?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?> /> Galician</div>
821
- <div><input type="checkbox" name="language_display_settings[ka]" value="1"<?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?> /> Georgian</div>
822
- <div><input type="checkbox" name="language_display_settings[de]" value="1"<?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?> /> German</div>
823
- <div><input type="checkbox" name="language_display_settings[el]" value="1"<?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?> /> Greek</div>
824
- <div><input type="checkbox" name="language_display_settings[gu]" value="1"<?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?> /> Gujarati</div>
825
- <div><input type="checkbox" name="language_display_settings[ht]" value="1"<?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?> /> Haitian</div>
826
- <div><input type="checkbox" name="language_display_settings[iw]" value="1"<?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?> /> Hebrew</div>
827
- <div><input type="checkbox" name="language_display_settings[hi]" value="1"<?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?> /> Hindi</div>
828
- <div><input type="checkbox" name="language_display_settings[hmn]" value="1"<?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?> /> Hmong</div>
829
- <div><input type="checkbox" name="language_display_settings[hu]" value="1"<?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?> /> Hungarian</div>
830
- <div><input type="checkbox" name="language_display_settings[is]" value="1"<?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?> /> Icelandic</div>
831
- <div><input type="checkbox" name="language_display_settings[id]" value="1"<?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?> /> Indonesian</div>
832
- <div><input type="checkbox" name="language_display_settings[ga]" value="1"<?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?> /> Irish</div>
833
- <div><input type="checkbox" name="language_display_settings[it]" value="1"<?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?> /> Italian</div>
834
  </div>
835
 
836
  <div class="languages" style="width:25%; float:left">
837
- <div><input type="checkbox" name="language_display_settings[ja]" value="1"<?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?> /> Japanese</div>
838
- <div><input type="checkbox" name="language_display_settings[jw]" value="1"<?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?> /> Javanese</div>
839
- <div><input type="checkbox" name="language_display_settings[kn]" value="1"<?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?> /> Kannada</div>
840
- <div><input type="checkbox" name="language_display_settings[km]" value="1"<?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?> /> Khmer</div>
841
- <div><input type="checkbox" name="language_display_settings[ko]" value="1"<?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?> /> Korean</div>
842
- <div><input type="checkbox" name="language_display_settings[lo]" value="1"<?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?> /> Lao</div>
843
- <div><input type="checkbox" name="language_display_settings[la]" value="1"<?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?> /> Latin</div>
844
- <div><input type="checkbox" name="language_display_settings[lv]" value="1"<?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?> /> Latvian</div>
845
- <div><input type="checkbox" name="language_display_settings[lt]" value="1"<?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?> /> Lithuanian</div>
846
- <div><input type="checkbox" name="language_display_settings[mk]" value="1"<?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?> /> Macedonian</div>
847
- <div><input type="checkbox" name="language_display_settings[ms]" value="1"<?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?> /> Malay</div>
848
- <div><input type="checkbox" name="language_display_settings[mt]" value="1"<?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?> /> Maltese</div>
849
- <div><input type="checkbox" name="language_display_settings[mr]" value="1"<?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?> /> Marathi</div>
850
- <div><input type="checkbox" name="language_display_settings[no]" value="1"<?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?> /> Norwegian</div>
851
- <div><input type="checkbox" name="language_display_settings[fa]" value="1"<?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?> /> Persian</div>
852
- <div><input type="checkbox" name="language_display_settings[pl]" value="1"<?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?> /> Polish</div>
853
- <div><input type="checkbox" name="language_display_settings[pt]" value="1"<?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?> /> Portuguese</div>
854
- <div><input type="checkbox" name="language_display_settings[ro]" value="1"<?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?> /> Romanian</div>
855
- <div><input type="checkbox" name="language_display_settings[ru]" value="1"<?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?> /> Russian</div>
856
  </div>
857
 
858
  <div class="languages" style="width:25%; float:left">
859
- <div><input type="checkbox" name="language_display_settings[sr]" value="1"<?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?> /> Serbian</div>
860
- <div><input type="checkbox" name="language_display_settings[sk]" value="1"<?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?> /> Slovak</div>
861
- <div><input type="checkbox" name="language_display_settings[sl]" value="1"<?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?> /> Slovenian</div>
862
- <div><input type="checkbox" name="language_display_settings[es]" value="1"<?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?> /> Spanish</div>
863
- <div><input type="checkbox" name="language_display_settings[sw]" value="1"<?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?> /> Swahili</div>
864
- <div><input type="checkbox" name="language_display_settings[sv]" value="1"<?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?> /> Swedish</div>
865
- <div><input type="checkbox" name="language_display_settings[ta]" value="1"<?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?> /> Tamil</div>
866
- <div><input type="checkbox" name="language_display_settings[te]" value="1"<?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?> /> Telugu</div>
867
- <div><input type="checkbox" name="language_display_settings[th]" value="1"<?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?> /> Thai</div>
868
- <div><input type="checkbox" name="language_display_settings[tr]" value="1"<?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?> /> Turkish</div>
869
- <div><input type="checkbox" name="language_display_settings[uk]" value="1"<?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?> /> Ukranian</div>
870
- <div><input type="checkbox" name="language_display_settings[ur]" value="1"<?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?> /> Urdu</div>
871
- <div><input type="checkbox" name="language_display_settings[vi]" value="1"<?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?> /> Vietnamese</div>
872
- <div><input type="checkbox" name="language_display_settings[cy]" value="1"<?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?> /> Welsh</div>
873
- <div><input type="checkbox" name="language_display_settings[yi]" value="1"<?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?> /> Yiddish</div>
874
  </div>
875
 
876
  <div style="clear:both"></div>
@@ -1822,7 +1822,7 @@ function googlelanguagetranslator_vertical(){
1822
  $str.='<script type="text/javascript">
1823
  function GoogleLanguageTranslatorInit() {
1824
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
1825
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1826
  <div id="google_language_translator"></div>';
1827
  return $str;
1828
  } elseif ($is_multilanguage == 0) {
@@ -1830,7 +1830,7 @@ function googlelanguagetranslator_vertical(){
1830
  $str.='<script type="text/javascript">
1831
  function GoogleLanguageTranslatorInit() {
1832
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
1833
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1834
  <div id="google_language_translator"></div>';
1835
  return $str;
1836
  }
@@ -2156,7 +2156,7 @@ function googlelanguagetranslator_horizontal(){
2156
  $str.='<script type="text/javascript">
2157
  function GoogleLanguageTranslatorInit() {
2158
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
2159
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
2160
  <div id="google_language_translator"></div>';
2161
  return $str;
2162
  } elseif ($is_multilanguage == 0) {
@@ -2164,7 +2164,7 @@ function googlelanguagetranslator_horizontal(){
2164
  $str.='<script type="text/javascript">
2165
  function GoogleLanguageTranslatorInit() {
2166
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\',layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
2167
- </script><script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
2168
  <div id="google_language_translator"></div>';
2169
  return $str;
2170
  }
@@ -2179,7 +2179,6 @@ function googlelanguagetranslator_toolbar_yes(){
2179
  #google_language_translator {color: transparent;}
2180
  .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
2181
  body { top:0px !important; }
2182
- .goog-te-banner-frame,.skiptranslate { width:100%; height:40px; }
2183
  </style>
2184
  <?php
2185
  }
@@ -2281,7 +2280,6 @@ function googlelanguagetranslator_flags_display() {
2281
  <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
2282
  #google_language_translator, #language { clear:both; width:auto !important; text-align:right; }
2283
  #language { float:right; }
2284
- .switcher { right:0px !important; left:auto; }
2285
  #flags { text-align:right; width:165px; float:right; clear:right; }
2286
  p.hello { text-align:right; float:right; clear:both; }
2287
  .glt-clear { height:0px; clear:both; margin:0px; padding:0px; }
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 3.0.1
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.studio88design.com/
46
  wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
47
  wp_enqueue_style( 'style.css' );
48
  }
49
+ add_action('init', 'flags');
50
 
51
  function page_layout (){
52
  global $p;
790
  } ?>
791
 
792
  <div class="languages" style="width:25%; float:left">
793
+ <div><input type="checkbox" name="language_display_settings[af]" value="1" <?php if ( 1 == $get_language_choices['af'] ) echo 'checked="checked"'; ?>/> Afrikaans</div>
794
+ <div><input type="checkbox" name="language_display_settings[sq]" value="1" <?php if ( 1 == $get_language_choices['sq'] ) echo 'checked="checked"'; ?>/> Albanian</div>
795
+ <div><input type="checkbox" name="language_display_settings[ar]" value="1" <?php if ( 1 == $get_language_choices['ar'] ) echo 'checked="checked"'; ?>/> Arabic</div>
796
+ <div><input type="checkbox" name="language_display_settings[hy]" value="1" <?php if ( 1 == $get_language_choices['hy'] ) echo 'checked="checked"'; ?>/> Armenian</div>
797
+ <div><input type="checkbox" name="language_display_settings[az]" value="1" <?php if ( 1 == $get_language_choices['az'] ) echo 'checked="checked"'; ?>/> Azerbaijani</div>
798
+ <div><input type="checkbox" name="language_display_settings[eu]" value="1" <?php if ( 1 == $get_language_choices['eu'] ) echo 'checked="checked"'; ?>/> Basque</div>
799
+ <div><input type="checkbox" name="language_display_settings[be]" value="1" <?php if ( 1 == $get_language_choices['be'] ) echo 'checked="checked"'; ?>/> Belarusian</div>
800
+ <div><input type="checkbox" name="language_display_settings[bn]" value="1" <?php if ( 1 == $get_language_choices['bn'] ) echo 'checked="checked"'; ?>/> Bengali</div>
801
+ <div><input type="checkbox" name="language_display_settings[bs]" value="1" <?php if ( 1 == $get_language_choices['bs'] ) echo 'checked="checked"'; ?>/> Bosnian</div>
802
+ <div><input type="checkbox" name="language_display_settings[bg]" value="1" <?php if ( 1 == $get_language_choices['bg'] ) echo 'checked="checked"'; ?>/> Bulgarian</div>
803
+ <div><input type="checkbox" name="language_display_settings[ca]" value="1" <?php if ( 1 == $get_language_choices['ca'] ) echo 'checked="checked"'; ?>/> Catalan</div>
804
+ <div><input type="checkbox" name="language_display_settings[ceb]" value="1" <?php if ( 1 == $get_language_choices['ceb'] ) echo 'checked="checked"'; ?>/> Cebuano</div>
805
+ <div><input type="checkbox" name="language_display_settings[zh-CN]" value="1" <?php if ( 1 == $get_language_choices['zh-CN'] ) echo 'checked="checked"'; ?>/> Chinese</div>
806
+ <div><input type="checkbox" name="language_display_settings[zh-TW]" value="1" <?php if ( 1 == $get_language_choices['zh-TW'] ) echo 'checked="checked"'; ?>/> Chinese (Han)</div>
807
+ <div><input type="checkbox" name="language_display_settings[hr]" value="1" <?php if ( 1 == $get_language_choices['hr'] ) echo 'checked="checked"'; ?>/> Croatian</div>
808
+ <div><input type="checkbox" name="language_display_settings[cs]" value="1" <?php if ( 1 == $get_language_choices['cs'] ) echo 'checked="checked"'; ?>/> Czech</div>
809
+ <div><input type="checkbox" name="language_display_settings[da]" value="1" <?php if ( 1 == $get_language_choices['da'] ) echo 'checked="checked"'; ?>/> Danish</div>
810
+ <div><input type="checkbox" name="language_display_settings[nl]" value="1" <?php if ( 1 == $get_language_choices['nl'] ) echo 'checked="checked"'; ?>/> Dutch</div>
811
+ <div><input type="checkbox" name="language_display_settings[en]" value="1" <?php if ( 1 == $get_language_choices['en'] ) echo 'checked="checked"'; ?>/> English</div>
812
  </div>
813
 
814
  <div class="languages" style="width:25%; float:left">
815
+ <div><input type="checkbox" name="language_display_settings[eo]" value="1" <?php if ( 1 == $get_language_choices['eo'] ) echo 'checked="checked"'; ?>/> Esperanto</div>
816
+ <div><input type="checkbox" name="language_display_settings[et]" value="1" <?php if ( 1 == $get_language_choices['et'] ) echo 'checked="checked"'; ?>/> Estonian</div>
817
+ <div><input type="checkbox" name="language_display_settings[tl]" value="1" <?php if ( 1 == $get_language_choices['tl'] ) echo 'checked="checked"'; ?>/> Filipino</div>
818
+ <div><input type="checkbox" name="language_display_settings[fi]" value="1" <?php if ( 1 == $get_language_choices['fi'] ) echo 'checked="checked"'; ?>/> Finnish</div>
819
+ <div><input type="checkbox" name="language_display_settings[fr]" value="1" <?php if ( 1 == $get_language_choices['fr'] ) echo 'checked="checked"'; ?>/> French</div>
820
+ <div><input type="checkbox" name="language_display_settings[gl]" value="1" <?php if ( 1 == $get_language_choices['gl'] ) echo 'checked="checked"'; ?>/> Galician</div>
821
+ <div><input type="checkbox" name="language_display_settings[ka]" value="1" <?php if ( 1 == $get_language_choices['ka'] ) echo 'checked="checked"'; ?>/> Georgian</div>
822
+ <div><input type="checkbox" name="language_display_settings[de]" value="1" <?php if ( 1 == $get_language_choices['de'] ) echo 'checked="checked"'; ?>/> German</div>
823
+ <div><input type="checkbox" name="language_display_settings[el]" value="1" <?php if ( 1 == $get_language_choices['el'] ) echo 'checked="checked"'; ?>/> Greek</div>
824
+ <div><input type="checkbox" name="language_display_settings[gu]" value="1" <?php if ( 1 == $get_language_choices['gu'] ) echo 'checked="checked"'; ?>/> Gujarati</div>
825
+ <div><input type="checkbox" name="language_display_settings[ht]" value="1" <?php if ( 1 == $get_language_choices['ht'] ) echo 'checked="checked"'; ?>/> Haitian</div>
826
+ <div><input type="checkbox" name="language_display_settings[iw]" value="1" <?php if ( 1 == $get_language_choices['iw'] ) echo 'checked="checked"'; ?>/> Hebrew</div>
827
+ <div><input type="checkbox" name="language_display_settings[hi]" value="1" <?php if ( 1 == $get_language_choices['hi'] ) echo 'checked="checked"'; ?>/> Hindi</div>
828
+ <div><input type="checkbox" name="language_display_settings[hmn]" value="1" <?php if ( 1 == $get_language_choices['hmn'] ) echo 'checked="checked"'; ?>/> Hmong</div>
829
+ <div><input type="checkbox" name="language_display_settings[hu]" value="1" <?php if ( 1 == $get_language_choices['hu'] ) echo 'checked="checked"'; ?>/> Hungarian</div>
830
+ <div><input type="checkbox" name="language_display_settings[is]" value="1" <?php if ( 1 == $get_language_choices['is'] ) echo 'checked="checked"'; ?>/> Icelandic</div>
831
+ <div><input type="checkbox" name="language_display_settings[id]" value="1" <?php if ( 1 == $get_language_choices['id'] ) echo 'checked="checked"'; ?>/> Indonesian</div>
832
+ <div><input type="checkbox" name="language_display_settings[ga]" value="1" <?php if ( 1 == $get_language_choices['ga'] ) echo 'checked="checked"'; ?>/> Irish</div>
833
+ <div><input type="checkbox" name="language_display_settings[it]" value="1" <?php if ( 1 == $get_language_choices['it'] ) echo 'checked="checked"'; ?>/> Italian</div>
834
  </div>
835
 
836
  <div class="languages" style="width:25%; float:left">
837
+ <div><input type="checkbox" name="language_display_settings[ja]" value="1" <?php if ( 1 == $get_language_choices['ja'] ) echo 'checked="checked"'; ?>/> Japanese</div>
838
+ <div><input type="checkbox" name="language_display_settings[jw]" value="1" <?php if ( 1 == $get_language_choices['jw'] ) echo 'checked="checked"'; ?>/> Javanese</div>
839
+ <div><input type="checkbox" name="language_display_settings[kn]" value="1" <?php if ( 1 == $get_language_choices['kn'] ) echo 'checked="checked"'; ?>/> Kannada</div>
840
+ <div><input type="checkbox" name="language_display_settings[km]" value="1" <?php if ( 1 == $get_language_choices['km'] ) echo 'checked="checked"'; ?>/> Khmer</div>
841
+ <div><input type="checkbox" name="language_display_settings[ko]" value="1" <?php if ( 1 == $get_language_choices['ko'] ) echo 'checked="checked"'; ?>/> Korean</div>
842
+ <div><input type="checkbox" name="language_display_settings[lo]" value="1" <?php if ( 1 == $get_language_choices['lo'] ) echo 'checked="checked"'; ?>/> Lao</div>
843
+ <div><input type="checkbox" name="language_display_settings[la]" value="1" <?php if ( 1 == $get_language_choices['la'] ) echo 'checked="checked"'; ?>/> Latin</div>
844
+ <div><input type="checkbox" name="language_display_settings[lv]" value="1" <?php if ( 1 == $get_language_choices['lv'] ) echo 'checked="checked"'; ?>/> Latvian</div>
845
+ <div><input type="checkbox" name="language_display_settings[lt]" value="1" <?php if ( 1 == $get_language_choices['lt'] ) echo 'checked="checked"'; ?>/> Lithuanian</div>
846
+ <div><input type="checkbox" name="language_display_settings[mk]" value="1" <?php if ( 1 == $get_language_choices['mk'] ) echo 'checked="checked"'; ?>/> Macedonian</div>
847
+ <div><input type="checkbox" name="language_display_settings[ms]" value="1" <?php if ( 1 == $get_language_choices['ms'] ) echo 'checked="checked"'; ?>/> Malay</div>
848
+ <div><input type="checkbox" name="language_display_settings[mt]" value="1" <?php if ( 1 == $get_language_choices['mt'] ) echo 'checked="checked"'; ?>/> Maltese</div>
849
+ <div><input type="checkbox" name="language_display_settings[mr]" value="1" <?php if ( 1 == $get_language_choices['mr'] ) echo 'checked="checked"'; ?>/> Marathi</div>
850
+ <div><input type="checkbox" name="language_display_settings[no]" value="1" <?php if ( 1 == $get_language_choices['no'] ) echo 'checked="checked"'; ?>/> Norwegian</div>
851
+ <div><input type="checkbox" name="language_display_settings[fa]" value="1" <?php if ( 1 == $get_language_choices['fa'] ) echo 'checked="checked"'; ?>/> Persian</div>
852
+ <div><input type="checkbox" name="language_display_settings[pl]" value="1" <?php if ( 1 == $get_language_choices['pl'] ) echo 'checked="checked"'; ?>/> Polish</div>
853
+ <div><input type="checkbox" name="language_display_settings[pt]" value="1" <?php if ( 1 == $get_language_choices['pt'] ) echo 'checked="checked"'; ?>/> Portuguese</div>
854
+ <div><input type="checkbox" name="language_display_settings[ro]" value="1" <?php if ( 1 == $get_language_choices['ro'] ) echo 'checked="checked"'; ?>/> Romanian</div>
855
+ <div><input type="checkbox" name="language_display_settings[ru]" value="1" <?php if ( 1 == $get_language_choices['ru'] ) echo 'checked="checked"'; ?>/> Russian</div>
856
  </div>
857
 
858
  <div class="languages" style="width:25%; float:left">
859
+ <div><input type="checkbox" name="language_display_settings[sr]" value="1" <?php if ( 1 == $get_language_choices['sr'] ) echo 'checked="checked"'; ?>/> Serbian</div>
860
+ <div><input type="checkbox" name="language_display_settings[sk]" value="1" <?php if ( 1 == $get_language_choices['sk'] ) echo 'checked="checked"'; ?>/> Slovak</div>
861
+ <div><input type="checkbox" name="language_display_settings[sl]" value="1" <?php if ( 1 == $get_language_choices['sl'] ) echo 'checked="checked"'; ?>/> Slovenian</div>
862
+ <div><input type="checkbox" name="language_display_settings[es]" value="1" <?php if ( 1 == $get_language_choices['es'] ) echo 'checked="checked"'; ?>/> Spanish</div>
863
+ <div><input type="checkbox" name="language_display_settings[sw]" value="1" <?php if ( 1 == $get_language_choices['sw'] ) echo 'checked="checked"'; ?>/> Swahili</div>
864
+ <div><input type="checkbox" name="language_display_settings[sv]" value="1" <?php if ( 1 == $get_language_choices['sv'] ) echo 'checked="checked"'; ?>/> Swedish</div>
865
+ <div><input type="checkbox" name="language_display_settings[ta]" value="1" <?php if ( 1 == $get_language_choices['ta'] ) echo 'checked="checked"'; ?>/> Tamil</div>
866
+ <div><input type="checkbox" name="language_display_settings[te]" value="1" <?php if ( 1 == $get_language_choices['te'] ) echo 'checked="checked"'; ?>/> Telugu</div>
867
+ <div><input type="checkbox" name="language_display_settings[th]" value="1" <?php if ( 1 == $get_language_choices['th'] ) echo 'checked="checked"'; ?>/> Thai</div>
868
+ <div><input type="checkbox" name="language_display_settings[tr]" value="1" <?php if ( 1 == $get_language_choices['tr'] ) echo 'checked="checked"'; ?>/> Turkish</div>
869
+ <div><input type="checkbox" name="language_display_settings[uk]" value="1" <?php if ( 1 == $get_language_choices['uk'] ) echo 'checked="checked"'; ?>/> Ukranian</div>
870
+ <div><input type="checkbox" name="language_display_settings[ur]" value="1" <?php if ( 1 == $get_language_choices['ur'] ) echo 'checked="checked"'; ?>/> Urdu</div>
871
+ <div><input type="checkbox" name="language_display_settings[vi]" value="1" <?php if ( 1 == $get_language_choices['vi'] ) echo 'checked="checked"'; ?>/> Vietnamese</div>
872
+ <div><input type="checkbox" name="language_display_settings[cy]" value="1" <?php if ( 1 == $get_language_choices['cy'] ) echo 'checked="checked"'; ?>/> Welsh</div>
873
+ <div><input type="checkbox" name="language_display_settings[yi]" value="1" <?php if ( 1 == $get_language_choices['yi'] ) echo 'checked="checked"'; ?>/> Yiddish</div>
874
  </div>
875
 
876
  <div style="clear:both"></div>
1822
  $str.='<script type="text/javascript">
1823
  function GoogleLanguageTranslatorInit() {
1824
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
1825
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1826
  <div id="google_language_translator"></div>';
1827
  return $str;
1828
  } elseif ($is_multilanguage == 0) {
1830
  $str.='<script type="text/javascript">
1831
  function GoogleLanguageTranslatorInit() {
1832
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\','.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
1833
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
1834
  <div id="google_language_translator"></div>';
1835
  return $str;
1836
  }
2156
  $str.='<script type="text/javascript">
2157
  function GoogleLanguageTranslatorInit() {
2158
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$multilanguagePage . $language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
2159
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
2160
  <div id="google_language_translator"></div>';
2161
  return $str;
2162
  } elseif ($is_multilanguage == 0) {
2164
  $str.='<script type="text/javascript">
2165
  function GoogleLanguageTranslatorInit() {
2166
  new google.translate.TranslateElement({pageLanguage: \''.get_option('googlelanguagetranslator_language').'\',layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,'.$language_choices.'autoDisplay: false, '.analytics().' }, \'google_language_translator\');}
2167
+ </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=GoogleLanguageTranslatorInit"></script>
2168
  <div id="google_language_translator"></div>';
2169
  return $str;
2170
  }
2179
  #google_language_translator {color: transparent;}
2180
  .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
2181
  body { top:0px !important; }
 
2182
  </style>
2183
  <?php
2184
  }
2280
  <?php if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') { ?>
2281
  #google_language_translator, #language { clear:both; width:auto !important; text-align:right; }
2282
  #language { float:right; }
 
2283
  #flags { text-align:right; width:165px; float:right; clear:right; }
2284
  p.hello { text-align:right; float:right; clear:both; }
2285
  .glt-clear { height:0px; clear:both; margin:0px; padding:0px; }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
4
  Plugin link: http://www.studio88design.com/plugins/google-language-translator
5
  Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
- Tested up to: 3.8
8
- stable tag: 3.0
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
@@ -132,6 +132,12 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
132
 
133
  - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
134
 
 
 
 
 
 
 
135
  == Screenshots ==
136
 
137
  1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.
4
  Plugin link: http://www.studio88design.com/plugins/google-language-translator
5
  Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
+ Tested up to: 3.8.1
8
+ stable tag: 3.0.1
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
132
 
133
  - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
134
 
135
+ 3.0.1
136
+
137
+ - Changed the url request to Google to allow both unsecured and secured page translations. Previously, some users experienced errors when trying to use the translator on "https://" (secured) pages.
138
+ - Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
139
+ - Removed old CSS styles that were added in the previous 3.0 update - the styles were added when Google servers were being updated, and were producing major translation dislay issues until their update was complete. Now the styles I added are no longer needed.
140
+
141
  == Screenshots ==
142
 
143
  1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.