Version Description
- Added Quebec and Canada alternative flags for French and English
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 2.8.10 |
Comparing to | |
See all releases |
Code changes from version 2.8.9 to 2.8.10
- flags/16/en-ca.png +0 -0
- flags/16/fr-qc.png +0 -0
- flags/24/en-ca.png +0 -0
- flags/24/fr-qc.png +0 -0
- flags/32/en-ca.png +0 -0
- flags/32/fr-qc.png +0 -0
- flags/48/en-ca.png +0 -0
- flags/48/fr-qc.png +0 -0
- gtranslate.php +20 -4
- readme.txt +5 -2
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
flags/16/en-ca.png
ADDED
Binary file
|
flags/16/fr-qc.png
ADDED
Binary file
|
flags/24/en-ca.png
ADDED
Binary file
|
flags/24/fr-qc.png
ADDED
Binary file
|
flags/32/en-ca.png
ADDED
Binary file
|
flags/32/fr-qc.png
ADDED
Binary file
|
flags/48/en-ca.png
ADDED
Binary file
|
flags/48/fr-qc.png
ADDED
Binary file
|
gtranslate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
-
Version: 2.8.
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
@@ -290,10 +290,14 @@ function RefreshDoWidgetCode() {
|
|
290 |
if(widget_look == 'flags' || widget_look == 'flags_dropdown' || widget_look == 'flags_name' || widget_look == 'flags_code') {
|
291 |
if(lang == 'en' && jQuery('#alt_us:checked').length)
|
292 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/en-us.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
|
|
|
|
293 |
else if(lang == 'pt' && jQuery('#alt_br:checked').length)
|
294 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/pt-br.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
295 |
else if(lang == 'es' && jQuery('#alt_mx:checked').length)
|
296 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/es-mx.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
|
|
|
|
297 |
else
|
298 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/'+lang+'.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
299 |
}
|
@@ -381,8 +385,10 @@ function RefreshDoWidgetCode() {
|
|
381 |
var language_codes = `+JSON.stringify(jQuery(".connectedSortable2 li input:checked").map(function() {return jQuery(this).val();}).toArray())+`;
|
382 |
var languages = `+JSON.stringify((function(){var langs = [], selected_lang_codes = jQuery(".connectedSortable2 li input:checked").map(function() {return jQuery(this).val();}).toArray();for(var key in selected_lang_codes)langs.push(gt_lang_array[selected_lang_codes[key]]);return langs;})())+`;
|
383 |
var us_flag = `+(jQuery('#alt_us:checked').length ? 'true' : 'false')+`;
|
|
|
384 |
var br_flag = `+(jQuery('#alt_br:checked').length ? 'true' : 'false')+`;
|
385 |
var mx_flag = `+(jQuery('#alt_mx:checked').length ? 'true' : 'false')+`;
|
|
|
386 |
|
387 |
var count = language_codes.length, r0 = 55, r = r0, d = 34, cntpc = 12, nc = 0, m = 1.75;
|
388 |
cntpc = 2 * Math.PI * r0 / 34;
|
@@ -454,10 +460,14 @@ function hideGSatelites($) {
|
|
454 |
|
455 |
if(default_language == 'en' && jQuery('#alt_us:checked').length)
|
456 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-us.png" height="16" width="16" alt="en" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
|
|
|
|
457 |
else if(default_language == 'pt' && jQuery('#alt_br:checked').length)
|
458 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/pt-br.png" height="16" width="16" alt="pt" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
459 |
else if(default_language == 'es' && jQuery('#alt_mx:checked').length)
|
460 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/es-mx.png" height="16" width="16" alt="es" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
|
|
|
|
461 |
else
|
462 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/'+default_language+'.png" height="16" width="16" alt="'+default_language+'" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
463 |
|
@@ -493,10 +503,14 @@ function hideGSatelites($) {
|
|
493 |
|
494 |
if(lang == 'en' && jQuery('#alt_us:checked').length)
|
495 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-us.png" height="16" width="16" alt="en" /> '+lang_name+'</a>';
|
|
|
|
|
496 |
else if(lang == 'pt' && jQuery('#alt_br:checked').length)
|
497 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/pt-br.png" height="16" width="16" alt="pt" /> '+lang_name+'</a>';
|
498 |
else if(lang == 'es' && jQuery('#alt_mx:checked').length)
|
499 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/es-mx.png" height="16" width="16" alt="es" /> '+lang_name+'</a>';
|
|
|
|
|
500 |
else
|
501 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/'+lang+'.png" height="16" width="16" alt="'+lang+'" /> '+lang_name+'</a>';
|
502 |
|
@@ -918,9 +932,11 @@ foreach($alt_flags as $flag)
|
|
918 |
</tr>
|
919 |
<tr id="alternative_flags_option" style="display:none;">
|
920 |
<td class="option_name" colspan="2"><?php _e('Alternative flags', 'gtranslate'); ?>:<br /><br />
|
921 |
-
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_us" name="alt_flags[]" value="us"><label for="alt_us"><?php _e('USA flag', 'gtranslate');
|
922 |
-
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="
|
923 |
-
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="
|
|
|
|
|
924 |
</td>
|
925 |
</tr>
|
926 |
<tr id="line_break_option" style="display:none;">
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: https://gtranslate.io/?xyz=998
|
5 |
Description: Makes your website <strong>multilingual</strong> and available to the world using Google Translate. For support visit <a href="https://wordpress.org/support/plugin/gtranslate">GTranslate Support</a>.
|
6 |
+
Version: 2.8.10
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: https://gtranslate.io
|
9 |
Text Domain: gtranslate
|
290 |
if(widget_look == 'flags' || widget_look == 'flags_dropdown' || widget_look == 'flags_name' || widget_look == 'flags_code') {
|
291 |
if(lang == 'en' && jQuery('#alt_us:checked').length)
|
292 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/en-us.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
293 |
+
else if(lang == 'en' && jQuery('#alt_ca:checked').length)
|
294 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/en-ca.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
295 |
else if(lang == 'pt' && jQuery('#alt_br:checked').length)
|
296 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/pt-br.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
297 |
else if(lang == 'es' && jQuery('#alt_mx:checked').length)
|
298 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/es-mx.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
299 |
+
else if(lang == 'fr' && jQuery('#alt_qc:checked').length)
|
300 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/fr-qc.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
301 |
else
|
302 |
widget_preview += '<img src="{$wp_plugin_url}/flags/'+flag_size+'/'+lang+'.png" height="'+flag_size+'" width="'+flag_size+'" alt="'+lang_name+'" />';
|
303 |
}
|
385 |
var language_codes = `+JSON.stringify(jQuery(".connectedSortable2 li input:checked").map(function() {return jQuery(this).val();}).toArray())+`;
|
386 |
var languages = `+JSON.stringify((function(){var langs = [], selected_lang_codes = jQuery(".connectedSortable2 li input:checked").map(function() {return jQuery(this).val();}).toArray();for(var key in selected_lang_codes)langs.push(gt_lang_array[selected_lang_codes[key]]);return langs;})())+`;
|
387 |
var us_flag = `+(jQuery('#alt_us:checked').length ? 'true' : 'false')+`;
|
388 |
+
var ca_flag = `+(jQuery('#alt_ca:checked').length ? 'true' : 'false')+`;
|
389 |
var br_flag = `+(jQuery('#alt_br:checked').length ? 'true' : 'false')+`;
|
390 |
var mx_flag = `+(jQuery('#alt_mx:checked').length ? 'true' : 'false')+`;
|
391 |
+
var qc_flag = `+(jQuery('#alt_qc:checked').length ? 'true' : 'false')+`;
|
392 |
|
393 |
var count = language_codes.length, r0 = 55, r = r0, d = 34, cntpc = 12, nc = 0, m = 1.75;
|
394 |
cntpc = 2 * Math.PI * r0 / 34;
|
460 |
|
461 |
if(default_language == 'en' && jQuery('#alt_us:checked').length)
|
462 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-us.png" height="16" width="16" alt="en" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
463 |
+
else if(default_language == 'en' && jQuery('#alt_ca:checked').length)
|
464 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-ca.png" height="16" width="16" alt="en" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
465 |
else if(default_language == 'pt' && jQuery('#alt_br:checked').length)
|
466 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/pt-br.png" height="16" width="16" alt="pt" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
467 |
else if(default_language == 'es' && jQuery('#alt_mx:checked').length)
|
468 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/es-mx.png" height="16" width="16" alt="es" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
469 |
+
else if(default_language == 'fr' && jQuery('#alt_qc:checked').length)
|
470 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-qc.png" height="16" width="16" alt="en" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
471 |
else
|
472 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/'+default_language+'.png" height="16" width="16" alt="'+default_language+'" /> '+gt_lang_array[default_language]+'</a>'+new_line;
|
473 |
|
503 |
|
504 |
if(lang == 'en' && jQuery('#alt_us:checked').length)
|
505 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-us.png" height="16" width="16" alt="en" /> '+lang_name+'</a>';
|
506 |
+
else if(lang == 'en' && jQuery('#alt_ca:checked').length)
|
507 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-ca.png" height="16" width="16" alt="en" /> '+lang_name+'</a>';
|
508 |
else if(lang == 'pt' && jQuery('#alt_br:checked').length)
|
509 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/pt-br.png" height="16" width="16" alt="pt" /> '+lang_name+'</a>';
|
510 |
else if(lang == 'es' && jQuery('#alt_mx:checked').length)
|
511 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/es-mx.png" height="16" width="16" alt="es" /> '+lang_name+'</a>';
|
512 |
+
else if(lang == 'fr' && jQuery('#alt_qc:checked').length)
|
513 |
+
widget_preview += '<img src="{$wp_plugin_url}/flags/16/en-qc.png" height="16" width="16" alt="en" /> '+lang_name+'</a>';
|
514 |
else
|
515 |
widget_preview += '<img src="{$wp_plugin_url}/flags/16/'+lang+'.png" height="16" width="16" alt="'+lang+'" /> '+lang_name+'</a>';
|
516 |
|
932 |
</tr>
|
933 |
<tr id="alternative_flags_option" style="display:none;">
|
934 |
<td class="option_name" colspan="2"><?php _e('Alternative flags', 'gtranslate'); ?>:<br /><br />
|
935 |
+
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_us" name="alt_flags[]" value="us"><label for="alt_us"><?php _e('USA flag', 'gtranslate'); ?> (<?php _e('English', 'gtranslate'); ?>)</label><br />
|
936 |
+
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_ca" name="alt_flags[]" value="ca"><label for="alt_ca"><?php _e('Canada flag', 'gtranslate'); ?> (<?php _e('English', 'gtranslate'); ?>)</label><br />
|
937 |
+
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_br" name="alt_flags[]" value="br"><label for="alt_br"><?php _e('Brazil flag', 'gtranslate'); ?> (<?php _e('Portuguese', 'gtranslate'); ?>)</label><br />
|
938 |
+
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_mx" name="alt_flags[]" value="mx"><label for="alt_mx"><?php _e('Mexico flag', 'gtranslate'); ?> (<?php _e('Spanish', 'gtranslate'); ?>)</label><br />
|
939 |
+
<input type="checkbox" onclick="RefreshDoWidgetCode()" onchange="RefreshDoWidgetCode()" id="alt_qc" name="alt_flags[]" value="qc"><label for="alt_qc"><?php _e('Quebec flag', 'gtranslate'); ?> (<?php _e('French', 'gtranslate'); ?>)</label><br />
|
940 |
</td>
|
941 |
</tr>
|
942 |
<tr id="line_break_option" style="display:none;">
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Author: Edvard Ananyan
|
|
4 |
Tags: translation proxy, localization, translate, translation, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig, polylang, qtranslate, transposh, wpml, l18n
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
@@ -52,7 +52,7 @@ Please check our [FAQ](https://gtranslate.io/?xyz=998#faq) to get quick answers.
|
|
52 |
**Edit Translations Demo (paid)**
|
53 |
[youtube https://www.youtube.com/watch?v=YwSy3VtQx3I]
|
54 |
|
55 |
-
Keywords: polylang, prisna, gts, localize, lingotek, smartling, qtranslate, loco translate, loco, google website translator, translate wordpress, translate, transposh, global translator, machine translate, wp translate, bilingual, multilanguage, multilingual, l18n
|
56 |
|
57 |
== Installation ==
|
58 |
|
@@ -520,6 +520,9 @@ You need to go to the language you want to edit, for instance, French: http://do
|
|
520 |
|
521 |
== Changelog ==
|
522 |
|
|
|
|
|
|
|
523 |
= 2.8.9 =
|
524 |
* Major changes
|
525 |
* Added missing flags, so all 104 languages have flags now
|
4 |
Tags: translation proxy, localization, translate, translation, google translate, language, multilingual, multilanguage, bilingual, tradurre, traducir, traduire, traduzione, ubersetzung, mehrsprachig, oversette, oversatta, vertaling, vertaler, meertalig, polylang, qtranslate, transposh, wpml, l18n
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.8.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Donate link: https://gtranslate.io/?xyz=998#pricing
|
52 |
**Edit Translations Demo (paid)**
|
53 |
[youtube https://www.youtube.com/watch?v=YwSy3VtQx3I]
|
54 |
|
55 |
+
Keywords: polylang, prisna, gts, localize, lingotek, smartling, qtranslate, loco translate, loco, google website translator, translate wordpress, translate, transposh, global translator, machine translate, wp translate, bilingual, multilanguage, multilingual, l18n, quebec, canada, usa, brazil, mexico
|
56 |
|
57 |
== Installation ==
|
58 |
|
520 |
|
521 |
== Changelog ==
|
522 |
|
523 |
+
= 2.8.10 =
|
524 |
+
* Added Quebec and Canada alternative flags for French and English
|
525 |
+
|
526 |
= 2.8.9 =
|
527 |
* Major changes
|
528 |
* Added missing flags, so all 104 languages have flags now
|
screenshot-1.jpg
DELETED
Binary file
|
screenshot-2.jpg
DELETED
Binary file
|
screenshot-3.jpg
DELETED
Binary file
|