Version Description
Download this release
Release Info
Developer | rm2773 |
Plugin | Google Language Translator |
Version | 5.0.25 |
Comparing to | |
See all releases |
Code changes from version 5.0.24 to 5.0.25
- css/style.css +30 -0
- google-language-translator.php +31 -10
- js/admin.js +91 -92
- js/load-toolbar.js +27 -29
- readme.txt +5 -1
css/style.css
CHANGED
@@ -3,6 +3,11 @@
|
|
3 |
display:none !important;
|
4 |
}
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
.box-right {
|
7 |
clear:right;
|
8 |
}
|
@@ -64,26 +69,51 @@ select.goog-te-combo {
|
|
64 |
#flags.size24 a {
|
65 |
width:24px !important;
|
66 |
height:18px !important;
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
#flags.size22 a {
|
70 |
width:22px !important;
|
71 |
height:17px !important;
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
#flags.size20 a {
|
75 |
width:20px !important;
|
76 |
height:14px !important;
|
|
|
|
|
|
|
|
|
|
|
77 |
}
|
78 |
|
79 |
#flags.size18 a {
|
80 |
width:18px !important;
|
81 |
height:14px !important;
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
84 |
#flags.size16 a {
|
85 |
width:16px !important;
|
86 |
height:12px !important;
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
|
89 |
.tool-container .tool-items a {
|
3 |
display:none !important;
|
4 |
}
|
5 |
|
6 |
+
#glt-translate-trigger,
|
7 |
+
#glt-translate-trigger span {
|
8 |
+
cursor:pointer;
|
9 |
+
}
|
10 |
+
|
11 |
.box-right {
|
12 |
clear:right;
|
13 |
}
|
69 |
#flags.size24 a {
|
70 |
width:24px !important;
|
71 |
height:18px !important;
|
72 |
+
box-sizing:content-box;
|
73 |
+
-webkit-box-sizing:content-box;
|
74 |
+
-moz-box-sizing:content-box;
|
75 |
+
-o-box-sizing:content-box;
|
76 |
+
-ms-box-sizing:content-box;
|
77 |
}
|
78 |
|
79 |
#flags.size22 a {
|
80 |
width:22px !important;
|
81 |
height:17px !important;
|
82 |
+
box-sizing:content-box;
|
83 |
+
-webkit-box-sizing:content-box;
|
84 |
+
-moz-box-sizing:content-box;
|
85 |
+
-o-box-sizing:content-box;
|
86 |
+
-ms-box-sizing:content-box;
|
87 |
}
|
88 |
|
89 |
#flags.size20 a {
|
90 |
width:20px !important;
|
91 |
height:14px !important;
|
92 |
+
box-sizing:content-box;
|
93 |
+
-webkit-box-sizing:content-box;
|
94 |
+
-moz-box-sizing:content-box;
|
95 |
+
-o-box-sizing:content-box;
|
96 |
+
-ms-box-sizing:content-box;
|
97 |
}
|
98 |
|
99 |
#flags.size18 a {
|
100 |
width:18px !important;
|
101 |
height:14px !important;
|
102 |
+
box-sizing:content-box;
|
103 |
+
-webkit-box-sizing:content-box;
|
104 |
+
-moz-box-sizing:content-box;
|
105 |
+
-o-box-sizing:content-box;
|
106 |
+
-ms-box-sizing:content-box;
|
107 |
}
|
108 |
|
109 |
#flags.size16 a {
|
110 |
width:16px !important;
|
111 |
height:12px !important;
|
112 |
+
box-sizing:content-box;
|
113 |
+
-webkit-box-sizing:content-box;
|
114 |
+
-moz-box-sizing:content-box;
|
115 |
+
-o-box-sizing:content-box;
|
116 |
+
-ms-box-sizing:content-box;
|
117 |
}
|
118 |
|
119 |
.tool-container .tool-items a {
|
google-language-translator.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Google Language Translator
|
4 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
5 |
-
Version: 5.0.
|
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/
|
@@ -313,6 +313,7 @@ class google_language_translator {
|
|
313 |
|
314 |
public function footer_script() {
|
315 |
global $shortcode_started;
|
|
|
316 |
$i = 0;
|
317 |
$default_language = get_option('googlelanguagetranslator_language');
|
318 |
$language_choices = $this->googlelanguagetranslator_included_languages();
|
@@ -327,10 +328,11 @@ class google_language_translator {
|
|
327 |
$get_flag_choices = get_option ('flag_display_settings');
|
328 |
$get_flag_choices_count = count($get_flag_choices);
|
329 |
$floating_widget = get_option ('googlelanguagetranslator_floating_widget');
|
|
|
330 |
$is_active = get_option ( 'googlelanguagetranslator_active' );
|
331 |
$is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
|
332 |
$str = ''; ?>
|
333 |
-
<script>jQuery(document).ready(function($) { $('#flags a, a.single-language').each(function() { $(this).attr('data-lang', $(this).attr('title')); }); $("a.flag").on("click",function(){function l(){doGoogleLanguageTranslator(default_lang+"|"+default_lang); }function n(){doGoogleLanguageTranslator(default_lang+"|"+lang_prefix); } lang_text=$(this).attr('data-lang'),default_lang="<?php echo get_option('googlelanguagetranslator_language'); ?>",lang_prefix=$(this).attr("class").split(" ")[2],$(".tool-container").hide(),lang_prefix==default_lang?l():n()}),0==$("body > #google_language_translator").length&&$("#glt-footer").html("<div id='google_language_translator'></div>")});</script>
|
334 |
|
335 |
<?php
|
336 |
|
@@ -339,7 +341,7 @@ class google_language_translator {
|
|
339 |
foreach ($get_flag_choices as $flag_choice_key) {}
|
340 |
|
341 |
if ($floating_widget=='yes' && $get_language_option != 'specific') {
|
342 |
-
$str.='<div id="glt-translate-trigger"><span
|
343 |
$str.='<div id="glt-toolbar"></div>';
|
344 |
} //endif $floating_widget
|
345 |
|
@@ -517,7 +519,7 @@ class google_language_translator {
|
|
517 |
} // End glt_vertical
|
518 |
|
519 |
public function googlelanguagetranslator_horizontal(){
|
520 |
-
$shortcode_started = true;
|
521 |
$get_flag_choices = get_option ('flag_display_settings');
|
522 |
$new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
|
523 |
$new_languages_array = explode(",",$new_languages_array_string);
|
@@ -602,10 +604,10 @@ class google_language_translator {
|
|
602 |
add_settings_section('glt_settings','Settings','','google_language_translator');
|
603 |
|
604 |
$settings_name_array = array (
|
605 |
-
'googlelanguagetranslator_active','googlelanguagetranslator_language','googlelanguagetranslator_language_option','language_display_settings','googlelanguagetranslator_flags','flag_display_settings','googlelanguagetranslator_translatebox','googlelanguagetranslator_display','googlelanguagetranslator_toolbar','googlelanguagetranslator_showbranding','googlelanguagetranslator_flags_alignment','googlelanguagetranslator_analytics','googlelanguagetranslator_analytics_id','googlelanguagetranslator_css','googlelanguagetranslator_multilanguage','googlelanguagetranslator_floating_widget','googlelanguagetranslator_flag_size','googlelanguagetranslator_flags_order','googlelanguagetranslator_english_flag_choice','googlelanguagetranslator_spanish_flag_choice','googlelanguagetranslator_portuguese_flag_choice'
|
606 |
);
|
607 |
|
608 |
-
$settings_callback_array = array ( 'googlelanguagetranslator_active_cb','googlelanguagetranslator_language_cb','googlelanguagetranslator_language_option_cb','language_display_settings_cb','googlelanguagetranslator_flags_cb','flag_display_settings_cb','googlelanguagetranslator_translatebox_cb','googlelanguagetranslator_display_cb','googlelanguagetranslator_toolbar_cb','googlelanguagetranslator_showbranding_cb','googlelanguagetranslator_flags_alignment_cb','googlelanguagetranslator_analytics_cb','googlelanguagetranslator_analytics_id_cb','googlelanguagetranslator_css_cb','googlelanguagetranslator_multilanguage_cb','googlelanguagetranslator_floating_widget_cb','googlelanguagetranslator_flag_size_cb','googlelanguagetranslator_flags_order_cb','googlelanguagetranslator_english_flag_choice_cb','googlelanguagetranslator_spanish_flag_choice_cb','googlelanguagetranslator_portuguese_flag_choice_cb'
|
609 |
);
|
610 |
|
611 |
foreach ($settings_name_array as $setting) {
|
@@ -786,6 +788,22 @@ class google_language_translator {
|
|
786 |
</select>
|
787 |
<?php }
|
788 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
public function googlelanguagetranslator_translatebox_cb() {
|
790 |
|
791 |
$option_name = 'googlelanguagetranslator_translatebox' ;
|
@@ -1130,17 +1148,20 @@ $('.choose_flags').find('input:checkbox').prop('checked', false); }); });</scrip
|
|
1130 |
</td>
|
1131 |
</tr>
|
1132 |
|
1133 |
-
|
1134 |
-
|
1135 |
-
<tr class="notranslate">
|
1136 |
<td>Show floating translation widget?<br/>
|
1137 |
<span>("All Languages" option <strong><u>must</u></strong> be chosen to show widget.)</span>
|
1138 |
</td>
|
1139 |
<td><?php $this->googlelanguagetranslator_floating_widget_cb(); ?></td>
|
1140 |
</tr>
|
1141 |
|
|
|
|
|
|
|
|
|
|
|
1142 |
<tr class="notranslate">
|
1143 |
-
|
1144 |
<td><?php $this->googlelanguagetranslator_translatebox_cb(); ?></td>
|
1145 |
</tr>
|
1146 |
|
2 |
/*
|
3 |
Plugin Name: Google Language Translator
|
4 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
5 |
+
Version: 5.0.25
|
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/
|
313 |
|
314 |
public function footer_script() {
|
315 |
global $shortcode_started;
|
316 |
+
|
317 |
$i = 0;
|
318 |
$default_language = get_option('googlelanguagetranslator_language');
|
319 |
$language_choices = $this->googlelanguagetranslator_included_languages();
|
328 |
$get_flag_choices = get_option ('flag_display_settings');
|
329 |
$get_flag_choices_count = count($get_flag_choices);
|
330 |
$floating_widget = get_option ('googlelanguagetranslator_floating_widget');
|
331 |
+
$floating_widget_text = get_option ('googlelanguagetranslator_floating_widget_text');
|
332 |
$is_active = get_option ( 'googlelanguagetranslator_active' );
|
333 |
$is_multilanguage = get_option('googlelanguagetranslator_multilanguage');
|
334 |
$str = ''; ?>
|
335 |
+
<script>jQuery(document).ready(function($) { <?php if(empty($floating_widget_text)): ?>$('#glt-translate-trigger').on('toolbarShown',function(event) { $('#glt-translate-trigger span').text('Translate « '); }); $('#glt-translate-trigger').on('toolbarHidden',function(event) { $('#glt-translate-trigger span').text('Translate » '); }); <?php endif; ?>$('#flags a, a.single-language, .tool-items a').each(function() { $(this).attr('data-lang', $(this).attr('title')); }); $("a.flag").on("click",function(){function l(){doGoogleLanguageTranslator(default_lang+"|"+default_lang); }function n(){doGoogleLanguageTranslator(default_lang+"|"+lang_prefix); } lang_text=$(this).attr('data-lang'),default_lang="<?php echo get_option('googlelanguagetranslator_language'); ?>",lang_prefix=$(this).attr("class").split(" ")[2],$(".tool-container").hide(),lang_prefix==default_lang?l():n()}),0==$("body > #google_language_translator").length&&$("#glt-footer").html("<div id='google_language_translator'></div>")});</script>
|
336 |
|
337 |
<?php
|
338 |
|
341 |
foreach ($get_flag_choices as $flag_choice_key) {}
|
342 |
|
343 |
if ($floating_widget=='yes' && $get_language_option != 'specific') {
|
344 |
+
$str.='<div id="glt-translate-trigger"><span>'.(empty($floating_widget_text) ? 'Translate »' : $floating_widget_text).'</span></div>';
|
345 |
$str.='<div id="glt-toolbar"></div>';
|
346 |
} //endif $floating_widget
|
347 |
|
519 |
} // End glt_vertical
|
520 |
|
521 |
public function googlelanguagetranslator_horizontal(){
|
522 |
+
$shortcode_started = 'true';
|
523 |
$get_flag_choices = get_option ('flag_display_settings');
|
524 |
$new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
|
525 |
$new_languages_array = explode(",",$new_languages_array_string);
|
604 |
add_settings_section('glt_settings','Settings','','google_language_translator');
|
605 |
|
606 |
$settings_name_array = array (
|
607 |
+
'googlelanguagetranslator_active','googlelanguagetranslator_language','googlelanguagetranslator_language_option','language_display_settings','googlelanguagetranslator_flags','flag_display_settings','googlelanguagetranslator_translatebox','googlelanguagetranslator_display','googlelanguagetranslator_toolbar','googlelanguagetranslator_showbranding','googlelanguagetranslator_flags_alignment','googlelanguagetranslator_analytics','googlelanguagetranslator_analytics_id','googlelanguagetranslator_css','googlelanguagetranslator_multilanguage','googlelanguagetranslator_floating_widget','googlelanguagetranslator_flag_size','googlelanguagetranslator_flags_order','googlelanguagetranslator_english_flag_choice','googlelanguagetranslator_spanish_flag_choice','googlelanguagetranslator_portuguese_flag_choice','googlelanguagetranslator_floating_widget_text'
|
608 |
);
|
609 |
|
610 |
+
$settings_callback_array = array ( 'googlelanguagetranslator_active_cb','googlelanguagetranslator_language_cb','googlelanguagetranslator_language_option_cb','language_display_settings_cb','googlelanguagetranslator_flags_cb','flag_display_settings_cb','googlelanguagetranslator_translatebox_cb','googlelanguagetranslator_display_cb','googlelanguagetranslator_toolbar_cb','googlelanguagetranslator_showbranding_cb','googlelanguagetranslator_flags_alignment_cb','googlelanguagetranslator_analytics_cb','googlelanguagetranslator_analytics_id_cb','googlelanguagetranslator_css_cb','googlelanguagetranslator_multilanguage_cb','googlelanguagetranslator_floating_widget_cb','googlelanguagetranslator_flag_size_cb','googlelanguagetranslator_flags_order_cb','googlelanguagetranslator_english_flag_choice_cb','googlelanguagetranslator_spanish_flag_choice_cb','googlelanguagetranslator_portuguese_flag_choice_cb','googlelanguagetranslator_floating_widget_text_cb'
|
611 |
);
|
612 |
|
613 |
foreach ($settings_name_array as $setting) {
|
788 |
</select>
|
789 |
<?php }
|
790 |
|
791 |
+
public function googlelanguagetranslator_floating_widget_text_cb() {
|
792 |
+
|
793 |
+
$option_name = 'googlelanguagetranslator_floating_widget_text' ;
|
794 |
+
$new_value = 'yes';
|
795 |
+
|
796 |
+
if ( get_option( $option_name ) === false ) {
|
797 |
+
// The option does not exist, so we update it.
|
798 |
+
update_option( $option_name, $new_value );
|
799 |
+
}
|
800 |
+
|
801 |
+
$options = get_option (''.$option_name.''); ?>
|
802 |
+
|
803 |
+
<input type="text" name="googlelanguagetranslator_floating_widget_text" id="googlelanguagetranslator_floating_widget_text" value="<?php echo esc_attr($options); ?>" style="width:170px"/>
|
804 |
+
|
805 |
+
<?php }
|
806 |
+
|
807 |
public function googlelanguagetranslator_translatebox_cb() {
|
808 |
|
809 |
$option_name = 'googlelanguagetranslator_translatebox' ;
|
1148 |
</td>
|
1149 |
</tr>
|
1150 |
|
1151 |
+
<tr class="floating_widget notranslate">
|
|
|
|
|
1152 |
<td>Show floating translation widget?<br/>
|
1153 |
<span>("All Languages" option <strong><u>must</u></strong> be chosen to show widget.)</span>
|
1154 |
</td>
|
1155 |
<td><?php $this->googlelanguagetranslator_floating_widget_cb(); ?></td>
|
1156 |
</tr>
|
1157 |
|
1158 |
+
<tr class="floating_widget_text notranslate">
|
1159 |
+
<td>Custom text for the floating widget:</td>
|
1160 |
+
<td><?php $this->googlelanguagetranslator_floating_widget_text_cb(); ?></td>
|
1161 |
+
</tr>
|
1162 |
+
|
1163 |
<tr class="notranslate">
|
1164 |
+
<td>Show or hide the langauge switcher?</td>
|
1165 |
<td><?php $this->googlelanguagetranslator_translatebox_cb(); ?></td>
|
1166 |
</tr>
|
1167 |
|
js/admin.js
CHANGED
@@ -1,92 +1,91 @@
|
|
1 |
-
jQuery(document).ready(function(){
|
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 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
1 |
+
jQuery(document).ready(function($){
|
2 |
+
var language_display = $('input[name=googlelanguagetranslator_language_option]:checked').val();
|
3 |
+
|
4 |
+
if ( language_display == 'all') {
|
5 |
+
$('.languages').css('display','none');
|
6 |
+
$('.choose_flags').css('display','none');
|
7 |
+
} else if (language_display == 'specific') {
|
8 |
+
$('.choose_flags_intro').css('display','none');
|
9 |
+
$('.choose_flags').css('display','none');
|
10 |
+
}
|
11 |
+
|
12 |
+
var display = $('select[name=googlelanguagetranslator_display] option:selected').val();
|
13 |
+
|
14 |
+
$('input[name=googlelanguagetranslator_language_option]').change(function(){
|
15 |
+
if( $(this).val() == 'all'){
|
16 |
+
$('.languages').fadeOut("slow");
|
17 |
+
$('.choose_flags_intro').css('display','');
|
18 |
+
var flag_display = $('input[name=googlelanguagetranslator_flags]:checked').val();
|
19 |
+
if ( flag_display == 'show_flags') {
|
20 |
+
$('.choose_flags').css('display','');
|
21 |
+
}
|
22 |
+
} else if ($(this).val() == 'specific') {
|
23 |
+
$('.languages').fadeIn("slow");
|
24 |
+
$('.choose_flags_intro').css('display','none');
|
25 |
+
$('.choose_flags').css('display','none');
|
26 |
+
}
|
27 |
+
});
|
28 |
+
|
29 |
+
var language_display = $('input[name=googlelanguagetranslator_language_option]:checked').val();
|
30 |
+
var flag_display = $('input[name=googlelanguagetranslator_flags]:checked').val();
|
31 |
+
var floating_widget_display = $('select[name=googlelanguagetranslator_floating_widget] option:selected').val();
|
32 |
+
|
33 |
+
if ( flag_display == 'hide_flags') {
|
34 |
+
$('.choose_flags').css('display','none');
|
35 |
+
} else if (flag_display == 'show_flags') {
|
36 |
+
if ( language_display == 'all') {
|
37 |
+
$('.choose_flags').css('display','');
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
if(floating_widget_display == 'yes') {
|
42 |
+
$('.floating_widget_text').css('display','');
|
43 |
+
} else {
|
44 |
+
$('.floating_widget_text').css('display','none');
|
45 |
+
}
|
46 |
+
|
47 |
+
$('input[name=googlelanguagetranslator_flags]').change(function(){
|
48 |
+
if($(this).val() == 'hide_flags'){
|
49 |
+
$('.choose_flags').fadeOut("slow");
|
50 |
+
} else if ($(this).val() == 'show_flags') {
|
51 |
+
$('.choose_flags').fadeIn("slow");
|
52 |
+
}
|
53 |
+
});
|
54 |
+
|
55 |
+
//FadeIn and FadeOut Floating Widget Text option
|
56 |
+
$('select[name=googlelanguagetranslator_floating_widget]').change(function() {
|
57 |
+
if($(this).val()=='yes') {
|
58 |
+
$('.floating_widget_text').fadeIn("slow");
|
59 |
+
} else {
|
60 |
+
$('.floating_widget_text').fadeOut("slow");
|
61 |
+
}
|
62 |
+
});
|
63 |
+
|
64 |
+
//FadeIn and FadeOut Google Analytics tracking settings
|
65 |
+
$('input[name=googlelanguagetranslator_analytics]').change(function() {
|
66 |
+
if($(this).val()=='show') {
|
67 |
+
$('.analytics').fadeIn("slow");
|
68 |
+
} else {
|
69 |
+
$('.analytics').fadeOut("slow");
|
70 |
+
}
|
71 |
+
});
|
72 |
+
|
73 |
+
//Hide or show Google Analytics ID field upon browser refresh
|
74 |
+
var analytics = $('input[name=googlelanguagetranslator_analytics]');
|
75 |
+
if (analytics.is(':checked') ) {
|
76 |
+
$('.analytics').css('display','');
|
77 |
+
} else {
|
78 |
+
$('.analytics').css('display','none');
|
79 |
+
}
|
80 |
+
|
81 |
+
//Prevent the translator preview from translating Dashboard text
|
82 |
+
$('#adminmenu').addClass('notranslate');
|
83 |
+
$('#wp-toolbar').addClass('notranslate');
|
84 |
+
$('#setting-error-settings_updated').addClass('notranslate');
|
85 |
+
$('.update-nag').addClass('notranslate');
|
86 |
+
$('title').addClass('notranslate');
|
87 |
+
$('#footer-thankyou').addClass('notranslate');
|
88 |
+
}); //jQuery
|
89 |
+
|
90 |
+
|
91 |
+
|
|
js/load-toolbar.js
CHANGED
@@ -1,30 +1,28 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
2 |
-
$('#glt-translate-trigger').toolbar({content: '#flags', position: 'top', hideOnClick: 'true'});
|
3 |
-
|
4 |
-
|
5 |
-
$('#glt-translate-trigger').on('toolbarShown',function(event) {
|
6 |
-
$('.tool-rounded').css('display','block');
|
7 |
-
$('.tool-rounded').css('position','fixed');
|
8 |
-
$('.tool-rounded').css('bottom','50px');
|
9 |
-
$('.tool-rounded').css('top','auto !important');
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
$(
|
22 |
-
|
23 |
-
$(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
});
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
$('#glt-translate-trigger').toolbar({content: '#flags', position: 'top', hideOnClick: 'true'});
|
3 |
+
|
4 |
+
|
5 |
+
$('#glt-translate-trigger').on('toolbarShown',function(event) {
|
6 |
+
$('.tool-rounded').css('display','block');
|
7 |
+
$('.tool-rounded').css('position','fixed');
|
8 |
+
$('.tool-rounded').css('bottom','50px');
|
9 |
+
$('.tool-rounded').css('top','auto !important');
|
10 |
+
|
11 |
+
});
|
12 |
+
|
13 |
+
$('#glt-translate-trigger').on('toolbarHidden',function(event) {
|
14 |
+
$('.tool-rounded').css('position','absolute');
|
15 |
+
|
16 |
+
});
|
17 |
+
|
18 |
+
$('#glt-translate-trigger').on('toolbarItemClick',function(event) {
|
19 |
+
//$('#glt-translate-trigger span').text('Translate » ');
|
20 |
+
|
21 |
+
$(this).removeClass('pressed');
|
22 |
+
|
23 |
+
$('.tool-container').hide();
|
24 |
+
});
|
25 |
+
|
26 |
+
|
27 |
+
|
|
|
|
|
28 |
});
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Plugin link: http://wp-studio.net/how-it-works
|
|
5 |
Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
|
6 |
Requires at least: 2.9
|
7 |
Tested up to: 4.6
|
8 |
-
Stable tag: 5.0.
|
9 |
|
10 |
Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
|
11 |
|
@@ -46,6 +46,10 @@ A: Yes! Add the "notranslate" class to the HTML element containing your text. Fo
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
49 |
5.0.24
|
50 |
- Improved functionality for flags. Users are now returned to original language when the flag is displayed. The Google Toolbar will be hidden once returning back to the original language. The Google Toolbar will appear again when another translation is made.
|
51 |
- Fixed the issue with flags not functioning with SIMPLE layout.
|
5 |
Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
|
6 |
Requires at least: 2.9
|
7 |
Tested up to: 4.6
|
8 |
+
Stable tag: 5.0.25
|
9 |
|
10 |
Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
|
11 |
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
5.0.25
|
50 |
+
- Added new setting for custom text in the Floating Widget.
|
51 |
+
- Removed "notranslate" class from the Floating Widget text to allow for translation.
|
52 |
+
|
53 |
5.0.24
|
54 |
- Improved functionality for flags. Users are now returned to original language when the flag is displayed. The Google Toolbar will be hidden once returning back to the original language. The Google Toolbar will appear again when another translation is made.
|
55 |
- Fixed the issue with flags not functioning with SIMPLE layout.
|