Google Language Translator - Version 4.0.9

Version Description

Download this release

Release Info

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

Code changes from version 4.0.8 to 4.0.9

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: 4.0.8
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/
@@ -291,8 +291,6 @@ class google_language_translator {
291
  //echo 'true';
292
  endif;
293
 
294
-
295
-
296
  $default_language = get_option('googlelanguagetranslator_language');
297
  $language_choices = $this->googlelanguagetranslator_included_languages();
298
  $get_language_option = get_option('googlelanguagetranslator_language_option');
@@ -343,10 +341,7 @@ class google_language_translator {
343
  }
344
  });
345
 
346
-
347
- var glt_id = 'google_language_translator';
348
-
349
- if ($ ("#" + glt_id).length == 0) {
350
  $("#glt-footer").html("<div id='google_language_translator'></div>");
351
  }
352
  });
@@ -355,16 +350,16 @@ class google_language_translator {
355
  <?php
356
 
357
  if( $is_active == 1) {
358
- if ($shortcode_started != 'true') {
359
-
360
  foreach ($get_flag_choices as $flag_choice_key) {}
361
 
362
- if ($floating_widget=='yes' && $get_language_option != 'specific' && !is_admin()) {
363
  $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</span></div>';
364
  $str.='<div id="glt-toolbar"></div>';
365
  } //endif $floating_widget
366
-
367
- $str.='<div id="flags" style="display:none">';
 
368
  $str.='<ul id="sortable" class="ui-sortable">';
369
 
370
  if ((empty($new_languages_array_string)) || ($new_languages_array_count != $get_flag_choices_count)) {
@@ -477,11 +472,6 @@ class google_language_translator {
477
 
478
  foreach ($get_flag_choices as $flag_choice_key) {}
479
 
480
- if ($floating_widget=='yes' && $get_language_option != 'specific') {
481
- $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</span></div>';
482
- $str.='<div id="glt-toolbar"></div>';
483
- } //endif $floating_widget
484
-
485
  $str.='<div id="flags" class="size'.$flag_width.'">';
486
  $str.='<ul id="sortable" class="ui-sortable" style="float:left">';
487
 
@@ -518,7 +508,7 @@ class google_language_translator {
518
  } // End glt_vertical
519
 
520
  public function googlelanguagetranslator_horizontal(){
521
- $shortcode_started = true;
522
  $get_flag_choices = get_option ('flag_display_settings');
523
  $new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
524
  $new_languages_array = explode(",",$new_languages_array_string);
@@ -536,13 +526,7 @@ class google_language_translator {
536
 
537
  if( $is_active == 1) {
538
  foreach ($get_flag_choices as $flag_choice_key) {}
539
-
540
- if ($floating_widget=='yes' && $get_language_option != 'specific') {
541
-
542
- $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</span></div>';
543
- $str.='<div id="glt-toolbar"></div>';
544
- } //endif $floating_widget
545
-
546
  $str.='<div id="flags" class="size'.$flag_width.'">';
547
  $str.='<ul id="sortable" class="ui-sortable" style="float:left">';
548
 
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 4.0.9
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/
291
  //echo 'true';
292
  endif;
293
 
 
 
294
  $default_language = get_option('googlelanguagetranslator_language');
295
  $language_choices = $this->googlelanguagetranslator_included_languages();
296
  $get_language_option = get_option('googlelanguagetranslator_language_option');
341
  }
342
  });
343
 
344
+ if ($ ("body > #google_language_translator").length == 0) {
 
 
 
345
  $("#glt-footer").html("<div id='google_language_translator'></div>");
346
  }
347
  });
350
  <?php
351
 
352
  if( $is_active == 1) {
353
+
 
354
  foreach ($get_flag_choices as $flag_choice_key) {}
355
 
356
+ if ($floating_widget=='yes' && $get_language_option != 'specific') {
357
  $str.='<div id="glt-translate-trigger"><span class="notranslate">Translate &raquo;</span></div>';
358
  $str.='<div id="glt-toolbar"></div>';
359
  } //endif $floating_widget
360
+
361
+ if ($shortcode_started != 'true') {
362
+ $str.='<div id="flags" style="display:none">';
363
  $str.='<ul id="sortable" class="ui-sortable">';
364
 
365
  if ((empty($new_languages_array_string)) || ($new_languages_array_count != $get_flag_choices_count)) {
472
 
473
  foreach ($get_flag_choices as $flag_choice_key) {}
474
 
 
 
 
 
 
475
  $str.='<div id="flags" class="size'.$flag_width.'">';
476
  $str.='<ul id="sortable" class="ui-sortable" style="float:left">';
477
 
508
  } // End glt_vertical
509
 
510
  public function googlelanguagetranslator_horizontal(){
511
+ $shortcode_started = true;
512
  $get_flag_choices = get_option ('flag_display_settings');
513
  $new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
514
  $new_languages_array = explode(",",$new_languages_array_string);
526
 
527
  if( $is_active == 1) {
528
  foreach ($get_flag_choices as $flag_choice_key) {}
529
+
 
 
 
 
 
 
530
  $str.='<div id="flags" class="size'.$flag_width.'">';
531
  $str.='<ul id="sortable" class="ui-sortable" style="float:left">';
532
 
images/flags.png CHANGED
Binary file
images/flags16.png CHANGED
Binary file
images/flags18.png CHANGED
Binary file
images/flags20.png CHANGED
Binary file
images/flags22.png CHANGED
Binary file
readme.txt CHANGED
@@ -1,260 +1,264 @@
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.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.0
8
- stable tag: 4.0.8
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
- Q: What should I do if the translate widget does not show on my website?
28
-
29
- 1. Make sure that the plugin is installed and activated.
30
- 2. Verify that a check mark is placed in the activation setting located at "Settings > Google Language Translator".
31
- 3. Verify that the native Wordpress function, wp_footer(), is included in your theme's footer file.
32
- 4. Verify that "Show Language Box?" setting is enabled at "Settings > Google Language Translator".
33
- 5. Use your browser's web tools to ensure that CSS styles are not hiding the translation widget.
34
- 6. Contact support at http://www.wp-studio.net/submit-ticket.
35
-
36
- Q: What should I do if there are no languages being displayed in the language box?
37
-
38
- 1. Make sure that the plugin is installed and activated.
39
- 2. Verify that a check mark is placed in the activation setting located at "Settings > Google Language Translator".
40
- 3. Verify that Adobe Flash is installed in your web browser. Google uses Flash in order to display their language box.
41
- 4. Contact support at http://www.wp-studio.net/submit-ticket.
42
-
43
- Q: Can I exclude certain areas of my website from being translated?
44
-
45
- A: Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
46
-
47
- == Changelog ==
48
-
49
- 4.0.8
50
- - Fixed the small syntax issue related to the Google Analytics tracking number - it was another cause of the language box not displaying.
51
-
52
- 4.0.7
53
- - Fixed a CSS error in the settings panel display.
54
- - Fixed the coding issue when "Specific Languages" option is chosen - the shortcode was not displaying the language dropdown.
55
-
56
- 4.0.6
57
-
58
- - Removed: "onclick" events from diplaying directly inside HTML. Converted those events to jQuery.
59
- - Fixed the shortcode that allows adding single languages to Wordpress menus. (New example is shown on settings page.)
60
- - Consolidated all flag images into image sprites!
61
- - Re-designed 10 flag images to match the quality of the other flags.
62
- - Fixed the incorrect "alt" tags associated with flag images. The "alt" tag now displays the language name.
63
- - Modified text on the settings page - also added some lightbox pop-ups to help explain settings.
64
- - New updates have also been provided for our Premium version (currently version 4.0.1) located at http://www.wp-studio.net/
65
-
66
- 4.0.5
67
-
68
- - Fixed: Display bug when using single language shortcode.
69
- - Added: New link on the Plugins menu page, which links directly to Google Language Translator settings.
70
-
71
-
72
- 4.0.4
73
-
74
- - Added NEW shortcode! Allows placement of single languages into the navigation menu, pages, and posts. See settings panel for usage details.
75
- - Re-factored code in googlelanguagetranslator.php which reduced code to around 950 lines.
76
- - Removed the "de-activation" hook, which previously deleted options when plugin de-activated. Added "uninstall" hook instead, so that settings will be preserved only when user deletes the plugin completely.
77
- - Updated CSS styles for the flags area to prevent themes from overriding layouts.
78
-
79
- 4.0.3
80
-
81
- - Adjusted CSS styles for the flag display.
82
-
83
- 4.0.2
84
-
85
- - Eliminated all (or most) HTML validation errors. Big improvement!
86
- - Re-factored more code to increase efficiency.
87
- - Added de-activation hook to reset all plugin settings when plugin is de-activated. (CSS Overrides and Google Analytics ID setting will remain in place and won't be deleted.)
88
- - Fixed the issue with flag language checkboxes. Users can remove English flag if so desired. Previously, English flag was alway required to stay checked, which was not most user-friendly.
89
-
90
- 4.0.1
91
-
92
- - Fixed PHP errors that were neglected in upgrade to 4.0.
93
- - Added conditionals to prevent scripts from loading when the floating widget is turned off.
94
-
95
- 4.0
96
-
97
- - Added 2 new features: 1) Drag/drop flags to re-arrange their order, and 2) Custom flag sizes (16px to 24px).
98
- - Re-factored code in google-language-translator.php. Languages are now loaded dynamically and are not hard-coded.
99
- - GLT Premium is now released: Updates include multiple flags for English, Spanish, and Portuguese languages; customized URLs with 'lang' attribute; drag/drop flags to re-arrnage their order
100
-
101
- 3.0.9
102
-
103
- - Added a title field to the Google Language Translator widget.
104
- - Removed "unexpected text characters" error upon activation (due to error in activation hook).
105
-
106
- 3.0.8
107
-
108
- - Added 9 new languages into the plugin (Hausa, Igbo, Maori, Mongolian, Nepali, Punjabi, Somali, Yoruba, Zulu).
109
- - Corrected an "undefined variable" error that was being generated in Vertical and Horizontal layouts.
110
- - Re-structured coding once again into an Object-Oriented approach.
111
- - Moved all functions of the base class into 'googlelanguagetranslator.php' and the widget into 'widget.php'.
112
- - Moved all javascript files into it's own JS folder.
113
- - Fixed an display issue with "Edit Translations" - they were being hidden when "No branding" option was chosen.
114
- - Corrected various "comma" errors in the string that outputs the script for loading the translator.
115
- - Changed Changelog in readme.txt to show most recent changes first, instead of last.
116
-
117
- 3.0.7
118
-
119
- - Removed an unnecessary CSS file, left over from development. Sorry for any inconvenience if you received display errors.
120
-
121
- 3.0.6
122
-
123
- - Corrected a small display error in displaying the floating widget correctly.
124
-
125
- 3.0.5
126
-
127
- - 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.
128
- - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
129
-
130
- 3.0.4
131
-
132
- - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
133
- - 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.
134
- - Removed style2.php file, which is unnecessary and was being used in testing.
135
-
136
- 3.0.3
137
-
138
- - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
139
- - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
140
- - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
141
- - Fixed some additional CSS display issues.
142
-
143
- 3.0.2
144
-
145
- - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
146
-
147
- 3.0.1
148
-
149
- - 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.
150
- - Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
151
- - 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.
152
-
153
- 3.0
154
-
155
- - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
156
-
157
- 2.9
158
-
159
- ***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.
160
-
161
- - Fixed Google Translation toolbar display issue
162
- - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
163
- - Removed some unneeded styles from the style sheet.
164
- - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
165
-
166
- 2.8
167
-
168
- - 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.
169
- - 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.)
170
- - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
171
-
172
- 2.7
173
-
174
- - Added Google Analytics tracking capability to the plugin.
175
-
176
- - Added a "CSS Styles" box in the settings panel.
177
-
178
- - Changed the Catalonian flag to its correct flag image.
179
-
180
- - 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.
181
-
182
- - 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.
183
-
184
- 2.6
185
-
186
- - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
187
-
188
- 2.5
189
-
190
- - Eliminated an internal Wordpress error being generated from a coding mistake.
191
-
192
- - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
193
-
194
- 2.4
195
-
196
- - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
197
-
198
- 2.3
199
-
200
- - Added a "Preview" area on the settings page that allows you to see your settings in action.
201
-
202
- - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
203
-
204
- - Added an option that allows left/right alignment of the translation tool.
205
-
206
- - Added the "Google Language Translator" widget.
207
-
208
- - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
209
-
210
- 2.2
211
-
212
- - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
213
-
214
- - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
215
-
216
- - Added link in the settings panel that points to Google's Attribution Policy.
217
-
218
- 2.1
219
-
220
- - Added language "Dutch" to the Original Language drop-down option on the settings page.
221
-
222
- - 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.
223
-
224
- 2.0 Corrected some immediate errors in the 1.9 update.
225
-
226
- 1.9
227
-
228
- - 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).
229
-
230
- - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
231
-
232
- - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
233
-
234
- - Added jQuery functionality to the settings panel to improve the user experience.
235
-
236
- - Added an option for users to display/hide the flag images.
237
-
238
- - Added an option for users to display/hide the translate box when flags are displayed.
239
-
240
- - Removed the settings.css file - I found a better way of displaying the options without CSS.
241
-
242
- 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.
243
-
244
- 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.
245
-
246
- 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
247
-
248
- 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.
249
-
250
- 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
251
-
252
- 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.
253
-
254
- 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
255
-
256
- 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
257
-
258
- == Screenshots ==
259
-
260
- 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.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.0
8
+ stable tag: 4.0.9
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
+ Q: What should I do if the translate widget does not show on my website?
28
+
29
+ 1. Make sure that the plugin is installed and activated.
30
+ 2. Verify that a check mark is placed in the activation setting located at "Settings > Google Language Translator".
31
+ 3. Verify that the native Wordpress function, wp_footer(), is included in your theme's footer file.
32
+ 4. Verify that "Show Language Box?" setting is enabled at "Settings > Google Language Translator".
33
+ 5. Use your browser's web tools to ensure that CSS styles are not hiding the translation widget.
34
+ 6. Contact support at http://www.wp-studio.net/submit-ticket.
35
+
36
+ Q: What should I do if there are no languages being displayed in the language box?
37
+
38
+ 1. Make sure that the plugin is installed and activated.
39
+ 2. Verify that a check mark is placed in the activation setting located at "Settings > Google Language Translator".
40
+ 3. Verify that Adobe Flash is installed in your web browser. Google uses Flash in order to display their language box.
41
+ 4. Contact support at http://www.wp-studio.net/submit-ticket.
42
+
43
+ Q: Can I exclude certain areas of my website from being translated?
44
+
45
+ A: Yes! Add the "notranslate" class to the HTML element containing your text. For example, the following text will be excluded from translation: <span class="notranslate">Hello World!</span>
46
+
47
+ == Changelog ==
48
+
49
+ 4.0.9
50
+ - Replaced: incorrect Catalonian flag image, with the correct image. I apologize for any inconvenience.
51
+ - Fixed: Floating Widget issue - previously it loaded 2 times when shortcode was added, which caused it not to work.
52
+
53
+ 4.0.8
54
+ - Fixed the small syntax issue related to the Google Analytics tracking number - it was another cause of the language box not displaying.
55
+
56
+ 4.0.7
57
+ - Fixed a CSS error in the settings panel display.
58
+ - Fixed the coding issue when "Specific Languages" option is chosen - the shortcode was not displaying the language dropdown.
59
+
60
+ 4.0.6
61
+
62
+ - Removed: "onclick" events from diplaying directly inside HTML. Converted those events to jQuery.
63
+ - Fixed the shortcode that allows adding single languages to Wordpress menus. (New example is shown on settings page.)
64
+ - Consolidated all flag images into image sprites!
65
+ - Re-designed 10 flag images to match the quality of the other flags.
66
+ - Fixed the incorrect "alt" tags associated with flag images. The "alt" tag now displays the language name.
67
+ - Modified text on the settings page - also added some lightbox pop-ups to help explain settings.
68
+ - New updates have also been provided for our Premium version (currently version 4.0.1) located at http://www.wp-studio.net/
69
+
70
+ 4.0.5
71
+
72
+ - Fixed: Display bug when using single language shortcode.
73
+ - Added: New link on the Plugins menu page, which links directly to Google Language Translator settings.
74
+
75
+
76
+ 4.0.4
77
+
78
+ - Added NEW shortcode! Allows placement of single languages into the navigation menu, pages, and posts. See settings panel for usage details.
79
+ - Re-factored code in googlelanguagetranslator.php which reduced code to around 950 lines.
80
+ - Removed the "de-activation" hook, which previously deleted options when plugin de-activated. Added "uninstall" hook instead, so that settings will be preserved only when user deletes the plugin completely.
81
+ - Updated CSS styles for the flags area to prevent themes from overriding layouts.
82
+
83
+ 4.0.3
84
+
85
+ - Adjusted CSS styles for the flag display.
86
+
87
+ 4.0.2
88
+
89
+ - Eliminated all (or most) HTML validation errors. Big improvement!
90
+ - Re-factored more code to increase efficiency.
91
+ - Added de-activation hook to reset all plugin settings when plugin is de-activated. (CSS Overrides and Google Analytics ID setting will remain in place and won't be deleted.)
92
+ - Fixed the issue with flag language checkboxes. Users can remove English flag if so desired. Previously, English flag was alway required to stay checked, which was not most user-friendly.
93
+
94
+ 4.0.1
95
+
96
+ - Fixed PHP errors that were neglected in upgrade to 4.0.
97
+ - Added conditionals to prevent scripts from loading when the floating widget is turned off.
98
+
99
+ 4.0
100
+
101
+ - Added 2 new features: 1) Drag/drop flags to re-arrange their order, and 2) Custom flag sizes (16px to 24px).
102
+ - Re-factored code in google-language-translator.php. Languages are now loaded dynamically and are not hard-coded.
103
+ - GLT Premium is now released: Updates include multiple flags for English, Spanish, and Portuguese languages; customized URLs with 'lang' attribute; drag/drop flags to re-arrnage their order
104
+
105
+ 3.0.9
106
+
107
+ - Added a title field to the Google Language Translator widget.
108
+ - Removed "unexpected text characters" error upon activation (due to error in activation hook).
109
+
110
+ 3.0.8
111
+
112
+ - Added 9 new languages into the plugin (Hausa, Igbo, Maori, Mongolian, Nepali, Punjabi, Somali, Yoruba, Zulu).
113
+ - Corrected an "undefined variable" error that was being generated in Vertical and Horizontal layouts.
114
+ - Re-structured coding once again into an Object-Oriented approach.
115
+ - Moved all functions of the base class into 'googlelanguagetranslator.php' and the widget into 'widget.php'.
116
+ - Moved all javascript files into it's own JS folder.
117
+ - Fixed an display issue with "Edit Translations" - they were being hidden when "No branding" option was chosen.
118
+ - Corrected various "comma" errors in the string that outputs the script for loading the translator.
119
+ - Changed Changelog in readme.txt to show most recent changes first, instead of last.
120
+
121
+ 3.0.7
122
+
123
+ - Removed an unnecessary CSS file, left over from development. Sorry for any inconvenience if you received display errors.
124
+
125
+ 3.0.6
126
+
127
+ - Corrected a small display error in displaying the floating widget correctly.
128
+
129
+ 3.0.5
130
+
131
+ - 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.
132
+ - Fixed the issue with Dashboard styles loading on the wrong pages. This was causing some annoying display issues on the Wordpress Dashboard.
133
+
134
+ 3.0.4
135
+
136
+ - Re-factored/re-arranged more code in google languagetransltor.php by placing them into separate files.
137
+ - 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.
138
+ - Removed style2.php file, which is unnecessary and was being used in testing.
139
+
140
+ 3.0.3
141
+
142
+ - Re-factored/re-arranged some of the code in googlelanguagetranslator.php by placing them into separate files.
143
+ - Fixed a minor coding issue in glt_widget.php - this was generating an error in Wordpress when debugging.
144
+ - Moved all CSS code into a single file. The result is nice, clean inline CSS code that is now called only once.
145
+ - Fixed some additional CSS display issues.
146
+
147
+ 3.0.2
148
+
149
+ - Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
150
+
151
+ 3.0.1
152
+
153
+ - 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.
154
+ - Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
155
+ - 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.
156
+
157
+ 3.0
158
+
159
+ - Correct a small CSS error that affected the showing/hiding of the Google toolbar.
160
+
161
+ 2.9
162
+
163
+ ***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.
164
+
165
+ - Fixed Google Translation toolbar display issue
166
+ - Fixed the Edit Translation interface by hiding it temporarily until Google fixes this
167
+ - Removed some unneeded styles from the style sheet.
168
+ - Fixed some CSS issues for the Google Branding display, which was affected by Google's most recent update
169
+
170
+ 2.8
171
+
172
+ - 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.
173
+ - 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.)
174
+ - Added more flexible styles to the settings page, so that left and right panels display nicely to the user.
175
+
176
+ 2.7
177
+
178
+ - Added Google Analytics tracking capability to the plugin.
179
+
180
+ - Added a "CSS Styles" box in the settings panel.
181
+
182
+ - Changed the Catalonian flag to its correct flag image.
183
+
184
+ - 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.
185
+
186
+ - 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.
187
+
188
+ 2.6
189
+
190
+ - Added defaults to all options to ensure there are no more issues with the translator displaying upon installation. Again, sorry for any inconvenience.
191
+
192
+ 2.5
193
+
194
+ - Eliminated an internal Wordpress error being generated from a coding mistake.
195
+
196
+ - Added a default option for the Translator alingment. Previously, this was causing the plugin to disapppear.
197
+
198
+ 2.4
199
+
200
+ - Found a couple of small display errors in the settings page after uploading version 2.3. Sorry for any inconvenience!
201
+
202
+ 2.3
203
+
204
+ - Added a "Preview" area on the settings page that allows you to see your settings in action.
205
+
206
+ - Added custom flag support for all languages (custom flags available ONLY when selecting the "ALL Languages" setting.
207
+
208
+ - Added an option that allows left/right alignment of the translation tool.
209
+
210
+ - Added the "Google Language Translator" widget.
211
+
212
+ - Updated googlelanguagetranslator.php to properly register setting in the admin settings panel.
213
+
214
+ 2.2
215
+
216
+ - Added language "Portuguese" and "German" to the Original Language drop-down option on the settings page.
217
+
218
+ - Changed flag image for the English language (changed United States flag to the United Kingdom flag).
219
+
220
+ - Added link in the settings panel that points to Google's Attribution Policy.
221
+
222
+ 2.1
223
+
224
+ - Added language "Dutch" to the Original Language drop-down option on the settings page.
225
+
226
+ - 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.
227
+
228
+ 2.0 Corrected some immediate errors in the 1.9 update.
229
+
230
+ 1.9
231
+
232
+ - 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).
233
+
234
+ - Added 6 additional languages to the translator, as provided in Google's most recent updates ( new languages include Bosnian, Cebuano, Khmer, Marathi, Hmong, Javanese ).
235
+
236
+ - Corrected a minor technical issue where the Czech option (on the backend) was incorrectly displaying the Croatian language on the front end.
237
+
238
+ - Added jQuery functionality to the settings panel to improve the user experience.
239
+
240
+ - Added an option for users to display/hide the flag images.
241
+
242
+ - Added an option for users to display/hide the translate box when flags are displayed.
243
+
244
+ - Removed the settings.css file - I found a better way of displaying the options without CSS.
245
+
246
+ 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.
247
+
248
+ 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.
249
+
250
+ 1.6 Added "Specific Language" support to the plugin settings, which allows the user to choose specific languages that are displayed to website visitors.
251
+
252
+ 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.
253
+
254
+ 1.4 Corrected display problems associated with CSS styles not being placed correctly in wp_head.
255
+
256
+ 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.
257
+
258
+ 1.2 Shortcode support is now available for adding [google-translator] to text widgets. I apologize for any inconvenience this may have caused.
259
+
260
+ 1.1 The shortcode supplied on the settings page was updated to display '[google-translator]'.
261
+
262
+ == Screenshots ==
263
+
264
+ 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.