Google Language Translator - Version 1.6

Version Description

Download this release

Release Info

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

Code changes from version 1.5 to 1.6

Files changed (4) hide show
  1. google-language-translator.php +495 -303
  2. language-dropdown.js +12 -0
  3. readme.txt +43 -41
  4. screenshot-1.png +0 -0
google-language-translator.php CHANGED
@@ -1,304 +1,496 @@
1
- <?php
2
-
3
-
4
- /*
5
-
6
- Plugin Name: Google Language Translator
7
-
8
- Plugin URI: http://www.studio88design.com/plugins/google-language-translator
9
-
10
- Version: 1.5
11
- Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Setting options include: layout style, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
12
-
13
- Author: Rob Myrick
14
-
15
- Author URI: http://www.studio88design.com/
16
-
17
- */
18
-
19
-
20
- add_filter('widget_text', 'do_shortcode');
21
-
22
- add_action('admin_menu', 'googlelanguagetranslator_menu_options');
23
-
24
- add_option("googlelanguagetranslator_active","0");
25
-
26
- add_shortcode( 'google-translator', 'google_translator_shortcode');
27
-
28
- function google_translator_shortcode() {
29
- if (get_option('googlelanguagetranslator_display')=='Vertical'){
30
- return googlelanguagetranslator_vertical();
31
- }
32
-
33
- elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
34
- return googlelanguagetranslator_horizontal();
35
- }
36
-
37
- if (get_option('googlelanguagetranslator_toolbar')=='Yes'){
38
- return googlelanguagetranslator_toolbar_yes();
39
- }
40
-
41
- elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
42
- return googlelanguagetranslator_toolbar_no();
43
- add_action ('wp_head','googlelanguagetranslator_toolbar_no');
44
- }
45
-
46
- if (get_option('googlelanguagetranslator_showbranding')=='Yes'){
47
- return googlelanguagetranslator_showbranding_yes();
48
- add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
49
- }
50
-
51
- elseif(get_option('googlelanguagetranslator_showbranding')=='No'){
52
- return googlelanguagetranslator_showbranding_no();
53
- add_action ('wp_head','googlelanguagetranslator_showbranding_no');
54
- }
55
-
56
- }
57
-
58
-
59
- if (get_option('googlelanguagetranslator_toolbar')=='Yes') {
60
- add_action ('wp_head','googlelanguagetranslator_toolbar_yes');
61
- }
62
-
63
- if (get_option('googlelanguagetranslator_toolbar')=='No') {
64
- add_action ('wp_head','googlelanguagetranslator_toolbar_no');
65
- }
66
-
67
- if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
68
- add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
69
- }
70
-
71
- if (get_option('googlelanguagetranslator_showbranding')=='No') {
72
- add_action ('wp_head','googlelanguagetranslator_showbranding_no');
73
- }
74
-
75
- function googlelanguagetranslator_menu_options(){
76
- add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'googlelanguagetranslator-menu-options', 'googlelanguagetranslator_menu');
77
-
78
- if(isset($_POST['googlelanguagetranslator_update_options'])){
79
- update_option('googlelanguagetranslator_language',$_POST['googlelanguagetranslator_language']);
80
- update_option('googlelanguagetranslator_display',$_POST['googlelanguagetranslator_display']);
81
- update_option('googlelanguagetranslator_toolbar',$_POST['googlelanguagetranslator_toolbar']);
82
- update_option('googlelanguagetranslator_showbranding',$_POST['googlelanguagetranslator_showbranding']);
83
- }
84
-
85
- }
86
-
87
- function googlelanguagetranslator_menu(){
88
- if (!current_user_can('manage_options')) {
89
- wp_die( __('You do not have sufficient permissions to access this page.') );
90
- }
91
- ?>
92
- <div class="wrap" style="width:65%">
93
- <div id="icon-options-general" class="icon32"></div>
94
- <h2>Google Language Translator</h2>
95
- <div id="poststuff" class="metabox-holder has-right-sidebar" >
96
- <div class="postbox" style="width: 100%">
97
- <h3>Settings</h3>
98
- <form method="post" action="options.php">
99
- <?php wp_nonce_field('update-options');?>
100
- <table width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
101
- <tr>
102
- <td>Plugin Status:</td>
103
- <td><input type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" <?php if(get_option('googlelanguagetranslator_active')==1){echo "checked";}?> />
104
- Click Here to Activate Google Language Translator</td>
105
- </tr>
106
-
107
- <tr>
108
- <td>Choose the original language of your website</td>
109
- <td>
110
- <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language" style="width:100px">
111
- <option value="en" <?php if(get_option('googlelanguagetranslator_language')=='en'){echo "selected";}?>>English</option>
112
- <option value="es" <?php if(get_option('googlelanguagetranslator_language')=='es'){echo "selected";}?>>Spanish</option>
113
- <option value="fr" <?php if(get_option('googlelanguagetranslator_language')=='fr'){echo "selected";}?>>French</option>
114
- <option value="it" <?php if(get_option('googlelanguagetranslator_language')=='it'){echo "selected";}?>>Italian</option>
115
- <option value="da" <?php if(get_option('googlelanguagetranslator_language')=='da'){echo "selected";}?>>Danish</option>
116
- <option value="ja" <?php if(get_option('googlelanguagetranslator_language')=='ja'){echo "selected";}?>>Japanese</option>
117
- <option value="zh-CN" <?php if(get_option('googlelanguagetranslator_language')=='zh-CN'){echo "selected";}?>>Chinese</option>
118
- <option value="ru" <?php if(get_option('googlelanguagetranslator_language')=='ru') {echo "selected";}?>>Russian</option>
119
- </select>
120
- </td>
121
- </tr>
122
-
123
-
124
- <tr>
125
- <td width="25%">Display options:</td>
126
- <td width="75%">
127
- <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:100px;">
128
- <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
129
- <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
130
- </select> </td>
131
- </tr>
132
-
133
- <tr>
134
- <td width="25%">Show Google Toolbar?</td>
135
- <td width="75%">
136
- <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:100px;">
137
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
138
- <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
139
- </select> </td>
140
- </tr>
141
-
142
- <tr>
143
- <td width="25%">Show Google Branding?</td>
144
- <td width="75%">
145
- <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:100px;">
146
- <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
147
- <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
148
- </select> </td>
149
- </tr>
150
-
151
- <tr>
152
- <td>&nbsp;</td>
153
- <td><input type="submit" class="button-primary" value="<?php _e('Update Option')?>" name="googlelanguagetranslator_update_options" /></td>
154
- </tr>
155
- <tr>
156
- <td>&nbsp;</td>
157
- <td>&nbsp;</td>
158
- </tr>
159
-
160
- <tr>
161
- <td width="25%">Copy/Paste This Shortcode:</td>
162
- <td width="75%">
163
- [google-translator]
164
- </td>
165
- </tr>
166
-
167
- </table>
168
- <input type="hidden" name="action" value="update" />
169
- <input type="hidden" name="page_options" value="googlelanguagetranslator_active" />
170
- </form>
171
- </div>
172
- </div>
173
-
174
- <div id="poststuff" class="metabox-holder" style="float: left; width: 48%;">
175
- <div class="postbox">
176
- <h3>Another Plugin You Might Like:</h3>
177
- <table class="form-table" width="100%">
178
- <tr><td align="left" valign="top">
179
- <table width="100%" border="0" cellspacing="0" cellpadding="4">
180
-
181
- <tr>
182
- <td>
183
- <div>
184
- <div>
185
- <div>
186
- <a href="http://wordpress.org/extend/plugins/malware-finder/" target="_blank">Malware Finder</a>
187
- This plugin enables you to look inside all your WordPress files at once to find malicious code.<br>
188
- </div>
189
- </div>
190
- </div>
191
- </td>
192
- </tr>
193
-
194
- <tr>
195
- <td><strong>You can also download this plugin at <a href="http://www.studio88design.com" target="_blank">www.studio88design.com</a></strong></td>
196
- </tr>
197
- </table>
198
- </td>
199
- </tr>
200
- </table></div></div>
201
- <div id="poststuff" class="metabox-holder" style="float: right; width: 48%;">
202
- <div class="postbox">
203
- <h3>Please Consider A Donation</h3>
204
- <div class="inside">
205
- If you like this plugin and find it useful, help keep this plugin actively developed by clicking the donate button <br /><br />
206
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
207
- <input type="hidden" name="cmd" value="_donations">
208
- <input type="hidden" name="business" value="robertmyrick@hotmail.com">
209
- <input type="hidden" name="lc" value="US">
210
- <input type="hidden" name="item_name" value="Support Studio 88 Design and help us bring you more Wordpress goodies! Any donation is kindly appreciated. Thank you!">
211
- <input type="hidden" name="no_note" value="0">
212
- <input type="hidden" name="currency_code" value="USD">
213
- <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
214
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
215
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
216
- </form>
217
-
218
- <br /><br />
219
- </div>
220
- </div></div>
221
- </div>
222
-
223
- <?php
224
- }
225
-
226
- function googlelanguagetranslator_vertical(){
227
- if(get_option('googlelanguagetranslator_active')==1){
228
- $str.='<div id="google_translate_element"></div><script>
229
- function googleTranslateElementInit() {
230
- new google.translate.TranslateElement({
231
- pageLanguage: \''.get_option('googlelanguagetranslator_language').'\'
232
- }, \'google_translate_element\');
233
- }
234
- </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
235
- return '<div>'.$str.'</div>';
236
- }
237
- }
238
-
239
- function googlelanguagetranslator_horizontal(){
240
- if(get_option('googlelanguagetranslator_active')==1){
241
- $str.='<div id="google_translate_element"></div><script>
242
- function googleTranslateElementInit() {
243
- new google.translate.TranslateElement({
244
- pageLanguage: \''.get_option('googlelanguagtranslator_language').'\', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
245
- }, \'google_translate_element\');
246
- }
247
- </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
248
- return '<div>'.$str.'</div>';
249
- }
250
- }
251
-
252
- function googlelanguagetranslator_toolbar_yes(){
253
- if(get_option('googlelanguagetranslator_active')==1) { ?>
254
- <style type="text/css">
255
- #google_translate_element {color: transparent;}
256
- .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
257
- .goog-tooltip {display: none !important;}
258
- .goog-tooltip:hover {display: none !important;}
259
- .goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}
260
- </style>
261
- <?php
262
- }
263
- }
264
-
265
- function googlelanguagetranslator_toolbar_no(){
266
- if(get_option('googlelanguagetranslator_active')==1) { ?>
267
- <style type="text/css">
268
- .goog-te-banner-frame{visibility:hidden !important;}
269
- body {top:0px !important;}
270
- </style>
271
- <?php
272
- }
273
- }
274
-
275
-
276
- function googlelanguagetranslator_showbranding_yes() {
277
- if(get_option('googlelanguagetranslator_active')==1) { ?>
278
- <style type="text/css">
279
- .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
280
- .goog-tooltip {display: none !important;}
281
- .goog-tooltip:hover {display: none !important;}
282
- .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
283
- </style>
284
- <?php
285
- }
286
- }
287
-
288
-
289
-
290
- function googlelanguagetranslator_showbranding_no() {
291
- if(get_option('googlelanguagetranslator_active')==1) { ?>
292
- <style type="text/css">
293
- #google_translate_element a {display: none !important;}
294
- .goog-te-gadget {color:transparent !important;}
295
- .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
296
- .goog-tooltip {display: none !important;}
297
- .goog-tooltip:hover {display: none !important;}
298
- .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
299
- </style>
300
- <?php
301
- }
302
- }
303
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  ?>
1
+ <?php
2
+
3
+ /*
4
+ Plugin Name: Google Language Translator
5
+ Plugin URI: http://www.studio88design.com/plugins/google-language-translator
6
+ Version: 1.6
7
+ Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Setting options include: layout style, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
8
+ Author: Rob Myrick
9
+ Author URI: http://www.studio88design.com/
10
+ */
11
+
12
+
13
+
14
+ function toggle_dropdown_script() {
15
+ wp_enqueue_script( 'my-script', plugins_url('/language-dropdown.js',__FILE__), array('jquery'));
16
+ }
17
+ add_action( 'admin_enqueue_scripts', 'toggle_dropdown_script' );
18
+
19
+ function translator_style() {
20
+ if (get_option('googlelanguagetranslator_language_option')=='all') { ?>
21
+ <style type="text/css">
22
+ label, .languages { display:none; }
23
+ </style>
24
+ <?php }
25
+ }
26
+ add_action( 'admin_head', 'translator_style');
27
+
28
+ add_filter('widget_text', 'do_shortcode');
29
+
30
+ add_action('admin_menu', 'googlelanguagetranslator_menu_options');
31
+
32
+ add_option("googlelanguagetranslator_active","0");
33
+
34
+ add_option("googlelanguagetranslator_language_option","all");
35
+
36
+ add_shortcode( 'google-translator', 'google_translator_shortcode');
37
+
38
+ function google_translator_shortcode() {
39
+ if (get_option('googlelanguagetranslator_display')=='Vertical'){
40
+ return googlelanguagetranslator_vertical();
41
+ }
42
+
43
+ elseif(get_option('googlelanguagetranslator_display')=='Horizontal'){
44
+ return googlelanguagetranslator_horizontal();
45
+ }
46
+
47
+ if (get_option('googlelanguagetranslator_toolbar')=='Yes'){
48
+ return googlelanguagetranslator_toolbar_yes();
49
+ }
50
+
51
+ elseif(get_option('googlelanguagetranslator_toolbar')=='No'){
52
+ return googlelanguagetranslator_toolbar_no();
53
+ add_action ('wp_head','googlelanguagetranslator_toolbar_no');
54
+ }
55
+
56
+ if (get_option('googlelanguagetranslator_showbranding')=='Yes'){
57
+ return googlelanguagetranslator_showbranding_yes();
58
+ add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
59
+ }
60
+
61
+ elseif(get_option('googlelanguagetranslator_showbranding')=='No'){
62
+ return googlelanguagetranslator_showbranding_no();
63
+ add_action ('wp_head','googlelanguagetranslator_showbranding_no');
64
+ }
65
+ }
66
+
67
+ if (get_option('googlelanguagetranslator_toolbar')=='Yes') {
68
+ add_action ('wp_head','googlelanguagetranslator_toolbar_yes');
69
+ }
70
+
71
+ if (get_option('googlelanguagetranslator_toolbar')=='No') {
72
+ add_action ('wp_head','googlelanguagetranslator_toolbar_no');
73
+ }
74
+
75
+ if (get_option('googlelanguagetranslator_showbranding')=='Yes') {
76
+ add_action ('wp_head','googlelanguagetranslator_showbranding_yes');
77
+ }
78
+
79
+ if (get_option('googlelanguagetranslator_showbranding')=='No') {
80
+ add_action ('wp_head','googlelanguagetranslator_showbranding_no');
81
+ }
82
+
83
+ function googlelanguagetranslator_menu_options(){
84
+ add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'googlelanguagetranslator-menu-options', 'googlelanguagetranslator_menu');
85
+
86
+ if(isset($_POST['googlelanguagetranslator_update_options'])){
87
+ update_option('googlelanguagetranslator_language',$_POST['googlelanguagetranslator_language']);
88
+ update_option('googlelanguagetranslator_display',$_POST['googlelanguagetranslator_display']);
89
+ update_option('googlelanguagetranslator_toolbar',$_POST['googlelanguagetranslator_toolbar']);
90
+ update_option('googlelanguagetranslator_showbranding',$_POST['googlelanguagetranslator_showbranding']);
91
+ update_option('googlelanguagetranslator_language_option',$_POST['googlelanguagetranslator_language_option']);
92
+ }
93
+
94
+ if(isset($_POST['googlelanguagetranslator_update_options'])) {
95
+ $get_language_choices = get_option ('language_display_settings');
96
+ $get_language_choices['af'] = $_POST['af'];
97
+ $get_language_choices['sq'] = $_POST['sq'];
98
+ $get_language_choices['ar'] = $_POST['ar'];
99
+ $get_language_choices['hy'] = $_POST['hy'];
100
+ $get_language_choices['az'] = $_POST['az'];
101
+ $get_language_choices['eu'] = $_POST['eu'];
102
+ $get_language_choices['be'] = $_POST['be'];
103
+ $get_language_choices['bn'] = $_POST['bn'];
104
+ $get_language_choices['bg'] = $_POST['bg'];
105
+ $get_language_choices['ca'] = $_POST['ca'];
106
+ $get_language_choices['zh-CN'] = $_POST['zh-CN'];
107
+ $get_language_choices['zh-TW'] = $_POST['zh-TW'];
108
+ $get_language_choices['cs'] = $_POST['cs'];
109
+ $get_language_choices['hr'] = $_POST['hr'];
110
+ $get_language_choices['da'] = $_POST['da'];
111
+ $get_language_choices['nl'] = $_POST['nl'];
112
+ $get_language_choices['en'] = $_POST['en'];
113
+ $get_language_choices['eo'] = $_POST['eo'];
114
+ $get_language_choices['et'] = $_POST['et'];
115
+ $get_language_choices['tl'] = $_POST['tl'];
116
+ $get_language_choices['fi'] = $_POST['fi'];
117
+ $get_language_choices['fr'] = $_POST['fr'];
118
+ $get_language_choices['gl'] = $_POST['gl'];
119
+ $get_language_choices['ka'] = $_POST['ka'];
120
+ $get_language_choices['de'] = $_POST['de'];
121
+ $get_language_choices['el'] = $_POST['el'];
122
+ $get_language_choices['gu'] = $_POST['gu'];
123
+ $get_language_choices['ht'] = $_POST['ht'];
124
+ $get_language_choices['iw'] = $_POST['iw'];
125
+ $get_language_choices['hi'] = $_POST['hi'];
126
+ $get_language_choices['hu'] = $_POST['hu'];
127
+ $get_language_choices['is'] = $_POST['is'];
128
+ $get_language_choices['id'] = $_POST['id'];
129
+ $get_language_choices['ga'] = $_POST['ga'];
130
+ $get_language_choices['it'] = $_POST['it'];
131
+ $get_language_choices['ja'] = $_POST['ja'];
132
+ $get_language_choices['kn'] = $_POST['kn'];
133
+ $get_language_choices['ko'] = $_POST['ko'];
134
+ $get_language_choices['lo'] = $_POST['lo'];
135
+ $get_language_choices['la'] = $_POST['la'];
136
+ $get_language_choices['lv'] = $_POST['lv'];
137
+ $get_language_choices['lt'] = $_POST['lt'];
138
+ $get_language_choices['mk'] = $_POST['mk'];
139
+ $get_language_choices['ms'] = $_POST['ms'];
140
+ $get_language_choices['mt'] = $_POST['mt'];
141
+ $get_language_choices['no'] = $_POST['no'];
142
+ $get_language_choices['fa'] = $_POST['fa'];
143
+ $get_language_choices['pl'] = $_POST['pl'];
144
+ $get_language_choices['pt'] = $_POST['pt'];
145
+ $get_language_choices['ro'] = $_POST['roo'];
146
+ $get_language_choices['ru'] = $_POST['ru'];
147
+ $get_language_choices['sr'] = $_POST['sr'];
148
+ $get_language_choices['sk'] = $_POST['sk'];
149
+ $get_language_choices['sl'] = $_POST['sl'];
150
+ $get_language_choices['es'] = $_POST['es'];
151
+ $get_language_choices['sw'] = $_POST['sw'];
152
+ $get_language_choices['sv'] = $_POST['sv'];
153
+ $get_language_choices['ta'] = $_POST['ta'];
154
+ $get_language_choices['te'] = $_POST['te'];
155
+ $get_language_choices['th'] = $_POST['th'];
156
+ $get_language_choices['tr'] = $_POST['tr'];
157
+ $get_language_choices['uk'] = $_POST['uk'];
158
+ $get_language_choices['ur'] = $_POST['ur'];
159
+ $get_language_choices['vi'] = $_POST['vi'];
160
+ $get_language_choices['cy'] = $_POST['cy'];
161
+ $get_language_choices['yi'] = $_POST['yi'];
162
+ update_option('language_display_settings', $get_language_choices);
163
+ }
164
+ }
165
+
166
+ function googlelanguagetranslator_menu(){
167
+ if (!current_user_can('manage_options')) {
168
+ wp_die( __('You do not have sufficient permissions to access this page.') );
169
+ }
170
+ ?>
171
+ <div class="wrap" style="width:70%">
172
+ <div id="icon-options-general" class="icon32"></div>
173
+ <h2>Google Language Translator</h2>
174
+ <div id="poststuff" class="metabox-holder has-right-sidebar" >
175
+ <div class="postbox" style="width: 100%">
176
+ <h3>Settings</h3>
177
+ <form method="post" action="options.php">
178
+ <?php wp_nonce_field('update-options');?>
179
+ <table width="100%" border="0" cellspacing="8" cellpadding="0" class="form-table">
180
+ <tr>
181
+ <td style="width:30%">Plugin Status:</td>
182
+ <td><input class="activate" type="checkbox" name="googlelanguagetranslator_active" id="googlelanguagetranslator_active" value="1" <?php if(get_option('googlelanguagetranslator_active')==1){echo "checked";}?> />
183
+ Click Here to Activate Google Language Translator</td>
184
+ </tr>
185
+
186
+ <tr>
187
+ <td>Choose the original language of your website</td>
188
+ <td>
189
+ <select name="googlelanguagetranslator_language" id="googlelanguagetranslator_language" style="width:100px">
190
+ <option value="en" <?php if(get_option('googlelanguagetranslator_language')=='en'){echo "selected";}?>>English</option>
191
+ <option value="es" <?php if(get_option('googlelanguagetranslator_language')=='es'){echo "selected";}?>>Spanish</option>
192
+ <option value="fr" <?php if(get_option('googlelanguagetranslator_language')=='fr'){echo "selected";}?>>French</option>
193
+ <option value="it" <?php if(get_option('googlelanguagetranslator_language')=='it'){echo "selected";}?>>Italian</option>
194
+ <option value="da" <?php if(get_option('googlelanguagetranslator_language')=='da'){echo "selected";}?>>Danish</option>
195
+ <option value="ja" <?php if(get_option('googlelanguagetranslator_language')=='ja'){echo "selected";}?>>Japanese</option>
196
+ <option value="zh-CN" <?php if(get_option('googlelanguagetranslator_language')=='zh-CN'){echo "selected";}?>>Chinese</option>
197
+ <option value="ru" <?php if(get_option('googlelanguagetranslator_language')=='ru') {echo "selected";}?>>Russian</option>
198
+ </select>
199
+ </td>
200
+ </tr>
201
+
202
+ <tr>
203
+ <td>What translation languages will you display to website visitors?</td>
204
+ <td>
205
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="all" <?php if(get_option('googlelanguagetranslator_language_option')=='all'){echo "checked";}?>/> All Languages<br/>
206
+ <input type="radio" name="googlelanguagetranslator_language_option" id="googlelanguagetranslator_language_option" value="specific" <?php if(get_option('googlelanguagetranslator_language_option')=='specific'){echo "checked";}?>/> Specific Languages
207
+ </td>
208
+ </tr>
209
+
210
+ <tr>
211
+
212
+ <td colspan="2">
213
+ <div class="languages" style="width:25%; float:left">
214
+ <?php $get_language_choices = get_option ('language_display_settings'); ?>
215
+ <div><input type="checkbox" name="af" value="1"<?php checked( isset ( $get_language_choices['af'] ) ); ?> /> Afrikaans</div>
216
+ <div><input type="checkbox" name="sq" value="1"<?php checked( isset ( $get_language_choices['sq'] ) ); ?> /> Albanian</div>
217
+ <div><input type="checkbox" name="ar" value="1"<?php checked( isset ( $get_language_choices['ar'] ) ); ?> /> Arabic</div>
218
+ <div><input type="checkbox" name="hy" value="1"<?php checked( isset ( $get_language_choices['hy'] ) ); ?> /> Armenian</div>
219
+ <div><input type="checkbox" name="az" value="1"<?php checked( isset ( $get_language_choices['az'] ) ); ?> /> Azerbaijani</div>
220
+ <div><input type="checkbox" name="eu" value="1"<?php checked( isset ( $get_language_choices['eu'] ) ); ?> /> Basque</div>
221
+ <div><input type="checkbox" name="be" value="1"<?php checked( isset ( $get_language_choices['be'] ) ); ?> /> Belarusian</div>
222
+ <div><input type="checkbox" name="bn" value="1"<?php checked( isset ( $get_language_choices['bn'] ) ); ?> /> Bengali</div>
223
+ <div><input type="checkbox" name="bg" value="1"<?php checked( isset ( $get_language_choices['bg'] ) ); ?> /> Bulgarian</div>
224
+ <div><input type="checkbox" name="ca" value="1"<?php checked( isset ( $get_language_choices['ca'] ) ); ?> /> Catalan</div>
225
+ <div><input type="checkbox" name="zh-CN" value="1"<?php checked( isset ( $get_language_choices['zh-CN'] ) ); ?> /> Chinese</div>
226
+ <div><input type="checkbox" name="zh-TW" value="1"<?php checked( isset ( $get_language_choices['zh-TW'] ) ); ?> /> Chinese (Han)</div>
227
+ <div><input type="checkbox" name="cs" value="1"<?php checked( isset ( $get_language_choices['cs'] ) ); ?> /> Croatian</div>
228
+ <div><input type="checkbox" name="hr" value="1"<?php checked( isset ( $get_language_choices['hr'] ) ); ?> /> Czech</div>
229
+ <div><input type="checkbox" name="da" value="1"<?php checked( isset ( $get_language_choices['da'] ) ); ?> /> Danish</div>
230
+ <div><input type="checkbox" name="nl" value="1"<?php checked( isset ( $get_language_choices['nl'] ) ); ?> /> Dutch</div>
231
+ <div><input type="checkbox" name="en" value="1"<?php checked( isset ( $get_language_choices['en'] ) ); ?> /> English</div>
232
+ </div>
233
+
234
+ <div class="languages" style="width:25%; float:left">
235
+ <div><input type="checkbox" name="eo" value="1"<?php checked( isset ( $get_language_choices['eo'] ) ); ?> /> Esperanto</div>
236
+ <div><input type="checkbox" name="et" value="1"<?php checked( isset ( $get_language_choices['et'] ) ); ?> /> Estonian</div>
237
+ <div><input type="checkbox" name="tl" value="1"<?php checked( isset ( $get_language_choices['tl'] ) ); ?> /> Filipino</div>
238
+ <div><input type="checkbox" name="fi" value="1"<?php checked( isset ( $get_language_choices['fi'] ) ); ?> /> Finnish</div>
239
+ <div><input type="checkbox" name="fr" value="1"<?php checked( isset ( $get_language_choices['fr'] ) ); ?> /> French</div>
240
+ <div><input type="checkbox" name="gl" value="1"<?php checked( isset ( $get_language_choices['gl'] ) ); ?> /> Galician</div>
241
+ <div><input type="checkbox" name="ka" value="1"<?php checked( isset ( $get_language_choices['ka'] ) ); ?> /> Georgian</div>
242
+ <div><input type="checkbox" name="de" value="1"<?php checked( isset ( $get_language_choices['de'] ) ); ?> /> German</div>
243
+ <div><input type="checkbox" name="el" value="1"<?php checked( isset ( $get_language_choices['el'] ) ); ?> /> Greek</div>
244
+ <div><input type="checkbox" name="gu" value="1"<?php checked( isset ( $get_language_choices['gu'] ) ); ?> /> Gujarati</div>
245
+ <div><input type="checkbox" name="ht" value="1"<?php checked( isset ( $get_language_choices['ht'] ) ); ?> /> Haitian</div>
246
+ <div><input type="checkbox" name="iw" value="1"<?php checked( isset ( $get_language_choices['iw'] ) ); ?> /> Hebrew</div>
247
+ <div><input type="checkbox" name="hi" value="1"<?php checked( isset ( $get_language_choices['hi'] ) ); ?> /> Hindi</div>
248
+ <div><input type="checkbox" name="hu" value="1"<?php checked( isset ( $get_language_choices['hu'] ) ); ?> /> Hungarian</div>
249
+ <div><input type="checkbox" name="is" value="1"<?php checked( isset ( $get_language_choices['is'] ) ); ?> /> Icelandic</div>
250
+ <div><input type="checkbox" name="id" value="1"<?php checked( isset ( $get_language_choices['id'] ) ); ?> /> Indonesian</div>
251
+ <div><input type="checkbox" name="ga" value="1"<?php checked( isset ( $get_language_choices['ga'] ) ); ?> /> Irish</div>
252
+ </div>
253
+
254
+ <div class="languages" style="width:25%; float:left">
255
+ <div><input type="checkbox" name="it" value="1"<?php checked( isset ( $get_language_choices['it'] ) ); ?> /> Italian</div>
256
+ <div><input type="checkbox" name="ja" value="1"<?php checked( isset ( $get_language_choices['ja'] ) ); ?> /> Japanese</div>
257
+ <div><input type="checkbox" name="kn" value="1"<?php checked( isset ( $get_language_choices['kn'] ) ); ?> /> Kannada</div>
258
+ <div><input type="checkbox" name="ko" value="1"<?php checked( isset ( $get_language_choices['ko'] ) ); ?> /> Korean</div>
259
+ <div><input type="checkbox" name="lo" value="1"<?php checked( isset ( $get_language_choices['lo'] ) ); ?> /> Lao</div>
260
+ <div><input type="checkbox" name="la" value="1"<?php checked( isset ( $get_language_choices['la'] ) ); ?> /> Latin</div>
261
+ <div><input type="checkbox" name="lv" value="1"<?php checked( isset ( $get_language_choices['lv'] ) ); ?> /> Latvian</div>
262
+ <div><input type="checkbox" name="lt" value="1"<?php checked( isset ( $get_language_choices['lt'] ) ); ?> /> Lithuanian</div>
263
+ <div><input type="checkbox" name="mk" value="1"<?php checked( isset ( $get_language_choices['mk'] ) ); ?> /> Macedonian</div>
264
+ <div><input type="checkbox" name="ms" value="1"<?php checked( isset ( $get_language_choices['ms'] ) ); ?> /> Malay</div>
265
+ <div><input type="checkbox" name="mt" value="1"<?php checked( isset ( $get_language_choices['mt'] ) ); ?> /> Maltese</div>
266
+ <div><input type="checkbox" name="no" value="1"<?php checked( isset ( $get_language_choices['no'] ) ); ?> /> Norwegian</div>
267
+ <div><input type="checkbox" name="fa" value="1"<?php checked( isset ( $get_language_choices['fa'] ) ); ?> /> Persian</div>
268
+ <div><input type="checkbox" name="pl" value="1"<?php checked( isset ( $get_language_choices['pl'] ) ); ?> /> Polish</div>
269
+ <div><input type="checkbox" name="pt" value="1"<?php checked( isset ( $get_language_choices['pt'] ) ); ?> /> Portuguese</div>
270
+ <div><input type="checkbox" name="ro" value="1"<?php checked( isset ( $get_language_choices['ro'] ) ); ?> /> Romanian</div>
271
+ <div><input type="checkbox" name="ru" value="1"<?php checked( isset ( $get_language_choices['ru'] ) ); ?> /> Russian</div>
272
+ </div>
273
+
274
+ <div class="languages" style="width:25%; float:left">
275
+ <div><input type="checkbox" name="sr" value="1"<?php checked( isset ( $get_language_choices['sr'] ) ); ?> /> Serbian</div>
276
+ <div><input type="checkbox" name="sk" value="1"<?php checked( isset ( $get_language_choices['sk'] ) ); ?> /> Slovak</div>
277
+ <div><input type="checkbox" name="sl" value="1"<?php checked( isset ( $get_language_choices['sl'] ) ); ?> /> Slovenian</div>
278
+ <div><input type="checkbox" name="es" value="1"<?php checked( isset ( $get_language_choices['es'] ) ); ?> /> Spanish</div>
279
+ <div><input type="checkbox" name="sw" value="1"<?php checked( isset ( $get_language_choices['sw'] ) ); ?> /> Swahili</div>
280
+ <div><input type="checkbox" name="sv" value="1"<?php checked( isset ( $get_language_choices['sv'] ) ); ?> /> Swedish</div>
281
+ <div><input type="checkbox" name="ta" value="1"<?php checked( isset ( $get_language_choices['ta'] ) ); ?> /> Tamil</div>
282
+ <div><input type="checkbox" name="te" value="1"<?php checked( isset ( $get_language_choices['te'] ) ); ?> /> Telugu</div>
283
+ <div><input type="checkbox" name="th" value="1"<?php checked( isset ( $get_language_choices['th'] ) ); ?> /> Thai</div>
284
+ <div><input type="checkbox" name="tr" value="1"<?php checked( isset ( $get_language_choices['tr'] ) ); ?> /> Turkish</div>
285
+ <div><input type="checkbox" name="uk" value="1"<?php checked( isset ( $get_language_choices['uk'] ) ); ?> /> Ukranian</div>
286
+ <div><input type="checkbox" name="ur" value="1"<?php checked( isset ( $get_language_choices['ur'] ) ); ?> /> Urdu</div>
287
+ <div><input type="checkbox" name="vi" value="1"<?php checked( isset ( $get_language_choices['vi'] ) ); ?> /> Vietnamese</div>
288
+ <div><input type="checkbox" name="cy" value="1"<?php checked( isset ( $get_language_choices['cy'] ) ); ?> /> Welsh</div>
289
+ <div><input type="checkbox" name="yi" value="1"<?php checked( isset ( $get_language_choices['yi'] ) ); ?> /> Yiddish</div>
290
+ </div>
291
+ <div style="clear:both"></div>
292
+
293
+ </td><td>
294
+
295
+ </td>
296
+ </tr>
297
+
298
+ <tr>
299
+ <td>Display options:</td>
300
+ <td>
301
+ <select name="googlelanguagetranslator_display" id="googlelanguagetranslator_display" style="width:100px;">
302
+ <option value="Vertical" <?php if(get_option('googlelanguagetranslator_display')=='Vertical'){echo "selected";}?>>Vertical</option>
303
+ <option value="Horizontal" <?php if(get_option('googlelanguagetranslator_display')=='Horizontal'){echo "selected";}?>>Horizontal</option>
304
+ </select> </td>
305
+ </tr>
306
+
307
+ <tr>
308
+ <td>Show Google Toolbar?</td>
309
+ <td>
310
+ <select name="googlelanguagetranslator_toolbar" id="googlelanguagetranslator_toolbar" style="width:100px;">
311
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_toolbar')=='Yes'){echo "selected";}?>>Yes</option>
312
+ <option value="No" <?php if(get_option('googlelanguagetranslator_toolbar')=='No'){echo "selected";}?>>No</option>
313
+ </select> </td>
314
+ </tr>
315
+
316
+ <tr>
317
+ <td>Show Google Branding?</td>
318
+ <td>
319
+ <select name="googlelanguagetranslator_showbranding" id="googlelanguagetranslator_showbranding" style="width:100px;">
320
+ <option value="Yes" <?php if(get_option('googlelanguagetranslator_showbranding')=='Yes'){echo "selected";}?>>Yes</option>
321
+ <option value="No" <?php if(get_option('googlelanguagetranslator_showbranding')=='No'){echo "selected";}?>>No</option>
322
+ </select> </td>
323
+ </tr>
324
+
325
+ <tr>
326
+ <td>&nbsp;</td>
327
+ <td><input type="submit" class="button-primary" value="<?php _e('Update Option')?>" name="googlelanguagetranslator_update_options" /></td>
328
+ </tr>
329
+ <tr>
330
+ <td>&nbsp;</td>
331
+ <td>&nbsp;</td>
332
+ </tr>
333
+
334
+ <tr>
335
+ <td>Copy/Paste This Shortcode:</td>
336
+ <td>
337
+ [google-translator]
338
+ </td>
339
+ </tr>
340
+
341
+ </table>
342
+ <input type="hidden" name="action" value="update" />
343
+ <input type="hidden" name="page_options" value="googlelanguagetranslator_active" />
344
+ </form>
345
+ </div>
346
+ </div>
347
+
348
+ <div id="poststuff" class="metabox-holder" style="float: left; width: 48%;">
349
+ <div class="postbox">
350
+ <h3>Another Plugin You Might Like:</h3>
351
+ <table class="form-table" width="100%">
352
+ <tr><td align="left" valign="top">
353
+ <table width="100%" border="0" cellspacing="0" cellpadding="4">
354
+
355
+ <tr>
356
+ <td>
357
+ <div>
358
+ <div>
359
+ <div>
360
+ <a href="http://wordpress.org/extend/plugins/malware-finder/" target="_blank">Malware Finder</a>
361
+ This plugin enables you to look inside all your WordPress files at once to find malicious code.<br>
362
+ </div>
363
+ </div>
364
+ </div>
365
+ </td>
366
+ </tr>
367
+
368
+ <tr>
369
+ <td><strong>You can also download this plugin at <a href="http://www.studio88design.com" target="_blank">www.studio88design.com</a></strong></td>
370
+ </tr>
371
+ </table>
372
+ </td>
373
+ </tr>
374
+ </table></div></div>
375
+ <div id="poststuff" class="metabox-holder" style="float: right; width: 48%;">
376
+ <div class="postbox">
377
+ <h3>Please Consider A Donation</h3>
378
+ <div class="inside">
379
+ If you like this plugin and find it useful, help keep this plugin actively developed by clicking the donate button <br /><br />
380
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
381
+ <input type="hidden" name="cmd" value="_donations">
382
+ <input type="hidden" name="business" value="robertmyrick@hotmail.com">
383
+ <input type="hidden" name="lc" value="US">
384
+ <input type="hidden" name="item_name" value="Support Studio 88 Design and help us bring you more Wordpress goodies! Any donation is kindly appreciated. Thank you!">
385
+ <input type="hidden" name="no_note" value="0">
386
+ <input type="hidden" name="currency_code" value="USD">
387
+ <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
388
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
389
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
390
+ </form>
391
+
392
+ <br />
393
+ <br />
394
+ </div>
395
+ </div>
396
+ </div>
397
+ </div>
398
+
399
+ <?php
400
+ }
401
+
402
+ function googlelanguagetranslator_included_languages() {
403
+ if ( get_option('googlelanguagetranslator_language_option')=='specific') {
404
+ $get_language_choices = get_option ('language_display_settings');
405
+ //print_r($get_language_choices);
406
+
407
+ foreach ($get_language_choices as $key=>$value) {
408
+ if($value == 1) {
409
+ $items[] = $key;
410
+ }
411
+ }
412
+ $comma_separated = implode(",",array_values($items));
413
+ $lang .= 'includedLanguages:\''.$comma_separated.'\'';
414
+ return $lang;
415
+ }
416
+ }
417
+
418
+ function googlelanguagetranslator_vertical(){
419
+ $language_choices = googlelanguagetranslator_included_languages();
420
+ if(get_option('googlelanguagetranslator_active')==1){
421
+ $str.='<div id="google_translate_element"></div><script>
422
+ function googleTranslateElementInit() {
423
+ new google.translate.TranslateElement({
424
+ pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.'
425
+ }, \'google_translate_element\');
426
+ }
427
+ </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
428
+ return '<div>'.$str.'</div>';
429
+ }
430
+ }
431
+
432
+ function googlelanguagetranslator_horizontal(){
433
+ $language_choices = googlelanguagetranslator_included_languages();
434
+ if(get_option('googlelanguagetranslator_active')==1){
435
+ $str.='<div id="google_translate_element"></div><script>
436
+ function googleTranslateElementInit() {
437
+ new google.translate.TranslateElement({
438
+ pageLanguage: \''.get_option('googlelanguagetranslator_language').'\', '.$language_choices.', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
439
+ }, \'google_translate_element\');
440
+ }
441
+ </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
442
+ return '<div>'.$str.'</div>';
443
+ }
444
+ }
445
+
446
+ function googlelanguagetranslator_toolbar_yes(){
447
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
448
+ <style type="text/css">
449
+ #google_translate_element {color: transparent;}
450
+ .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
451
+ .goog-tooltip {display: none !important;}
452
+ .goog-tooltip:hover {display: none !important;}
453
+ .goog-text-highlight {background-color: transparent !important; border: none !important;box-shadow: none !important;}
454
+ </style>
455
+ <?php
456
+ }
457
+ }
458
+
459
+ function googlelanguagetranslator_toolbar_no(){
460
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
461
+ <style type="text/css">
462
+ .goog-te-banner-frame{visibility:hidden !important;}
463
+ body {top:0px !important;}
464
+ </style>
465
+ <?php
466
+ }
467
+ }
468
+
469
+
470
+ function googlelanguagetranslator_showbranding_yes() {
471
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
472
+ <style type="text/css">
473
+ .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
474
+ .goog-tooltip {display: none !important;}
475
+ .goog-tooltip:hover {display: none !important;}
476
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
477
+ </style>
478
+ <?php
479
+ }
480
+ }
481
+
482
+ function googlelanguagetranslator_showbranding_no() {
483
+ if(get_option('googlelanguagetranslator_active')==1) { ?>
484
+ <style type="text/css">
485
+ #google_translate_element a {display: none !important;}
486
+ .goog-te-gadget {color:transparent !important;}
487
+ .goog-te-gadget .goog-te-combo {margin: 2px 0px !important;}
488
+ .goog-tooltip {display: none !important;}
489
+ .goog-tooltip:hover {display: none !important;}
490
+ .goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}
491
+ </style>
492
+ <?php
493
+ }
494
+ }
495
+
496
  ?>
language-dropdown.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+
3
+ jQuery('input[type="radio"][value="all"]').change(function() {
4
+ jQuery('.languages').css('display','none');
5
+ jQuery('label').css('display','none');
6
+ });
7
+ jQuery('input[type="radio"][value="specific"]').change(function() {
8
+ jQuery('.languages').css('display','inline');
9
+ jQuery('label').css('display','inline');
10
+ });
11
+
12
+ });
readme.txt CHANGED
@@ -1,41 +1,43 @@
1
- === Google Language Translator ===
2
- Contributors: Rob Myrick
3
- Donate link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=c6aycTLE8Qho4lN9-QgzmJQKxNrRLomhJQ8gEAM2t5EZc5enxqC4Dpii-1C&dispatch=5885d80a13c0db1f8e263663d3faee8d0b7e678a25d883d0fa72c947f193f8fd
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.51
8
- stable tag: 1.5
9
-
10
- Welcome to Google Language Tranlator! 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, 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
- == Screenshots ==
40
-
41
- 1. Settings include: inline or vertical layout, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
 
 
1
+ === Google Language Translator ===
2
+ Contributors: Rob Myrick
3
+ Donate link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=c6aycTLE8Qho4lN9-QgzmJQKxNrRLomhJQ8gEAM2t5EZc5enxqC4Dpii-1C&dispatch=5885d80a13c0db1f8e263663d3faee8d0b7e678a25d883d0fa72c947f193f8fd
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.51
8
+ stable tag: 1.6
9
+
10
+ Welcome to Google Language Tranlator! 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, 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
+ == Screenshots ==
42
+
43
+ 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.
screenshot-1.png ADDED
Binary file