Google Language Translator - Version 5.0.01

Version Description

Download this release

Release Info

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

Code changes from version 5.0.0 to 5.0.01

css/style.css CHANGED
@@ -1,7 +1,3 @@
1
- body.wp-admin #flags a {
2
- cursor:move !important;
3
- }
4
-
5
  #glt-footer,
6
  #glt-footer #google_language_translator {
7
  display:none !important;
@@ -279,8 +275,8 @@ code {
279
  background:url('../images/flags22.png') -146px -32px no-repeat;
280
  }
281
 
282
- #flags.size22 a[title="Chinese(Simplified)"],
283
- .tool-container .tool-items a[title="Chinese(Simplified)"] {
284
  background:url('../images/flags22.png') -1px -61px no-repeat;
285
  }
286
 
@@ -686,8 +682,8 @@ code {
686
  background:url('../images/flags18.png') -147px -33px no-repeat;
687
  }
688
 
689
- #flags.size18 a[title="Chinese(Simplified)"],
690
- .tool-container .tool-items a[title="Chinese(Simplified)"] {
691
  background:url('../images/flags18.png') -2px -62px no-repeat;
692
  }
693
 
@@ -1093,8 +1089,8 @@ code {
1093
  background:url('../images/flags20.png') -147px -33px no-repeat;
1094
  }
1095
 
1096
- #flags.size20 a[title="Chinese(Simplified)"],
1097
- .tool-container .tool-items a[title="Chinese(Simplified)"] {
1098
  background:url('../images/flags20.png') -2px -62px no-repeat;
1099
  }
1100
 
@@ -1500,8 +1496,8 @@ code {
1500
  background:url('../images/flags16.png') -148px -34px no-repeat;
1501
  }
1502
 
1503
- #flags.size16 a[title="Chinese(Simplified)"],
1504
- .tool-container .tool-items a[title="Chinese(Simplified)"] {
1505
  background:url('../images/flags16.png') -3px -63px no-repeat;
1506
  }
1507
 
@@ -1907,8 +1903,8 @@ code {
1907
  background:url('../images/flags.png') -145px -32px no-repeat;
1908
  }
1909
 
1910
- #flags.size24 a[title="Chinese(Simplified)"],
1911
- .tool-container .tool-items a[title="Chinese(Simplified)"] {
1912
  background:url('../images/flags.png') 0 -61px no-repeat;
1913
  }
1914
 
 
 
 
 
1
  #glt-footer,
2
  #glt-footer #google_language_translator {
3
  display:none !important;
275
  background:url('../images/flags22.png') -146px -32px no-repeat;
276
  }
277
 
278
+ #flags.size22 a[title="Chinese"],
279
+ .tool-container .tool-items a[title="Chinese"] {
280
  background:url('../images/flags22.png') -1px -61px no-repeat;
281
  }
282
 
682
  background:url('../images/flags18.png') -147px -33px no-repeat;
683
  }
684
 
685
+ #flags.size18 a[title="Chinese"],
686
+ .tool-container .tool-items a[title="Chinese"] {
687
  background:url('../images/flags18.png') -2px -62px no-repeat;
688
  }
689
 
1089
  background:url('../images/flags20.png') -147px -33px no-repeat;
1090
  }
1091
 
1092
+ #flags.size20 a[title="Chinese"],
1093
+ .tool-container .tool-items a[title="Chinese"] {
1094
  background:url('../images/flags20.png') -2px -62px no-repeat;
1095
  }
1096
 
1496
  background:url('../images/flags16.png') -148px -34px no-repeat;
1497
  }
1498
 
1499
+ #flags.size16 a[title="Chinese"],
1500
+ .tool-container .tool-items a[title="Chinese"] {
1501
  background:url('../images/flags16.png') -3px -63px no-repeat;
1502
  }
1503
 
1903
  background:url('../images/flags.png') -145px -32px no-repeat;
1904
  }
1905
 
1906
+ #flags.size24 a[title="Chinese"],
1907
+ .tool-container .tool-items a[title="Chinese"] {
1908
  background:url('../images/flags.png') 0 -61px no-repeat;
1909
  }
1910
 
css/style.php CHANGED
@@ -1,99 +1,99 @@
1
- <?php
2
-
3
- $glt_css = get_option("googlelanguagetranslator_css");
4
-
5
- echo '<style type="text/css">';
6
- echo $glt_css;
7
-
8
- if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
9
-
10
- if(get_option('googlelanguagetranslator_display')=='Vertical') {
11
- if (get_option('googlelanguagetranslator_language_option')=='specific') {
12
- echo '#flags {display:none !important; }';
13
- }
14
-
15
- echo 'p.hello { font-size:12px; color:darkgray; }';
16
- echo '#google_language_translator, #flags { text-align:left; }';
17
- } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') {
18
-
19
- if (get_option('googlelanguagetranslator_language_option')=='specific') {
20
- echo '#flags {display:none !important; }';
21
- }
22
-
23
- if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') {
24
- echo '#google_language_translator { text-align:left !important; }';
25
- echo 'select.goog-te-combo { float:right; }';
26
- echo '.goog-te-gadget { padding-top:13px; }';
27
- echo '.goog-te-gadget .goog-te-combo { margin-top:-7px !important; }';
28
- }
29
-
30
- echo '.goog-te-gadget { margin-top:2px !important; }';
31
- echo 'p.hello { font-size:12px; color:#666; }';
32
- }
33
-
34
- if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
35
- echo '#google_language_translator, #language { clear:both; width:auto !important; text-align:right; }';
36
- echo '#language { float:right; }';
37
- echo '#flags { text-align:right; width:165px; float:right; clear:right; }';
38
- echo '#flags ul { float:right !important; }';
39
- echo 'p.hello { text-align:right; float:right; clear:both; }';
40
- echo '.glt-clear { height:0px; clear:both; margin:0px; padding:0px; }';
41
- }
42
-
43
- if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') {
44
- echo '#google_language_translator { clear:both; }';
45
- echo '#flags { width:165px; }';
46
- echo '#flags a { display:inline-block; margin-right:2px; }';
47
- } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
48
- echo '#flags { width:165px; }';
49
- echo '#flags a { display:inline-block; margin-left:2px; }';
50
- }
51
- }
52
-
53
- if (get_option('googlelanguagetranslator_manage_translations') == 0) {
54
- if(get_option('googlelanguagetranslator_active')==1) {
55
- echo '.goog-tooltip {display: none !important;}';
56
- echo '.goog-tooltip:hover {display: none !important;}';
57
- echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}';
58
- }
59
- }
60
-
61
- if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
62
- if(get_option('googlelanguagetranslator_active')==1) {
63
- echo '#google_language_translator { width:auto !important; }';
64
- }
65
-
66
- } elseif(get_option('googlelanguagetranslator_showbranding')=='No') {
67
- if(get_option('googlelanguagetranslator_active')==1) {
68
- echo '#google_language_translator a {display: none !important; }';
69
- echo '.goog-te-gadget {color:transparent !important;}';
70
- echo '.goog-te-gadget { font-size:0px !important; }';
71
- echo '.goog-branding { display:none; }';
72
- }
73
- }
74
-
75
- if (get_option('googlelanguagetranslator_translatebox') == 'no') {
76
- if(get_option('googlelanguagetranslator_active')==1) {
77
- echo '#google_language_translator { display:none; }';
78
- }
79
- }
80
-
81
- if (get_option('googlelanguagetranslator_flags') == 'hide_flags') {
82
- if(get_option('googlelanguagetranslator_active') ==1) {
83
- echo '#flags { display:none; }';
84
- }
85
- }
86
-
87
- if(get_option('googlelanguagetranslator_toolbar')=='Yes') {
88
- if(get_option('googlelanguagetranslator_active')==1) {
89
- echo '#google_language_translator {color: transparent;}';
90
- echo 'body { top:0px !important; }';
91
- }
92
- } elseif(get_option('googlelanguagetranslator_toolbar')=='No') {
93
- if(get_option('googlelanguagetranslator_active')==1) {
94
- echo '.goog-te-banner-frame{visibility:hidden !important;}';
95
- echo 'body { top:0px !important;}';
96
- }
97
- }
98
- echo '</style>';
99
  ?>
1
+ <?php
2
+
3
+ $glt_css = get_option("googlelanguagetranslator_css");
4
+
5
+ echo '<style type="text/css">';
6
+ echo $glt_css;
7
+
8
+ if (get_option('googlelanguagetranslator_flags') == 'show_flags') {
9
+
10
+ if(get_option('googlelanguagetranslator_display')=='Vertical') {
11
+ if (get_option('googlelanguagetranslator_language_option')=='specific') {
12
+ echo '#flags {display:none !important; }';
13
+ }
14
+
15
+ echo 'p.hello { font-size:12px; color:darkgray; }';
16
+ echo '#google_language_translator, #flags { text-align:left; }';
17
+ } elseif (get_option('googlelanguagetranslator_display')=='Horizontal') {
18
+
19
+ if (get_option('googlelanguagetranslator_language_option')=='specific') {
20
+ echo '#flags {display:none !important; }';
21
+ }
22
+
23
+ if (get_option('googlelanguagetranslator_flags_alignment')=='flags_right') {
24
+ echo '#google_language_translator { text-align:left !important; }';
25
+ echo 'select.goog-te-combo { float:right; }';
26
+ echo '.goog-te-gadget { padding-top:13px; }';
27
+ echo '.goog-te-gadget .goog-te-combo { margin-top:-7px !important; }';
28
+ }
29
+
30
+ echo '.goog-te-gadget { margin-top:2px !important; }';
31
+ echo 'p.hello { font-size:12px; color:#666; }';
32
+ }
33
+
34
+ if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
35
+ echo '#google_language_translator, #language { clear:both; width:160px; text-align:right; }';
36
+ echo '#language { float:right; }';
37
+ echo '#flags { text-align:right; width:165px; float:right; clear:right; }';
38
+ echo '#flags ul { float:right !important; }';
39
+ echo 'p.hello { text-align:right; float:right; clear:both; }';
40
+ echo '.glt-clear { height:0px; clear:both; margin:0px; padding:0px; }';
41
+ }
42
+
43
+ if ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_left') {
44
+ echo '#google_language_translator { clear:both; }';
45
+ echo '#flags { width:165px; }';
46
+ echo '#flags a { display:inline-block; margin-right:2px; }';
47
+ } elseif ( get_option ('googlelanguagetranslator_flags_alignment') == 'flags_right') {
48
+ echo '#flags { width:165px; }';
49
+ echo '#flags a { display:inline-block; margin-left:2px; }';
50
+ }
51
+ }
52
+
53
+ if (get_option('googlelanguagetranslator_manage_translations') == 0) {
54
+ if(get_option('googlelanguagetranslator_active')==1) {
55
+ echo '.goog-tooltip {display: none !important;}';
56
+ echo '.goog-tooltip:hover {display: none !important;}';
57
+ echo '.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}';
58
+ }
59
+ }
60
+
61
+ if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
62
+ if(get_option('googlelanguagetranslator_active')==1) {
63
+ echo '#google_language_translator { width:auto !important; }';
64
+ }
65
+
66
+ } elseif(get_option('googlelanguagetranslator_showbranding')=='No') {
67
+ if(get_option('googlelanguagetranslator_active')==1) {
68
+ echo '#google_language_translator a {display: none !important; }';
69
+ echo '.goog-te-gadget {color:transparent !important;}';
70
+ echo '.goog-te-gadget { font-size:0px !important; }';
71
+ echo '.goog-branding { display:none; }';
72
+ }
73
+ }
74
+
75
+ if (get_option('googlelanguagetranslator_translatebox') == 'no') {
76
+ if(get_option('googlelanguagetranslator_active')==1) {
77
+ echo '#google_language_translator { display:none; }';
78
+ }
79
+ }
80
+
81
+ if (get_option('googlelanguagetranslator_flags') == 'hide_flags') {
82
+ if(get_option('googlelanguagetranslator_active') ==1) {
83
+ echo '#flags { display:none; }';
84
+ }
85
+ }
86
+
87
+ if(get_option('googlelanguagetranslator_toolbar')=='Yes') {
88
+ if(get_option('googlelanguagetranslator_active')==1) {
89
+ echo '#google_language_translator {color: transparent;}';
90
+ echo 'body { top:0px !important; }';
91
+ }
92
+ } elseif(get_option('googlelanguagetranslator_toolbar')=='No') {
93
+ if(get_option('googlelanguagetranslator_active')==1) {
94
+ echo '.goog-te-banner-frame{visibility:hidden !important;}';
95
+ echo 'body { top:0px !important;}';
96
+ }
97
+ }
98
+ echo '</style>';
99
  ?>
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: 5.0.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.wp-studio.net/
@@ -190,8 +190,10 @@ class google_language_translator {
190
  wp_enqueue_script( 'jquery-ui-core');
191
  wp_enqueue_script( 'jquery-ui-sortable');
192
  wp_enqueue_script( 'load_sortable_flags', plugins_url('js/load-sortable-flags.js',__FILE__), array('jquery'));
 
193
  wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
194
  wp_enqueue_style( 'style.css' );
 
195
  }
196
 
197
  public function flags() {
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 5.0.01
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.wp-studio.net/
190
  wp_enqueue_script( 'jquery-ui-core');
191
  wp_enqueue_script( 'jquery-ui-sortable');
192
  wp_enqueue_script( 'load_sortable_flags', plugins_url('js/load-sortable-flags.js',__FILE__), array('jquery'));
193
+ wp_register_style( 'jquery-ui.css', plugins_url('css/jquery-ui.css',__FILE__) );
194
  wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
195
  wp_enqueue_style( 'style.css' );
196
+ //wp_enqueue_style( 'jquery-ui.css' );
197
  }
198
 
199
  public function flags() {
js/load-toolbar.js CHANGED
@@ -12,10 +12,18 @@ jQuery(document).ready(function($) {
12
  });
13
 
14
  $('#glt-translate-trigger').on('toolbarHidden',function(event) {
15
- $('#glt-translate-trigger span').text('Translate » ');
16
  $('.tool-rounded').css('position','absolute');
17
 
18
  });
 
 
 
 
 
 
 
 
19
 
20
 
21
 
12
  });
13
 
14
  $('#glt-translate-trigger').on('toolbarHidden',function(event) {
15
+ //$('#glt-translate-trigger span').text('Translate » ');
16
  $('.tool-rounded').css('position','absolute');
17
 
18
  });
19
+
20
+ $('#glt-translate-trigger').on('toolbarItemClick',function(event) {
21
+ $('#glt-translate-trigger span').text('Translate » ');
22
+
23
+ $(this).removeClass('pressed');
24
+
25
+ $('.tool-container').hide();
26
+ });
27
 
28
 
29
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin link: http://www.wp-studio.net/how-it-works
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: 4.3
8
- stable tag: 5.0.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
 
@@ -46,8 +46,10 @@ A: Yes! Add the "notranslate" class to the HTML element containing your text. Fo
46
 
47
  == Changelog ==
48
 
 
 
 
49
  5.0.0
50
- - Removed the translation management option from the Settings page (Google no longer offers translation management feature).
51
  - Wordpress security updates added to the settings page [wp_nonce_field()].
52
  - Removed 3 outside Javascript files - these files are now called upon directly from Wordpress CMS.
53
  - Unpacked flags.js p,a,c,k,e,r code. Unknowingly, this method of coding violated Wordpress plugin policy.
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: 4.3
8
+ stable tag: 5.0.01
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
 
46
 
47
  == Changelog ==
48
 
49
+ 5.0.01
50
+ - Updated style.css to reflect the syntax error connecting to the Chinese flag.
51
+
52
  5.0.0
 
53
  - Wordpress security updates added to the settings page [wp_nonce_field()].
54
  - Removed 3 outside Javascript files - these files are now called upon directly from Wordpress CMS.
55
  - Unpacked flags.js p,a,c,k,e,r code. Unknowingly, this method of coding violated Wordpress plugin policy.