Version Description
Download this release
Release Info
Developer | rm2773 |
Plugin | Google Language Translator |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- google-language-translator.php +495 -303
- language-dropdown.js +12 -0
- readme.txt +43 -41
- screenshot-1.png +0 -0
google-language-translator.php
CHANGED
@@ -1,304 +1,496 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
elseif(get_option('
|
52 |
-
return
|
53 |
-
add_action ('wp_head','
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
if (get_option('
|
68 |
-
add_action ('wp_head','
|
69 |
-
}
|
70 |
-
|
71 |
-
if (get_option('
|
72 |
-
add_action ('wp_head','
|
73 |
-
}
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
<div class="postbox">
|
176 |
-
<h3>
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
<
|
211 |
-
|
212 |
-
<
|
213 |
-
<
|
214 |
-
|
215 |
-
<
|
216 |
-
</
|
217 |
-
|
218 |
-
<
|
219 |
-
</div>
|
220 |
-
</div
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
<
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
</
|
261 |
-
<?php
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
<
|
268 |
-
|
269 |
-
|
270 |
-
</
|
271 |
-
<?php
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
<
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
</
|
284 |
-
<?php
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
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> </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> </td>
|
331 |
+
<td> </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.
|
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 |
-
|
40 |
-
|
41 |
-
|
|
|
|
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
|