Google Language Translator - Version 3.0.6

Version Description

Download this release

Release Info

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

Code changes from version 3.0.5 to 3.0.6

glt_horizontal.php CHANGED
@@ -299,6 +299,7 @@ function googlelanguagetranslator_horizontal(){
299
  $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
300
  }
301
  $str.='</div>';
 
302
 
303
  foreach ($get_flag_choices as $key) {
304
  //print_r($key);
@@ -618,7 +619,6 @@ function googlelanguagetranslator_horizontal(){
618
  return $str;
619
  }
620
  }
621
- }
622
  }
623
  }
624
  ?>
299
  $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
300
  }
301
  $str.='</div>';
302
+ }
303
 
304
  foreach ($get_flag_choices as $key) {
305
  //print_r($key);
619
  return $str;
620
  }
621
  }
 
622
  }
623
  }
624
  ?>
glt_vertical.php CHANGED
@@ -301,7 +301,7 @@ function googlelanguagetranslator_vertical(){
301
  $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
302
  }
303
  $str.='</div>';
304
-
305
 
306
 
307
  foreach ($get_flag_choices as $key) {
@@ -626,7 +626,6 @@ function googlelanguagetranslator_vertical(){
626
  return $str;
627
  }
628
  }
629
- }
630
  }
631
  }
632
  ?>
301
  $str.='<a id="Yiddish" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|yi\'); return false;" title="Yiddish (Jewish)" class="notranslate flag yi"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/yiddish.png" height="24" width="24" alt="Yiddish"/></a>';
302
  }
303
  $str.='</div>';
304
+ }
305
 
306
 
307
  foreach ($get_flag_choices as $key) {
626
  return $str;
627
  }
628
  }
 
629
  }
630
  }
631
  ?>
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.5
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/
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 3.0.6
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/
readme.txt CHANGED
@@ -1,165 +1,169 @@
1
- === Google Language Translator ===
2
- Contributors: Rob Myrick
3
- Donate link: http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=47LFA33AC89S6
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.5
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
-
12
- == Description ==
13
-
14
- Settings include: inline or vertical layout, show/hide specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
15
-
16
- == Installation ==
17
-
18
- 1. Download the zip folder named google-language-translator.zip
19
- 2. Unzip the folder and put it in the plugins directory of your wordpress installation. (wp-content/plugins).
20
- 3. Activate the plugin through the plugin window in the admin panel.
21
- 4. Go to Settings > Google Language Translator, enable the plugin, and then choose your settings.
22
- 5. Copy the shortcode and paste it into a page, post or widget.
23
- 6. Do not use the shortcode twice on a single page - it will not work.
24
-
25
- == Frequently Asked Questions ==
26
-
27
- == Changelog ==
28
-
29
- 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
30
-
31
- 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
32
-
33
- 1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
34
-
35
- 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
36
-
37
- 1.5 Added "Original Language" support to the plugin settings, which allows the user to choose the original language of their website, which ultimately removes the original language as a choice in the language drop-down presented to website visitors.
38
-
39
- 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
40
-
41
- 1.7 Modified google-language-translator.php so that jQuery and CSS styles were enqueued properly onto the settings page only. Previously, jQuery functionality and CSS styles were being added to all pages of the Wordpresss Dashboard, which was causing functionality and display issues for some users.
42
-
43
- 1.8 Modified google-language-translator.php to display the correct output to the browser when horizontal layout is selected. Previously, it was not displaying at all.
44
-
45
- 1.9
46
-
47
- - Added 7 flag image choices that, when clicked by website visitors, will change the language displayed, both on the website, AND in the drop-down box (flag language choices are limited to those provided in this plugin).
48
-
49
- - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
50
-
51
- - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
52
-
53
- - Added jQuery functionality to the settings panel to improve the user experience.
54
-
55
- - Added an option for users to display/hide the flag images.
56
-
57
- - Added an option for users to display/hide the translate box when flags are displayed.
58
-
59
- - Removed the settings.css file - I found a better way of displaying the options without CSS.
60
-
61
- 2.0 Corrected some immediate errors in the 1.9 update.
62
-
63
- 2.1
64
-
65
- - Added language "Dutch" to the Original Language drop-down option on the settings page.
66
-
67
- - Added a new CSS class that more accurately hides the "Powered by" text when hiding Google's branding. In previous version, the "Powered by" text was actually disguised by setting it's color to "transparent", but now we have set it's font-size to 0px instead.
68
-
69
- 2.2
70
-
71
- - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
72
-
73
- - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
74
-
75
- - Added link in the settings panel that points to Google's Attribution Policy.
76
-
77
- 2.3
78
-
79
- - Added a "Preview" area on the settings page that allows you to see your settings in action.
80
-
81
- - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
82
-
83
- - Added an option that allows left/right alignment of the translation tool.
84
-
85
- - Added the "Google Language Translator" widget.
86
-
87
- - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
88
-
89
- 2.4
90
-
91
- - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
92
-
93
- 2.5
94
-
95
- - Eliminated an internal Wordpress error being generated from a coding mistake.
96
-
97
- - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
98
-
99
- 2.6
100
-
101
- - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
102
-
103
- 2.7
104
-
105
- - Added Google Analytics tracking capability to the plugin.
106
-
107
- - Added a "CSS Styles" box in the settings panel.
108
-
109
- - Changed the Catalonian flag to its correct flag image.
110
-
111
- - Fixed coding issues that previously updated options incorrectly, which is why many users experienced display issues. All options are now initialized upon plugin activation, which should fix this issue permanently.
112
-
113
- - Fixed a glitch in our usage of the translate API. Previously, when the user clicked the default language, it would toggle back and forth between the default language and "Afrikaans" language. Now, users will see the correct language displayed at all times, no matter how many times it is clicked.
114
-
115
-
116
- 2.8
117
-
118
- - Added an option to allow users to manage their own translations directly through their Google Translate account (free). When activated, users can hover over the text of their website, and edit the translations from the webpage directly. Google will remember these translations, and then serve them to users once the edits are made. Users must install the Google Translate Customization meta tag provided through Google Translate here: translate.google.com/manager/website/settings. To obtain this meta tag, users need to configure the Google Translate tool directly from this website (although they will not use this because the plugin provides it), then the user can obtain the meta tag on the "Get Code" screen, which is displayed after configuring the Google Translate tool on this webpage.
119
- - Added an option to allow users to turn on/off Google's multilanguagePage option, that when activated, the original website content will be a forced translation, instead of original content (but only after a translation is made.)
120
- - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
121
-
122
- 2.9
123
-
124
- ***IMPORTANT: Google's most recent server update is producing display issues for website translation tool. There are major display issues with the translation toolbar and also the translations editing interface. Version 2.9 temporarily hides the edit translation functionality until Google decides to fix this issue, although you can still edit translations directly through your Google account at translate.google.com. Please direct any support requests through Wordpress.org and we will be happy to assist you.
125
-
126
- - Fixed Google Translation toolbar display issue
127
- - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
128
- - Removed some unneeded styles from the style sheet.
129
- - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
130
-
131
- 3.0
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
- 3.0.2
142
-
143
- - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
144
-
145
- 3.0.3
146
-
147
- - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
148
- - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
149
- - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
150
- - Fixed some additional CSS display issues.
151
-
152
- 3.0.4
153
-
154
- - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
155
- - Fixed the issue of Custom CSS box not displaying it's styles to the website. This was only missed in this last update, due to re-arrangement of the files. Sorry for any inconvenience.
156
- - Removed style2.php file, which is unnecessary and was being used in testing.
157
-
158
- 3.0.5
159
-
160
- - Added new Floating Widget (see settings page). The Floating Widget is simply another way for allowing website visitors to translate languages. The functionality is built-in with the existing flag preferences, and can be turned on or off at the administrator's preference. The floating widget can also function in full with both the language box and/or flags showing OR hiding, so the administrator has full control of how it displays. The floating widget is placed at bottom right of the website in the free version, but can be placed in other locations by changing CSS styles associated with the box. The premium version will allow more options as to changing the Floating Widget location.
161
- - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
162
-
163
- == Screenshots ==
164
-
165
- 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.
 
 
 
 
1
+ === Google Language Translator ===
2
+ Contributors: Rob Myrick
3
+ Donate link: http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=47LFA33AC89S6
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.6
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
+
12
+ == Description ==
13
+
14
+ Settings include: inline or vertical layout, show/hide specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
15
+
16
+ == Installation ==
17
+
18
+ 1. Download the zip folder named google-language-translator.zip
19
+ 2. Unzip the folder and put it in the plugins directory of your wordpress installation. (wp-content/plugins).
20
+ 3. Activate the plugin through the plugin window in the admin panel.
21
+ 4. Go to Settings > Google Language Translator, enable the plugin, and then choose your settings.
22
+ 5. Copy the shortcode and paste it into a page, post or widget.
23
+ 6. Do not use the shortcode twice on a single page - it will not work.
24
+
25
+ == Frequently Asked Questions ==
26
+
27
+ == Changelog ==
28
+
29
+ 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
30
+
31
+ 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
32
+
33
+ 1.3 HTML display problem in the sidebar area now fixed. Previously, inserting the [google-translator] plugin into a text widget caused it to display above the widget, instead of inside of it.
34
+
35
+ 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
36
+
37
+ 1.5 Added "Original Language" support to the plugin settings, which allows the user to choose the original language of their website, which ultimately removes the original language as a choice in the language drop-down presented to website visitors.
38
+
39
+ 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
40
+
41
+ 1.7 Modified google-language-translator.php so that jQuery and CSS styles were enqueued properly onto the settings page only. Previously, jQuery functionality and CSS styles were being added to all pages of the Wordpresss Dashboard, which was causing functionality and display issues for some users.
42
+
43
+ 1.8 Modified google-language-translator.php to display the correct output to the browser when horizontal layout is selected. Previously, it was not displaying at all.
44
+
45
+ 1.9
46
+
47
+ - Added 7 flag image choices that, when clicked by website visitors, will change the language displayed, both on the website, AND in the drop-down box (flag language choices are limited to those provided in this plugin).
48
+
49
+ - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
50
+
51
+ - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
52
+
53
+ - Added jQuery functionality to the settings panel to improve the user experience.
54
+
55
+ - Added an option for users to display/hide the flag images.
56
+
57
+ - Added an option for users to display/hide the translate box when flags are displayed.
58
+
59
+ - Removed the settings.css file - I found a better way of displaying the options without CSS.
60
+
61
+ 2.0 Corrected some immediate errors in the 1.9 update.
62
+
63
+ 2.1
64
+
65
+ - Added language "Dutch" to the Original Language drop-down option on the settings page.
66
+
67
+ - Added a new CSS class that more accurately hides the "Powered by" text when hiding Google's branding. In previous version, the "Powered by" text was actually disguised by setting it's color to "transparent", but now we have set it's font-size to 0px instead.
68
+
69
+ 2.2
70
+
71
+ - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
72
+
73
+ - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
74
+
75
+ - Added link in the settings panel that points to Google's Attribution Policy.
76
+
77
+ 2.3
78
+
79
+ - Added a "Preview" area on the settings page that allows you to see your settings in action.
80
+
81
+ - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
82
+
83
+ - Added an option that allows left/right alignment of the translation tool.
84
+
85
+ - Added the "Google Language Translator" widget.
86
+
87
+ - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
88
+
89
+ 2.4
90
+
91
+ - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
92
+
93
+ 2.5
94
+
95
+ - Eliminated an internal Wordpress error being generated from a coding mistake.
96
+
97
+ - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
98
+
99
+ 2.6
100
+
101
+ - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
102
+
103
+ 2.7
104
+
105
+ - Added Google Analytics tracking capability to the plugin.
106
+
107
+ - Added a "CSS Styles" box in the settings panel.
108
+
109
+ - Changed the Catalonian flag to its correct flag image.
110
+
111
+ - Fixed coding issues that previously updated options incorrectly, which is why many users experienced display issues. All options are now initialized upon plugin activation, which should fix this issue permanently.
112
+
113
+ - Fixed a glitch in our usage of the translate API. Previously, when the user clicked the default language, it would toggle back and forth between the default language and "Afrikaans" language. Now, users will see the correct language displayed at all times, no matter how many times it is clicked.
114
+
115
+
116
+ 2.8
117
+
118
+ - Added an option to allow users to manage their own translations directly through their Google Translate account (free). When activated, users can hover over the text of their website, and edit the translations from the webpage directly. Google will remember these translations, and then serve them to users once the edits are made. Users must install the Google Translate Customization meta tag provided through Google Translate here: translate.google.com/manager/website/settings. To obtain this meta tag, users need to configure the Google Translate tool directly from this website (although they will not use this because the plugin provides it), then the user can obtain the meta tag on the "Get Code" screen, which is displayed after configuring the Google Translate tool on this webpage.
119
+ - Added an option to allow users to turn on/off Google's multilanguagePage option, that when activated, the original website content will be a forced translation, instead of original content (but only after a translation is made.)
120
+ - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
121
+
122
+ 2.9
123
+
124
+ ***IMPORTANT: Google's most recent server update is producing display issues for website translation tool. There are major display issues with the translation toolbar and also the translations editing interface. Version 2.9 temporarily hides the edit translation functionality until Google decides to fix this issue, although you can still edit translations directly through your Google account at translate.google.com. Please direct any support requests through Wordpress.org and we will be happy to assist you.
125
+
126
+ - Fixed Google Translation toolbar display issue
127
+ - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
128
+ - Removed some unneeded styles from the style sheet.
129
+ - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
130
+
131
+ 3.0
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
+ 3.0.2
142
+
143
+ - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
144
+
145
+ 3.0.3
146
+
147
+ - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
148
+ - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
149
+ - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
150
+ - Fixed some additional CSS display issues.
151
+
152
+ 3.0.4
153
+
154
+ - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
155
+ - Fixed the issue of Custom CSS box not displaying it's styles to the website. This was only missed in this last update, due to re-arrangement of the files. Sorry for any inconvenience.
156
+ - Removed style2.php file, which is unnecessary and was being used in testing.
157
+
158
+ 3.0.5
159
+
160
+ - Added new Floating Widget (see settings page). The Floating Widget is simply another way for allowing website visitors to translate languages. The functionality is built-in with the existing flag preferences, and can be turned on or off at the administrator's preference. The floating widget can also function in full with both the language box and/or flags showing OR hiding, so the administrator has full control of how it displays. The floating widget is placed at bottom right of the website in the free version, but can be placed in other locations by changing CSS styles associated with the box. The premium version will allow more options as to changing the Floating Widget location.
161
+ - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
162
+
163
+ 3.0.6
164
+
165
+ - Corrected a small error in displaying the floating widget correctly.
166
+
167
+ == Screenshots ==
168
+
169
+ 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.