Weglot Translate – Translate your WP website - Version 3.1.9

Version Description

(06/08/2020) = * Add flag choice for ZH and TW * Update plugin translation files * Translate Iframe SRC as external link * Fix: Custom URL links (empty base in correspondence table / traning slash) * Fix: Remove "!important" CSS properties on AMP

Download this release

Release Info

Developer remyb92
Plugin Icon 128x128 Weglot Translate – Translate your WP website
Version 3.1.9
Comparing to
See all releases

Code changes from version 3.1.8 to 3.1.9

app/javascripts/settings/admin-change-country.js CHANGED
@@ -11,6 +11,8 @@ const init_admin_change_country = function() {
11
  var pt_flags = new Array();
12
  var fr_flags = new Array();
13
  var ar_flags = new Array();
 
 
14
 
15
  en_flags[1] = [3570, 7841, 48, 2712];
16
  en_flags[2] = [3720, 449, 3048, 4440];
@@ -61,19 +63,29 @@ const init_admin_change_country = function() {
61
  ar_flags[13] = [600, 8225, 120, 1272];
62
  ar_flags[14] = [660, 5569, 840, 576];
63
 
 
 
 
 
 
 
64
  var enval = $("select.flag-en-type").val();
65
  var esval = $("select.flag-es-type").val();
66
  var ptval = $("select.flag-pt-type").val();
67
  var frval = $("select.flag-fr-type").val();
68
  var arval = $("select.flag-ar-type").val();
 
 
69
 
70
  var en_style = enval <= 0 ? "" : ".weglot-flags.en > a:before, .weglot-flags.en > span:before { background-position: -" + en_flags[enval][0] + "px 0 !important; } .weglot-flags.flag-1.en > a:before, .weglot-flags.flag-1.en > span:before { background-position: -" + en_flags[enval][1] + "px 0 !important; } .weglot-flags.flag-2.en > a:before, .weglot-flags.flag-2.en > span:before { background-position: -" + en_flags[enval][2] + "px 0 !important; } .weglot-flags.flag-3.en > a:before, .weglot-flags.flag-3.en > span:before { background-position: -" + en_flags[enval][3] + "px 0 !important; } ";
71
  var es_style = esval <= 0 ? "" : ".weglot-flags.es > a:before, .weglot-flags.es > span:before { background-position: -" + es_flags[esval][0] + "px 0 !important; } .weglot-flags.flag-1.es > a:before, .weglot-flags.flag-1.es > span:before { background-position: -" + es_flags[esval][1] + "px 0 !important; } .weglot-flags.flag-2.es > a:before, .weglot-flags.flag-2.es > span:before { background-position: -" + es_flags[esval][2] + "px 0 !important; } .weglot-flags.flag-3.es > a:before, .weglot-flags.flag-3.es > span:before { background-position: -" + es_flags[esval][3] + "px 0 !important; } ";
72
  var pt_style = ptval <= 0 ? "" : ".weglot-flags.pt > a:before, .weglot-flags.pt > span:before { background-position: -" + pt_flags[ptval][0] + "px 0 !important; } .weglot-flags.flag-1.pt > a:before, .weglot-flags.flag-1.pt > span:before { background-position: -" + pt_flags[ptval][1] + "px 0 !important; } .weglot-flags.flag-2.pt > a:before, .weglot-flags.flag-2.pt > span:before { background-position: -" + pt_flags[ptval][2] + "px 0 !important; } .weglot-flags.flag-3.pt > a:before, .weglot-flags.flag-3.pt > span:before { background-position: -" + pt_flags[ptval][3] + "px 0 !important; } ";
73
  var fr_style = frval <= 0 ? "" : ".weglot-flags.fr > a:before, .weglot-flags.fr > span:before { background-position: -" + fr_flags[frval][0] + "px 0 !important; } .weglot-flags.flag-1.fr > a:before, .weglot-flags.flag-1.fr > span:before { background-position: -" + fr_flags[frval][1] + "px 0 !important; } .weglot-flags.flag-2.fr > a:before, .weglot-flags.flag-2.fr > span:before { background-position: -" + fr_flags[frval][2] + "px 0 !important; } .weglot-flags.flag-3.fr > a:before, .weglot-flags.flag-3.fr > span:before { background-position: -" + fr_flags[frval][3] + "px 0 !important; } ";
74
  var ar_style = arval <= 0 ? "" : ".weglot-flags.ar > a:before, .weglot-flags.ar > span:before { background-position: -" + ar_flags[arval][0] + "px 0 !important; } .weglot-flags.flag-1.ar > a:before, .weglot-flags.flag-1.ar > span:before { background-position: -" + ar_flags[arval][1] + "px 0 !important; } .weglot-flags.flag-2.ar > a:before, .weglot-flags.flag-2.ar > span:before { background-position: -" + ar_flags[arval][2] + "px 0 !important; } .weglot-flags.flag-3.ar > a:before, .weglot-flags.flag-3.ar > span:before { background-position: -" + ar_flags[arval][3] + "px 0 !important; } ";
 
 
75
 
76
- $("#flag_css, #weglot-css-flag-css").text(en_style + es_style + pt_style + fr_style + ar_style);
77
  }
78
 
79
  const execute = () => {
@@ -84,12 +96,17 @@ const init_admin_change_country = function() {
84
  }
85
  );
86
 
87
- $("select.flag-en-type, select.flag-es-type, select.flag-pt-type, select.flag-fr-type, select.flag-ar-type").on('change',
88
  function () {
89
  refresh_flag_css()
90
  }
91
  );
92
 
 
 
 
 
 
93
  };
94
 
95
  document.addEventListener("DOMContentLoaded", () => {
11
  var pt_flags = new Array();
12
  var fr_flags = new Array();
13
  var ar_flags = new Array();
14
+ var tw_flags = new Array();
15
+ var zh_flags = new Array();
16
 
17
  en_flags[1] = [3570, 7841, 48, 2712];
18
  en_flags[2] = [3720, 449, 3048, 4440];
63
  ar_flags[13] = [600, 8225, 120, 1272];
64
  ar_flags[14] = [660, 5569, 840, 576];
65
 
66
+ tw_flags[1] = [3690, 1505, 2592, 3240]; // China
67
+ tw_flags[2] = [3600, 3233, 2112, 48]; // Hong Kong
68
+
69
+ zh_flags[1] = [2970, 6369, 3408, 4008]; // Taiwan
70
+ zh_flags[2] = [3600, 3233, 2112, 48]; // Hong Kong
71
+
72
  var enval = $("select.flag-en-type").val();
73
  var esval = $("select.flag-es-type").val();
74
  var ptval = $("select.flag-pt-type").val();
75
  var frval = $("select.flag-fr-type").val();
76
  var arval = $("select.flag-ar-type").val();
77
+ var twval = $("select.flag-tw-type").val();
78
+ var zhval = $("select.flag-zh-type").val();
79
 
80
  var en_style = enval <= 0 ? "" : ".weglot-flags.en > a:before, .weglot-flags.en > span:before { background-position: -" + en_flags[enval][0] + "px 0 !important; } .weglot-flags.flag-1.en > a:before, .weglot-flags.flag-1.en > span:before { background-position: -" + en_flags[enval][1] + "px 0 !important; } .weglot-flags.flag-2.en > a:before, .weglot-flags.flag-2.en > span:before { background-position: -" + en_flags[enval][2] + "px 0 !important; } .weglot-flags.flag-3.en > a:before, .weglot-flags.flag-3.en > span:before { background-position: -" + en_flags[enval][3] + "px 0 !important; } ";
81
  var es_style = esval <= 0 ? "" : ".weglot-flags.es > a:before, .weglot-flags.es > span:before { background-position: -" + es_flags[esval][0] + "px 0 !important; } .weglot-flags.flag-1.es > a:before, .weglot-flags.flag-1.es > span:before { background-position: -" + es_flags[esval][1] + "px 0 !important; } .weglot-flags.flag-2.es > a:before, .weglot-flags.flag-2.es > span:before { background-position: -" + es_flags[esval][2] + "px 0 !important; } .weglot-flags.flag-3.es > a:before, .weglot-flags.flag-3.es > span:before { background-position: -" + es_flags[esval][3] + "px 0 !important; } ";
82
  var pt_style = ptval <= 0 ? "" : ".weglot-flags.pt > a:before, .weglot-flags.pt > span:before { background-position: -" + pt_flags[ptval][0] + "px 0 !important; } .weglot-flags.flag-1.pt > a:before, .weglot-flags.flag-1.pt > span:before { background-position: -" + pt_flags[ptval][1] + "px 0 !important; } .weglot-flags.flag-2.pt > a:before, .weglot-flags.flag-2.pt > span:before { background-position: -" + pt_flags[ptval][2] + "px 0 !important; } .weglot-flags.flag-3.pt > a:before, .weglot-flags.flag-3.pt > span:before { background-position: -" + pt_flags[ptval][3] + "px 0 !important; } ";
83
  var fr_style = frval <= 0 ? "" : ".weglot-flags.fr > a:before, .weglot-flags.fr > span:before { background-position: -" + fr_flags[frval][0] + "px 0 !important; } .weglot-flags.flag-1.fr > a:before, .weglot-flags.flag-1.fr > span:before { background-position: -" + fr_flags[frval][1] + "px 0 !important; } .weglot-flags.flag-2.fr > a:before, .weglot-flags.flag-2.fr > span:before { background-position: -" + fr_flags[frval][2] + "px 0 !important; } .weglot-flags.flag-3.fr > a:before, .weglot-flags.flag-3.fr > span:before { background-position: -" + fr_flags[frval][3] + "px 0 !important; } ";
84
  var ar_style = arval <= 0 ? "" : ".weglot-flags.ar > a:before, .weglot-flags.ar > span:before { background-position: -" + ar_flags[arval][0] + "px 0 !important; } .weglot-flags.flag-1.ar > a:before, .weglot-flags.flag-1.ar > span:before { background-position: -" + ar_flags[arval][1] + "px 0 !important; } .weglot-flags.flag-2.ar > a:before, .weglot-flags.flag-2.ar > span:before { background-position: -" + ar_flags[arval][2] + "px 0 !important; } .weglot-flags.flag-3.ar > a:before, .weglot-flags.flag-3.ar > span:before { background-position: -" + ar_flags[arval][3] + "px 0 !important; } ";
85
+ var tw_style = twval <= 0 ? "" : ".weglot-flags.tw > a:before, .weglot-flags.tw > span:before { background-position: -" + tw_flags[twval][0] + "px 0 !important; } .weglot-flags.flag-1.tw > a:before, .weglot-flags.flag-1.tw > span:before { background-position: -" + tw_flags[twval][1] + "px 0 !important; } .weglot-flags.flag-2.tw > a:before, .weglot-flags.flag-2.tw > span:before { background-position: -" + tw_flags[twval][2] + "px 0 !important; } .weglot-flags.flag-3.tw > a:before, .weglot-flags.flag-3.tw > span:before { background-position: -" + tw_flags[twval][3] + "px 0 !important; } ";
86
+ var zh_style = zhval <= 0 ? "" : ".weglot-flags.zh > a:before, .weglot-flags.zh > span:before { background-position: -" + zh_flags[zhval][0] + "px 0 !important; } .weglot-flags.flag-1.zh > a:before, .weglot-flags.flag-1.zh > span:before { background-position: -" + zh_flags[zhval][1] + "px 0 !important; } .weglot-flags.flag-2.zh > a:before, .weglot-flags.flag-2.zh > span:before { background-position: -" + zh_flags[zhval][2] + "px 0 !important; } .weglot-flags.flag-3.zh > a:before, .weglot-flags.flag-3.zh > span:before { background-position: -" + zh_flags[zhval][3] + "px 0 !important; } ";
87
 
88
+ $("#flag_css, #weglot-css-flag-css").text(en_style + es_style + pt_style + fr_style + ar_style + tw_style + zh_style);
89
  }
90
 
91
  const execute = () => {
96
  }
97
  );
98
 
99
+ $("select.flag-en-type, select.flag-es-type, select.flag-pt-type, select.flag-fr-type, select.flag-ar-type, select.flag-tw-type, select.flag-zh-type").on('change',
100
  function () {
101
  refresh_flag_css()
102
  }
103
  );
104
 
105
+ var flag_css = $("#flag_css").text();
106
+ if (flag_css.trim()) {
107
+ $("#weglot-css-flag-css").text(flag_css);
108
+ }
109
+
110
  };
111
 
112
  document.addEventListener("DOMContentLoaded", () => {
dist/admin-js.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o(o.s=5)}([function(e,t){Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),o=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var a=arguments[1],n=0;n<o;){var l=t[n];if(e.call(a,l,n,t))return l;n++}},configurable:!0,writable:!0})},function(e,t){Array.prototype.filter||(Array.prototype.filter=function(e,t){"use strict";if("Function"!=typeof e&&"function"!=typeof e||!this)throw new TypeError;var o=this.length>>>0,a=new Array(o),n=this,l=0,r=-1;if(void 0===t)for(;++r!==o;)r in this&&e(n[r],r,n)&&(a[l++]=n[r]);else for(;++r!==o;)r in this&&e.call(t,n[r],r,n)&&(a[l++]=n[r]);return a.length=l,a})},,,,function(e,t,o){"use strict";o.r(t);var a=function(){const e=jQuery,t=()=>weglot_languages.available.filter(e=>e.code!==weglot_languages.original);let o;const a=()=>{let a=e("#original_language").val();e("#original_language").on("change",function(t){const n=a,l=a;a=t.target.value,o[0].selectize.removeOption(a);const r=weglot_languages.available.find(e=>e.code===l),s=weglot_languages.available.find(e=>e.code===a);o[0].selectize.addOption(r);const c=e("#is_fullname").is(":checked");let i="";e("#with_name").is(":checked")&&(i=c?s.local:s.code.toUpperCase()),e(".wgcurrent.wg-li").removeClass(n).addClass(a).attr("data-code-language",a).find("span").html(i)}),o=e(".weglot-select-destination").selectize({delimiter:"|",persist:!1,valueField:"code",labelField:"local",searchField:["code","english","local"],sortField:[{field:"english",direction:"asc"}],maxItems:weglot_languages.limit,plugins:["remove_button","drag_drop"],options:t(),render:{option:function(e,t){return'<div class="weglot__choice__language"><span class="weglot__choice__language--english">'+t(e.english)+'</span><span class="weglot__choice__language--local">'+t(e.local)+" ["+t(e.code)+"]</span></div>"}}}).on("change",t=>{const a=o[0].selectize.getValue(),n=e("#li-button-tpl");if(0===n.length)return;const l=e("#is_fullname").is(":checked"),r=e("#with_name").is(":checked"),s=e("#with_flags").is(":checked");let c="";s&&(c="weglot-flags");let i="";a.forEach(e=>{const t=weglot_languages.available.find(t=>t.code===e);let o="";r&&(o=l?t.local:e.toUpperCase()),i+=n.html().replace("{LABEL_LANGUAGE}",o).replace(new RegExp("{CODE_LANGUAGE}","g"),e).replace("{CLASSES}",c)}),e(".country-selector ul").html(i)}),window.addEventListener("weglotCheckApi",e=>{let t=1e3;const a=e.detail.plan;a<=0||weglot_languages.plans.starter_free.ids.indexOf(a)>=0?t=weglot_languages.plans.starter_free.limit_language:weglot_languages.plans.business.ids.indexOf(a)>=0&&(t=weglot_languages.plans.business.limit_language),o[0].selectize.settings.maxItems=t})};document.addEventListener("DOMContentLoaded",()=>{a()})};var n=function(){const e=jQuery;document.addEventListener("DOMContentLoaded",()=>{e("#weglot-box-first-settings .weglot-btn-close").on("click",function(t){t.preventDefault(),e("#weglot-box-first-settings").hide()})})};var l=function(){const e=()=>{document.querySelector("#tpl-exclusion-url");const e=document.querySelector("#tpl-exclusion-block"),t=document.querySelector("#container-exclude_blocks");function o(e){e.preventDefault(),this.parentNode.remove()}document.querySelector("#js-add-exclude-block")&&document.querySelector("#js-add-exclude-block").addEventListener("click",a=>{a.preventDefault(),t.insertAdjacentHTML("beforeend",e.innerHTML),document.querySelector("#container-exclude_blocks .item-exclude:last-child .js-btn-remove-exclude").addEventListener("click",o)}),document.querySelectorAll(".js-btn-remove").forEach(e=>{e.addEventListener("click",o)})};document.addEventListener("DOMContentLoaded",()=>{e()})};var r=function(){const e=jQuery,t=()=>{let t=e("#type_flags option:selected").data("value"),o=[];o.push(e(".country-selector label").data("code-language")),e(".country-selector li").each((t,a)=>{o.push(e(a).data("code-language"))});const a=weglot_languages.available.filter(e=>o.indexOf(e.code)>=0);e("#weglot-css-inline").text(weglot_css.inline),e("#is_dropdown").on("change",function(){e(".country-selector").toggleClass("weglot-inline"),e(".country-selector").toggleClass("weglot-dropdown")}),e("#with_flags").on("change",function(){e(".country-selector label, .country-selector li").toggleClass("weglot-flags")}),e("#type_flags").on("change",function(o){e(".country-selector label, .country-selector li").removeClass(`flag-${t}`);const a=e(":selected",this).data("value");e(".country-selector label, .country-selector li").addClass(`flag-${a}`),t=a});const n=()=>{const t=a.find(t=>t.code===e(".country-selector label").data("code-language")),o=e("#is_fullname").is(":checked"),n=o?t.local:t.code.toUpperCase();e(".country-selector label a, .country-selector label span").text(n),e(".country-selector li").each((t,n)=>{const l=a.find(t=>t.code===e(n).data("code-language")),r=o?l.local:l.code.toUpperCase();e(n).find("a").text(r)})};e("#with_name").on("change",function(t){t.target.checked?n():(e(".country-selector label a, .country-selector label span").text(""),e(".country-selector li a, .country-selector li span").each((t,o)=>{e(o).text("")}))}),e("#is_fullname").on("change",function(t){if(e("#with_name").is(":checked"))if(t.target.checked)n();else{const t=a.find(t=>t.code===e(".country-selector label").data("code-language"));e(".country-selector label a, .country-selector label span").text(t.code.toUpperCase()),e(".country-selector li").each((t,o)=>{const n=a.find(t=>t.code===e(o).data("code-language"));e(o).find("a").text(n.code.toUpperCase()),e(o).find("span").text(n.code.toUpperCase())})}}),e("#override_css").on("keyup",function(t){e("#weglot-css-inline").text(t.target.value)})};document.addEventListener("DOMContentLoaded",()=>{0!==e(".weglot-preview").length&&t()})};var s=function(){const e=jQuery,t=()=>{e("#api_key_private").blur(function(){var t=e(this).val();if(0===t.length)return e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span>'),void e("#wrap-weglot #submit").prop("disabled",!0);function o(){e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span>'),e("#wrap-weglot #submit").prop("disabled",!0)}e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-ckeckkey"></span>'),e.ajax({method:"POST",url:ajaxurl,data:{action:"get_user_info",api_key:t},success:({data:t,success:a})=>{e(".weglot-keyres").remove(),a?function(t){e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-okkey"></span>'),e("#wrap-weglot #submit").prop("disabled",!1);const o=new CustomEvent("weglotCheckApi",{detail:t});window.dispatchEvent(o)}(t):o()}}).fail(function(){o()})})};document.addEventListener("DOMContentLoaded",()=>{t()})};var c=function(){jQuery;document.addEventListener("DOMContentLoaded",()=>{jQuery(document).ready(function(e){wp.codeEditor.initialize(e("#override_css"),cm_settings)})})};var i=function(){const e=jQuery;"undefined"!=typeof weglot_css&&e("#weglot-css-flag-css").text(weglot_css.flag_css);const t=()=>{e(".flag-style-openclose").on("click",function(){e(".flag-style-wrapper").toggle()}),e("select.flag-en-type, select.flag-es-type, select.flag-pt-type, select.flag-fr-type, select.flag-ar-type").on("change",function(){!function(){var t=new Array,o=new Array,a=new Array,n=new Array,l=new Array;t[1]=[3570,7841,48,2712],t[2]=[3720,449,3048,4440],t[3]=[3840,1281,2712,4224],t[4]=[3240,5217,1224,2112],t[5]=[4050,3585,1944,2496],t[6]=[2340,3457,2016,2016],o[1]=[4320,4641,3144,3552],o[2]=[3750,353,2880,4656],o[3]=[4200,1601,2568,3192],o[4]=[3990,5793,1032,2232],o[5]=[5460,897,4104,3120],o[6]=[3810,7905,216,3888],o[7]=[3630,8065,192,2376],o[8]=[3780,1473,2496,4104],o[9]=[6120,2145,4680,2568],o[10]=[4440,3009,3240,1176],o[11]=[5280,1825,3936,2976],o[12]=[4770,2081,3624,1008],o[13]=[4080,3201,2160,2544],o[14]=[4590,5761,3432,624],o[15]=[4350,2209,3360,2688],o[16]=[5610,5249,3168,528],o[17]=[5070,1729,3792,2952],o[18]=[6870,5953,96,3408],o[19]=[4020,5697,1056,1224],a[1]=[1740,5921,528,3504],n[1]=[2760,736,2856,4416],n[2]=[3840,1280,2712,4224],n[3]=[5700,7201,5016,2400],n[4]=[2220,4160,1632,1944],l[1]=[1830,129,3096,5664],l[2]=[5100,2177,3840,2904],l[3]=[4890,3425,3648,2136],l[4]=[1320,3681,1896,4080],l[5]=[1260,3841,1824,1200],l[6]=[1020,3969,1608,312],l[7]=[4800,4065,3600,72],l[8]=[4710,4865,3504,480],l[9]=[6720,5984,5112,3792],l[10]=[4500,7233,3288,1800],l[11]=[720,7522,384,3936],l[12]=[690,7745,336,1104],l[13]=[600,8225,120,1272],l[14]=[660,5569,840,576];var r=e("select.flag-en-type").val(),s=e("select.flag-es-type").val(),c=e("select.flag-pt-type").val(),i=e("select.flag-fr-type").val(),g=e("select.flag-ar-type").val(),f=r<=0?"":".weglot-flags.en > a:before, .weglot-flags.en > span:before { background-position: -"+t[r][0]+"px 0 !important; } .weglot-flags.flag-1.en > a:before, .weglot-flags.flag-1.en > span:before { background-position: -"+t[r][1]+"px 0 !important; } .weglot-flags.flag-2.en > a:before, .weglot-flags.flag-2.en > span:before { background-position: -"+t[r][2]+"px 0 !important; } .weglot-flags.flag-3.en > a:before, .weglot-flags.flag-3.en > span:before { background-position: -"+t[r][3]+"px 0 !important; } ",d=s<=0?"":".weglot-flags.es > a:before, .weglot-flags.es > span:before { background-position: -"+o[s][0]+"px 0 !important; } .weglot-flags.flag-1.es > a:before, .weglot-flags.flag-1.es > span:before { background-position: -"+o[s][1]+"px 0 !important; } .weglot-flags.flag-2.es > a:before, .weglot-flags.flag-2.es > span:before { background-position: -"+o[s][2]+"px 0 !important; } .weglot-flags.flag-3.es > a:before, .weglot-flags.flag-3.es > span:before { background-position: -"+o[s][3]+"px 0 !important; } ",u=c<=0?"":".weglot-flags.pt > a:before, .weglot-flags.pt > span:before { background-position: -"+a[c][0]+"px 0 !important; } .weglot-flags.flag-1.pt > a:before, .weglot-flags.flag-1.pt > span:before { background-position: -"+a[c][1]+"px 0 !important; } .weglot-flags.flag-2.pt > a:before, .weglot-flags.flag-2.pt > span:before { background-position: -"+a[c][2]+"px 0 !important; } .weglot-flags.flag-3.pt > a:before, .weglot-flags.flag-3.pt > span:before { background-position: -"+a[c][3]+"px 0 !important; } ",p=i<=0?"":".weglot-flags.fr > a:before, .weglot-flags.fr > span:before { background-position: -"+n[i][0]+"px 0 !important; } .weglot-flags.flag-1.fr > a:before, .weglot-flags.flag-1.fr > span:before { background-position: -"+n[i][1]+"px 0 !important; } .weglot-flags.flag-2.fr > a:before, .weglot-flags.flag-2.fr > span:before { background-position: -"+n[i][2]+"px 0 !important; } .weglot-flags.flag-3.fr > a:before, .weglot-flags.flag-3.fr > span:before { background-position: -"+n[i][3]+"px 0 !important; } ",w=g<=0?"":".weglot-flags.ar > a:before, .weglot-flags.ar > span:before { background-position: -"+l[g][0]+"px 0 !important; } .weglot-flags.flag-1.ar > a:before, .weglot-flags.flag-1.ar > span:before { background-position: -"+l[g][1]+"px 0 !important; } .weglot-flags.flag-2.ar > a:before, .weglot-flags.flag-2.ar > span:before { background-position: -"+l[g][2]+"px 0 !important; } .weglot-flags.flag-3.ar > a:before, .weglot-flags.flag-3.ar > span:before { background-position: -"+l[g][3]+"px 0 !important; } ";e("#flag_css, #weglot-css-flag-css").text(f+d+u+p+w)}()})};document.addEventListener("DOMContentLoaded",()=>{t()})};var g=function(){jQuery;document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector("#private_mode");e&&0!=e.length&&(document.querySelector("#private_mode").addEventListener("change",function(e){document.querySelectorAll(".private-mode-lang--input").forEach(t=>{t.checked=e.target.checked})}),document.querySelectorAll(".private-mode-lang--input").forEach(e=>{e.addEventListener("change",function(e){0===document.querySelectorAll(".private-mode-lang--input:checked").length&&(document.querySelector("#private_mode").checked=!1)})}))})};o(0),o(1);a(),l(),n(),r(),s(),c(),i(),g()}]);
1
+ !function(e){var t={};function o(a){if(t[a])return t[a].exports;var l=t[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,o),l.l=!0,l.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(a,l,function(t){return e[t]}.bind(null,l));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o(o.s=5)}([function(e,t){Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),o=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var a=arguments[1],l=0;l<o;){var n=t[l];if(e.call(a,n,l,t))return n;l++}},configurable:!0,writable:!0})},function(e,t){Array.prototype.filter||(Array.prototype.filter=function(e,t){"use strict";if("Function"!=typeof e&&"function"!=typeof e||!this)throw new TypeError;var o=this.length>>>0,a=new Array(o),l=this,n=0,r=-1;if(void 0===t)for(;++r!==o;)r in this&&e(l[r],r,l)&&(a[n++]=l[r]);else for(;++r!==o;)r in this&&e.call(t,l[r],r,l)&&(a[n++]=l[r]);return a.length=n,a})},,,,function(e,t,o){"use strict";o.r(t);var a=function(){const e=jQuery,t=()=>weglot_languages.available.filter(e=>e.code!==weglot_languages.original);let o;const a=()=>{let a=e("#original_language").val();e("#original_language").on("change",function(t){const l=a,n=a;a=t.target.value,o[0].selectize.removeOption(a);const r=weglot_languages.available.find(e=>e.code===n),s=weglot_languages.available.find(e=>e.code===a);o[0].selectize.addOption(r);const c=e("#is_fullname").is(":checked");let g="";e("#with_name").is(":checked")&&(g=c?s.local:s.code.toUpperCase()),e(".wgcurrent.wg-li").removeClass(l).addClass(a).attr("data-code-language",a).find("span").html(g)}),o=e(".weglot-select-destination").selectize({delimiter:"|",persist:!1,valueField:"code",labelField:"local",searchField:["code","english","local"],sortField:[{field:"english",direction:"asc"}],maxItems:weglot_languages.limit,plugins:["remove_button","drag_drop"],options:t(),render:{option:function(e,t){return'<div class="weglot__choice__language"><span class="weglot__choice__language--english">'+t(e.english)+'</span><span class="weglot__choice__language--local">'+t(e.local)+" ["+t(e.code)+"]</span></div>"}}}).on("change",t=>{const a=o[0].selectize.getValue(),l=e("#li-button-tpl");if(0===l.length)return;const n=e("#is_fullname").is(":checked"),r=e("#with_name").is(":checked"),s=e("#with_flags").is(":checked");let c="";s&&(c="weglot-flags");let g="";a.forEach(e=>{const t=weglot_languages.available.find(t=>t.code===e);let o="";r&&(o=n?t.local:e.toUpperCase()),g+=l.html().replace("{LABEL_LANGUAGE}",o).replace(new RegExp("{CODE_LANGUAGE}","g"),e).replace("{CLASSES}",c)}),e(".country-selector ul").html(g)}),window.addEventListener("weglotCheckApi",e=>{let t=1e3;const a=e.detail.plan;a<=0||weglot_languages.plans.starter_free.ids.indexOf(a)>=0?t=weglot_languages.plans.starter_free.limit_language:weglot_languages.plans.business.ids.indexOf(a)>=0&&(t=weglot_languages.plans.business.limit_language),o[0].selectize.settings.maxItems=t})};document.addEventListener("DOMContentLoaded",()=>{a()})};var l=function(){const e=jQuery;document.addEventListener("DOMContentLoaded",()=>{e("#weglot-box-first-settings .weglot-btn-close").on("click",function(t){t.preventDefault(),e("#weglot-box-first-settings").hide()})})};var n=function(){const e=()=>{document.querySelector("#tpl-exclusion-url");const e=document.querySelector("#tpl-exclusion-block"),t=document.querySelector("#container-exclude_blocks");function o(e){e.preventDefault(),this.parentNode.remove()}document.querySelector("#js-add-exclude-block")&&document.querySelector("#js-add-exclude-block").addEventListener("click",a=>{a.preventDefault(),t.insertAdjacentHTML("beforeend",e.innerHTML),document.querySelector("#container-exclude_blocks .item-exclude:last-child .js-btn-remove-exclude").addEventListener("click",o)}),document.querySelectorAll(".js-btn-remove").forEach(e=>{e.addEventListener("click",o)})};document.addEventListener("DOMContentLoaded",()=>{e()})};var r=function(){const e=jQuery,t=()=>{let t=e("#type_flags option:selected").data("value"),o=[];o.push(e(".country-selector label").data("code-language")),e(".country-selector li").each((t,a)=>{o.push(e(a).data("code-language"))});const a=weglot_languages.available.filter(e=>o.indexOf(e.code)>=0);e("#weglot-css-inline").text(weglot_css.inline),e("#is_dropdown").on("change",function(){e(".country-selector").toggleClass("weglot-inline"),e(".country-selector").toggleClass("weglot-dropdown")}),e("#with_flags").on("change",function(){e(".country-selector label, .country-selector li").toggleClass("weglot-flags")}),e("#type_flags").on("change",function(o){e(".country-selector label, .country-selector li").removeClass(`flag-${t}`);const a=e(":selected",this).data("value");e(".country-selector label, .country-selector li").addClass(`flag-${a}`),t=a});const l=()=>{const t=a.find(t=>t.code===e(".country-selector label").data("code-language")),o=e("#is_fullname").is(":checked"),l=o?t.local:t.code.toUpperCase();e(".country-selector label a, .country-selector label span").text(l),e(".country-selector li").each((t,l)=>{const n=a.find(t=>t.code===e(l).data("code-language")),r=o?n.local:n.code.toUpperCase();e(l).find("a").text(r)})};e("#with_name").on("change",function(t){t.target.checked?l():(e(".country-selector label a, .country-selector label span").text(""),e(".country-selector li a, .country-selector li span").each((t,o)=>{e(o).text("")}))}),e("#is_fullname").on("change",function(t){if(e("#with_name").is(":checked"))if(t.target.checked)l();else{const t=a.find(t=>t.code===e(".country-selector label").data("code-language"));e(".country-selector label a, .country-selector label span").text(t.code.toUpperCase()),e(".country-selector li").each((t,o)=>{const l=a.find(t=>t.code===e(o).data("code-language"));e(o).find("a").text(l.code.toUpperCase()),e(o).find("span").text(l.code.toUpperCase())})}}),e("#override_css").on("keyup",function(t){e("#weglot-css-inline").text(t.target.value)})};document.addEventListener("DOMContentLoaded",()=>{0!==e(".weglot-preview").length&&t()})};var s=function(){const e=jQuery,t=()=>{e("#api_key_private").blur(function(){var t=e(this).val();if(0===t.length)return e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span>'),void e("#wrap-weglot #submit").prop("disabled",!0);function o(){e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span>'),e("#wrap-weglot #submit").prop("disabled",!0)}e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-ckeckkey"></span>'),e.ajax({method:"POST",url:ajaxurl,data:{action:"get_user_info",api_key:t},success:({data:t,success:a})=>{e(".weglot-keyres").remove(),a?function(t){e(".weglot-keyres").remove(),e("#api_key_private").after('<span class="weglot-keyres weglot-okkey"></span>'),e("#wrap-weglot #submit").prop("disabled",!1);const o=new CustomEvent("weglotCheckApi",{detail:t});window.dispatchEvent(o)}(t):o()}}).fail(function(){o()})})};document.addEventListener("DOMContentLoaded",()=>{t()})};var c=function(){jQuery;document.addEventListener("DOMContentLoaded",()=>{jQuery(document).ready(function(e){wp.codeEditor.initialize(e("#override_css"),cm_settings)})})};var g=function(){const e=jQuery;"undefined"!=typeof weglot_css&&e("#weglot-css-flag-css").text(weglot_css.flag_css);const t=()=>{e(".flag-style-openclose").on("click",function(){e(".flag-style-wrapper").toggle()}),e("select.flag-en-type, select.flag-es-type, select.flag-pt-type, select.flag-fr-type, select.flag-ar-type, select.flag-tw-type, select.flag-zh-type").on("change",function(){!function(){var t=new Array,o=new Array,a=new Array,l=new Array,n=new Array,r=new Array,s=new Array;t[1]=[3570,7841,48,2712],t[2]=[3720,449,3048,4440],t[3]=[3840,1281,2712,4224],t[4]=[3240,5217,1224,2112],t[5]=[4050,3585,1944,2496],t[6]=[2340,3457,2016,2016],o[1]=[4320,4641,3144,3552],o[2]=[3750,353,2880,4656],o[3]=[4200,1601,2568,3192],o[4]=[3990,5793,1032,2232],o[5]=[5460,897,4104,3120],o[6]=[3810,7905,216,3888],o[7]=[3630,8065,192,2376],o[8]=[3780,1473,2496,4104],o[9]=[6120,2145,4680,2568],o[10]=[4440,3009,3240,1176],o[11]=[5280,1825,3936,2976],o[12]=[4770,2081,3624,1008],o[13]=[4080,3201,2160,2544],o[14]=[4590,5761,3432,624],o[15]=[4350,2209,3360,2688],o[16]=[5610,5249,3168,528],o[17]=[5070,1729,3792,2952],o[18]=[6870,5953,96,3408],o[19]=[4020,5697,1056,1224],a[1]=[1740,5921,528,3504],l[1]=[2760,736,2856,4416],l[2]=[3840,1280,2712,4224],l[3]=[5700,7201,5016,2400],l[4]=[2220,4160,1632,1944],n[1]=[1830,129,3096,5664],n[2]=[5100,2177,3840,2904],n[3]=[4890,3425,3648,2136],n[4]=[1320,3681,1896,4080],n[5]=[1260,3841,1824,1200],n[6]=[1020,3969,1608,312],n[7]=[4800,4065,3600,72],n[8]=[4710,4865,3504,480],n[9]=[6720,5984,5112,3792],n[10]=[4500,7233,3288,1800],n[11]=[720,7522,384,3936],n[12]=[690,7745,336,1104],n[13]=[600,8225,120,1272],n[14]=[660,5569,840,576],r[1]=[3690,1505,2592,3240],r[2]=[3600,3233,2112,48],s[1]=[2970,6369,3408,4008],s[2]=[3600,3233,2112,48];var c=e("select.flag-en-type").val(),g=e("select.flag-es-type").val(),i=e("select.flag-pt-type").val(),f=e("select.flag-fr-type").val(),p=e("select.flag-ar-type").val(),d=e("select.flag-tw-type").val(),u=e("select.flag-zh-type").val(),w=c<=0?"":".weglot-flags.en > a:before, .weglot-flags.en > span:before { background-position: -"+t[c][0]+"px 0 !important; } .weglot-flags.flag-1.en > a:before, .weglot-flags.flag-1.en > span:before { background-position: -"+t[c][1]+"px 0 !important; } .weglot-flags.flag-2.en > a:before, .weglot-flags.flag-2.en > span:before { background-position: -"+t[c][2]+"px 0 !important; } .weglot-flags.flag-3.en > a:before, .weglot-flags.flag-3.en > span:before { background-position: -"+t[c][3]+"px 0 !important; } ",b=g<=0?"":".weglot-flags.es > a:before, .weglot-flags.es > span:before { background-position: -"+o[g][0]+"px 0 !important; } .weglot-flags.flag-1.es > a:before, .weglot-flags.flag-1.es > span:before { background-position: -"+o[g][1]+"px 0 !important; } .weglot-flags.flag-2.es > a:before, .weglot-flags.flag-2.es > span:before { background-position: -"+o[g][2]+"px 0 !important; } .weglot-flags.flag-3.es > a:before, .weglot-flags.flag-3.es > span:before { background-position: -"+o[g][3]+"px 0 !important; } ",y=i<=0?"":".weglot-flags.pt > a:before, .weglot-flags.pt > span:before { background-position: -"+a[i][0]+"px 0 !important; } .weglot-flags.flag-1.pt > a:before, .weglot-flags.flag-1.pt > span:before { background-position: -"+a[i][1]+"px 0 !important; } .weglot-flags.flag-2.pt > a:before, .weglot-flags.flag-2.pt > span:before { background-position: -"+a[i][2]+"px 0 !important; } .weglot-flags.flag-3.pt > a:before, .weglot-flags.flag-3.pt > span:before { background-position: -"+a[i][3]+"px 0 !important; } ",m=f<=0?"":".weglot-flags.fr > a:before, .weglot-flags.fr > span:before { background-position: -"+l[f][0]+"px 0 !important; } .weglot-flags.flag-1.fr > a:before, .weglot-flags.flag-1.fr > span:before { background-position: -"+l[f][1]+"px 0 !important; } .weglot-flags.flag-2.fr > a:before, .weglot-flags.flag-2.fr > span:before { background-position: -"+l[f][2]+"px 0 !important; } .weglot-flags.flag-3.fr > a:before, .weglot-flags.flag-3.fr > span:before { background-position: -"+l[f][3]+"px 0 !important; } ",v=p<=0?"":".weglot-flags.ar > a:before, .weglot-flags.ar > span:before { background-position: -"+n[p][0]+"px 0 !important; } .weglot-flags.flag-1.ar > a:before, .weglot-flags.flag-1.ar > span:before { background-position: -"+n[p][1]+"px 0 !important; } .weglot-flags.flag-2.ar > a:before, .weglot-flags.flag-2.ar > span:before { background-position: -"+n[p][2]+"px 0 !important; } .weglot-flags.flag-3.ar > a:before, .weglot-flags.flag-3.ar > span:before { background-position: -"+n[p][3]+"px 0 !important; } ",h=d<=0?"":".weglot-flags.tw > a:before, .weglot-flags.tw > span:before { background-position: -"+r[d][0]+"px 0 !important; } .weglot-flags.flag-1.tw > a:before, .weglot-flags.flag-1.tw > span:before { background-position: -"+r[d][1]+"px 0 !important; } .weglot-flags.flag-2.tw > a:before, .weglot-flags.flag-2.tw > span:before { background-position: -"+r[d][2]+"px 0 !important; } .weglot-flags.flag-3.tw > a:before, .weglot-flags.flag-3.tw > span:before { background-position: -"+r[d][3]+"px 0 !important; } ",_=u<=0?"":".weglot-flags.zh > a:before, .weglot-flags.zh > span:before { background-position: -"+s[u][0]+"px 0 !important; } .weglot-flags.flag-1.zh > a:before, .weglot-flags.flag-1.zh > span:before { background-position: -"+s[u][1]+"px 0 !important; } .weglot-flags.flag-2.zh > a:before, .weglot-flags.flag-2.zh > span:before { background-position: -"+s[u][2]+"px 0 !important; } .weglot-flags.flag-3.zh > a:before, .weglot-flags.flag-3.zh > span:before { background-position: -"+s[u][3]+"px 0 !important; } ";e("#flag_css, #weglot-css-flag-css").text(w+b+y+m+v+h+_)}()});var t=e("#flag_css").text();t.trim()&&e("#weglot-css-flag-css").text(t)};document.addEventListener("DOMContentLoaded",()=>{t()})};var i=function(){jQuery;document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector("#private_mode");e&&0!=e.length&&(document.querySelector("#private_mode").addEventListener("change",function(e){document.querySelectorAll(".private-mode-lang--input").forEach(t=>{t.checked=e.target.checked})}),document.querySelectorAll(".private-mode-lang--input").forEach(e=>{e.addEventListener("change",function(e){0===document.querySelectorAll(".private-mode-lang--input:checked").length&&(document.querySelector("#private_mode").checked=!1)})}))})};o(0),o(1);a(),n(),l(),r(),s(),c(),g(),i()}]);
languages/weglot-fr_FR.mo CHANGED
Binary file
languages/weglot-fr_FR.po CHANGED
@@ -7,10 +7,10 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: Weglot Translate 1.4.3\n"
9
  "Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
10
- "POT-Creation-Date: 2020-04-27 15:55+0000\n"
11
- "PO-Revision-Date: 2020-04-27 16:01+0000\n"
12
  "Last-Translator: Weglot\n"
13
- "Language-Team: French (France)\n"
14
  "Language: fr_FR\n"
15
  "MIME-Version: 1.0\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -26,77 +26,80 @@ msgstr ""
26
  "X-Poedit-SearchPath-0: .\n"
27
  "X-Poedit-SourceCharset: UTF-8\n"
28
  "X-Textdomain-Support: yes\n"
29
- "X-Loco-Version: 2.3.3; wp-5.4"
30
 
31
- #: weglot.php:164
32
  #, php-format
33
  msgid "%s Update Rollback"
34
- msgstr ""
35
 
36
- #: src/helpers/class-helper-excluded-type.php:37
37
  msgid "URL starts with"
38
- msgstr ""
39
 
40
- #: src/helpers/class-helper-excluded-type.php:39
41
  msgid "URL ends with"
42
- msgstr ""
43
 
44
- #: src/helpers/class-helper-excluded-type.php:41
45
  msgid "URL contains substring"
46
- msgstr ""
47
 
48
- #: src/helpers/class-helper-excluded-type.php:43
49
  msgid "URL is exactly"
50
- msgstr ""
51
 
52
- #: src/helpers/class-helper-excluded-type.php:45
53
  msgid "URL matches regex"
54
- msgstr ""
55
 
56
- #: src/helpers/class-helper-menu-options-weglot.php:33
57
  msgid "Hide the current language"
58
- msgstr ""
59
 
60
- #: src/helpers/class-helper-menu-options-weglot.php:37
61
  msgid "Show as dropdown (By default it's a list)"
62
- msgstr ""
63
 
64
- #: src/helpers/class-helper-tabs-admin-weglot.php:63
65
  #: src/actions/admin/class-plugin-links-weglot.php:38
66
  msgid "Settings"
67
  msgstr "Réglages"
68
 
69
- #: src/helpers/class-helper-tabs-admin-weglot.php:67
70
  #: templates/admin/pages/tabs/status.php:11
71
  msgid "Status"
72
- msgstr ""
73
 
74
- #: src/helpers/class-helper-tabs-admin-weglot.php:71
75
  #: templates/admin/pages/tabs/custom-urls.php:10
76
  msgid "Custom URLs"
77
- msgstr ""
78
 
79
  #. Plugin Name of the plugin/theme
80
- #: src/widgets/class-widget-selector-weglot.php:16
81
  msgid "Weglot Translate"
82
  msgstr "Weglot Translate"
83
 
84
- #: src/widgets/class-widget-selector-weglot.php:18
85
  msgid "Display Weglot selector in widget"
86
- msgstr ""
87
 
88
- #: src/widgets/class-widget-selector-weglot.php:60
89
  msgid "Title:"
90
  msgstr "Titre :"
91
 
92
  #. 1 HTML Tag, 2 HTML Tag
93
- #: templates/admin/notices/no-configuration.php:16
94
  #, php-format
95
  msgid ""
96
  "Weglot Translate is installed but not yet configured, you need to configure "
97
  "Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
98
  "only 1 minute! "
99
  msgstr ""
 
 
 
100
 
101
  #. 1 HTML Tag, 2 HTML Tag
102
  #: templates/admin/notices/json-function.php:12
@@ -104,6 +107,9 @@ msgid ""
104
  "Weglot Translate: You need to activate package php-json. If you need help, "
105
  "please contact your host or just ask us directly at support@weglot.com."
106
  msgstr ""
 
 
 
107
 
108
  #. 1 HTML Tag, 2 HTML Tag
109
  #: templates/admin/notices/no-curl.php:12
@@ -111,6 +117,8 @@ msgid ""
111
  "Weglot Translate: You need to activate cURL. If you need help, just ask us "
112
  "directly at support@weglot.com."
113
  msgstr ""
 
 
114
 
115
  #. 1 HTML Tag, 2 HTML Tag
116
  #: templates/admin/notices/rewrite-module.php:12
@@ -120,6 +128,9 @@ msgid ""
120
  "more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
121
  "us directly at support@weglot.com."
122
  msgstr ""
 
 
 
123
 
124
  #. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
125
  #: templates/admin/notices/php-min.php:12
@@ -128,20 +139,24 @@ msgid ""
128
  "%1$s requires PHP %2$s minimum, your website is actually running version "
129
  "%3$s."
130
  msgstr ""
 
 
131
 
132
  #: templates/admin/notices/php-min.php:17
133
  msgid ""
134
  "If you are not able to upgrade, you can rollback to the previous version by "
135
  "using the button below."
136
  msgstr ""
 
 
137
 
138
  #: templates/admin/notices/php-min.php:22
139
  msgid "Re-install version 1.13.1"
140
- msgstr ""
141
 
142
  #: templates/admin/pages/settings.php:59
143
  msgid "Love Weglot? Give us 5 stars on WordPress.org"
144
- msgstr ""
145
 
146
  #. 1 HTML Tag, 2 HTML Tag
147
  #: templates/admin/pages/settings.php:64
@@ -150,12 +165,14 @@ msgid ""
150
  "If you need any help, you can contact us via email us at %1$ssupport@weglot."
151
  "com%2$s."
152
  msgstr ""
 
 
153
 
154
  #. 1 HTML Tag, 2 HTML Tag
155
  #: templates/admin/pages/settings.php:67
156
  #, php-format
157
  msgid "You can also check our %1$sFAQ%2$s."
158
- msgstr ""
159
 
160
  #: templates/admin/pages/settings.php:76
161
  msgid "Where are my translations?"
@@ -174,59 +191,61 @@ msgid ""
174
  "You must first create the page a first time before you can benefit from "
175
  "custom URLs"
176
  msgstr ""
 
 
177
 
178
- #: templates/admin/metaboxes/url-translate.php:54
179
  msgid "Edit"
180
- msgstr ""
181
 
182
- #: templates/admin/metaboxes/url-translate.php:56
183
  msgid "Ok"
184
- msgstr ""
185
 
186
- #: templates/admin/metaboxes/url-translate.php:58
187
  msgid "The permalink is not available."
188
- msgstr ""
189
 
190
- #: templates/admin/metaboxes/url-translate.php:60
191
  msgid "Reset custom url"
192
- msgstr ""
193
 
194
  #: src/actions/admin/class-customize-menu-weglot.php:114
195
  msgid "Weglot switcher"
196
- msgstr ""
197
 
198
  #: src/actions/admin/class-customize-menu-weglot.php:129
199
  msgid "Weglot Switcher"
200
- msgstr ""
201
 
202
  #: src/actions/admin/class-customize-menu-weglot.php:140
203
  msgid "Add to menu"
204
- msgstr ""
205
 
206
- #: src/actions/admin/class-metabox-url-translate-weglot.php:223
207
  msgid "Weglot URL Translate"
208
- msgstr ""
209
 
210
- #: src/actions/admin/class-pages-weglot.php:72
211
- msgid "Edit with visual editor"
212
- msgstr ""
213
 
214
- #: src/actions/admin/class-pages-weglot.php:84
215
  msgid "Weglot dashboard"
216
- msgstr ""
217
 
218
- #: src/actions/admin/class-pages-weglot.php:96
219
- msgid "Plugin settings"
220
- msgstr ""
221
 
222
  #: src/actions/front/class-front-menu-weglot.php:112
223
  msgid "Choose your language"
224
- msgstr ""
225
 
226
  #: templates/admin/pages/tabs/support.php:10
227
  #: templates/admin/pages/tabs/advanced.php:51
228
  msgid "[WooCommerce] : Prevent reload cart"
229
- msgstr ""
230
 
231
  #: templates/admin/pages/tabs/support.php:11
232
  #: templates/admin/pages/tabs/advanced.php:52
@@ -234,10 +253,12 @@ msgid ""
234
  "You should only enable this option if you have translation errors on your "
235
  "cart widget."
236
  msgstr ""
 
 
237
 
238
  #: templates/admin/pages/tabs/support.php:18
239
  msgid "Options for support"
240
- msgstr ""
241
 
242
  #: templates/admin/pages/tabs/settings.php:11
243
  msgid "API Key"
@@ -246,15 +267,15 @@ msgstr "Clé API"
246
  #: templates/admin/pages/tabs/settings.php:12
247
  #, php-format
248
  msgid "Log in to %1$sWeglot%2$s to get your API key."
249
- msgstr ""
250
 
251
  #: templates/admin/pages/tabs/settings.php:16
252
  msgid "Original language"
253
- msgstr ""
254
 
255
  #: templates/admin/pages/tabs/settings.php:21
256
  msgid "Destination languages"
257
- msgstr ""
258
 
259
  #: templates/admin/pages/tabs/settings.php:22
260
  #, php-format
@@ -262,6 +283,8 @@ msgid ""
262
  "Choose languages you want to translate into. Supported languages can be "
263
  "found %1$shere%2$s."
264
  msgstr ""
 
 
265
 
266
  #: templates/admin/pages/tabs/settings.php:34
267
  msgid "Main configuration"
@@ -269,7 +292,7 @@ msgstr "Configuration principale"
269
 
270
  #: templates/admin/pages/tabs/settings.php:57
271
  msgid "If you don't have an account, you can create one in 20 seconds !"
272
- msgstr ""
273
 
274
  #. 1 HTML Tag, 2 HTML Tag
275
  #: templates/admin/pages/tabs/settings.php:133
@@ -278,6 +301,9 @@ msgid ""
278
  "On the free plan, you can choose one language and use a maximum of 2000 "
279
  "words. If you need more, please %1$supgrade your plan%2$s."
280
  msgstr ""
 
 
 
281
 
282
  #. 1 HTML Tag, 2 HTML Tag
283
  #: templates/admin/pages/tabs/settings.php:140
@@ -286,6 +312,8 @@ msgid ""
286
  "On the Starter plan, you can choose one language. If you need more, please "
287
  "%1$supgrade your plan%2$s."
288
  msgstr ""
 
 
289
 
290
  #. 1 HTML Tag, 2 HTML Tag
291
  #: templates/admin/pages/tabs/settings.php:147
@@ -294,6 +322,8 @@ msgid ""
294
  "On the Business plan, you can choose five languages. If you need more, "
295
  "please %1$supgrade your plan%2$s."
296
  msgstr ""
 
 
297
 
298
  #: templates/admin/pages/tabs/settings.php:162
299
  msgid "Close"
@@ -301,78 +331,83 @@ msgstr "Fermer"
301
 
302
  #: templates/admin/pages/tabs/settings.php:163
303
  msgid "Well done! Your website is now multilingual."
304
- msgstr ""
305
 
306
  #: templates/admin/pages/tabs/settings.php:164
307
  msgid ""
308
  "Go on your website, there is a language switcher bottom right. Try it :)"
309
  msgstr ""
 
 
310
 
311
  #: templates/admin/pages/tabs/settings.php:166
312
  msgid "Go on my front page."
313
- msgstr ""
314
 
315
  #: templates/admin/pages/tabs/settings.php:168
316
  msgid ""
317
  "Next step, customize the language button as you want and manually edit your "
318
  "translations directly in your Weglot account."
319
  msgstr ""
 
 
 
320
 
321
  #: templates/admin/pages/tabs/status.php:42
322
  msgid "Home URL"
323
- msgstr ""
324
 
325
  #: templates/admin/pages/tabs/status.php:46
326
  msgid "Site URL"
327
- msgstr ""
328
 
329
  #: templates/admin/pages/tabs/status.php:50
330
  msgid "Weglot version"
331
- msgstr ""
332
 
333
  #: templates/admin/pages/tabs/status.php:54
334
  msgid "WordPress version"
335
- msgstr ""
336
 
337
  #: templates/admin/pages/tabs/status.php:58
338
  msgid "Is multisite"
339
- msgstr ""
340
 
341
  #: templates/admin/pages/tabs/status.php:64
342
  msgid "WordPress Debug mode"
343
- msgstr ""
344
 
345
  #: templates/admin/pages/tabs/status.php:72
346
  msgid "Permalink Structure"
347
- msgstr ""
348
 
349
  #: templates/admin/pages/tabs/status.php:76
350
  msgid "Language"
351
- msgstr ""
352
 
353
  #: templates/admin/pages/tabs/status.php:85
354
  msgid "Server environment"
355
- msgstr ""
356
 
357
  #: templates/admin/pages/tabs/status.php:90
358
  msgid "Server info"
359
- msgstr ""
360
 
361
  #: templates/admin/pages/tabs/status.php:94
362
  msgid "PHP Version"
363
- msgstr ""
364
 
365
  #: templates/admin/pages/tabs/status.php:100
366
  msgid "We need a minimum PHP version : 5.4."
367
- msgstr ""
368
 
369
  #: templates/admin/pages/tabs/status.php:106
370
  msgid "Module mod_rewrite"
371
- msgstr ""
372
 
373
  #: templates/admin/pages/tabs/status.php:117
374
  msgid "Weglot environment"
375
- msgstr ""
376
 
377
  #: templates/admin/pages/tabs/status.php:122
378
  msgid "Original Language"
@@ -380,139 +415,151 @@ msgstr "Langue d’origine"
380
 
381
  #: templates/admin/pages/tabs/status.php:126
382
  msgid "Destination Language"
383
- msgstr ""
384
 
385
  #: templates/admin/pages/tabs/status.php:134
386
  msgid "Exclude URLs"
387
- msgstr ""
388
 
389
  #: templates/admin/pages/tabs/status.php:146
390
  msgid "Empty"
391
- msgstr ""
392
 
393
  #: templates/admin/pages/tabs/status.php:152
394
  msgid "Exclude Blocks"
395
- msgstr ""
396
 
397
  #: templates/admin/pages/tabs/status.php:159
398
  msgid "Custom URLS"
399
- msgstr ""
400
 
401
  #: templates/admin/pages/tabs/advanced.php:16
402
  msgid "Exclusion URL"
403
- msgstr ""
404
 
405
  #: templates/admin/pages/tabs/advanced.php:17
406
  msgid ""
407
  "Add URL that you want to exclude from translations. You can use regular "
408
  "expression to match multiple URLs. "
409
  msgstr ""
 
 
410
 
411
  #: templates/admin/pages/tabs/advanced.php:21
412
  msgid "Exclusion Blocks"
413
- msgstr ""
414
 
415
  #: templates/admin/pages/tabs/advanced.php:22
416
  msgid ""
417
  "Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
418
- " a menu, a paragraph etc..."
419
  msgstr ""
 
 
420
 
421
  #: templates/admin/pages/tabs/advanced.php:26
422
  msgid "Auto redirection"
423
- msgstr ""
424
 
425
  #: templates/admin/pages/tabs/advanced.php:27
426
  msgid "Check if you want to redirect users based on their browser language."
427
  msgstr ""
 
 
428
 
429
  #: templates/admin/pages/tabs/advanced.php:31
430
  msgid "Translate email"
431
- msgstr ""
432
 
433
  #: templates/admin/pages/tabs/advanced.php:32
434
  msgid "Check to translate all emails who use function wp_mail"
435
- msgstr ""
436
 
437
  #: templates/admin/pages/tabs/advanced.php:36
438
  msgid "Translate AMP"
439
- msgstr ""
440
 
441
  #: templates/admin/pages/tabs/advanced.php:37
442
  msgid "Translate AMP page"
443
- msgstr ""
444
 
445
  #: templates/admin/pages/tabs/advanced.php:41
446
  msgid "Search WordPress"
447
- msgstr ""
448
 
449
  #: templates/admin/pages/tabs/advanced.php:42
450
  msgid "Allow your users to search in the language they use."
451
  msgstr ""
 
 
452
 
453
  #: templates/admin/pages/tabs/advanced.php:46
454
  msgid "Private mode"
455
- msgstr ""
456
 
457
  #: templates/admin/pages/tabs/advanced.php:47
458
  msgid "Check if your only want admin users to see the translations"
459
  msgstr ""
 
 
460
 
461
  #: templates/admin/pages/tabs/advanced.php:67
462
  msgid "Translation Exclusion (Optional)"
463
- msgstr ""
464
 
465
  #: templates/admin/pages/tabs/advanced.php:69
466
  msgid ""
467
  "By default, every page is translated. You can exclude parts of a page or a "
468
  "full page here."
469
  msgstr ""
 
 
470
 
471
- #: templates/admin/pages/tabs/advanced.php:119
472
- msgid "Add an URL to exclude"
473
- msgstr ""
474
 
475
- #: templates/admin/pages/tabs/advanced.php:151
476
  msgid "Add a block to exclude"
477
- msgstr ""
478
 
479
- #: templates/admin/pages/tabs/advanced.php:157
480
  msgid "Other options (Optional)"
481
- msgstr ""
482
 
483
  #. 1 Local name language
484
- #: templates/admin/pages/tabs/advanced.php:264
485
  #, php-format
486
  msgid "Make \"%s\" a private language"
487
- msgstr ""
488
 
489
  #: templates/admin/pages/tabs/custom-urls.php:21
490
  msgid "All customs URLs was reseted."
491
- msgstr ""
492
 
493
  #: templates/admin/pages/tabs/custom-urls.php:37
494
  msgid "Lang : "
495
- msgstr ""
496
 
497
  #: templates/admin/pages/tabs/custom-urls.php:41
498
  msgid "Base URL :"
499
- msgstr ""
500
 
501
  #: templates/admin/pages/tabs/custom-urls.php:44
502
  msgid "Custom URL :"
503
- msgstr ""
504
 
505
  #: templates/admin/pages/tabs/custom-urls.php:101
506
  msgid "Reset all Weglot custom URLs"
507
- msgstr ""
508
 
509
  #: templates/admin/pages/tabs/custom-urls.php:105
510
  msgid "No custom URL found."
511
- msgstr ""
512
 
513
  #: templates/admin/pages/tabs/custom-urls.php:115
514
  msgid "Are you sure to reset all custom URLs?"
515
- msgstr ""
516
 
517
  #: templates/admin/pages/tabs/appearance.php:12
518
  msgid "Type of flags"
@@ -520,7 +567,7 @@ msgstr "Type de drapeaux"
520
 
521
  #: templates/admin/pages/tabs/appearance.php:17
522
  msgid "Is fullname"
523
- msgstr ""
524
 
525
  #: templates/admin/pages/tabs/appearance.php:18
526
  msgid ""
@@ -531,7 +578,7 @@ msgstr ""
531
 
532
  #: templates/admin/pages/tabs/appearance.php:22
533
  msgid "With name"
534
- msgstr ""
535
 
536
  #: templates/admin/pages/tabs/appearance.php:23
537
  msgid "Check if you want to display the name of languages."
@@ -539,7 +586,7 @@ msgstr "Cochez si vous souhaitez afficher le nom des langues."
539
 
540
  #: templates/admin/pages/tabs/appearance.php:27
541
  msgid "Is dropdown"
542
- msgstr ""
543
 
544
  #: templates/admin/pages/tabs/appearance.php:28
545
  msgid "Check if you want the button to be a dropdown box."
@@ -547,7 +594,7 @@ msgstr "Cochez si vous voulez que le bouton soit une liste déroulante."
547
 
548
  #: templates/admin/pages/tabs/appearance.php:32
549
  msgid "With flags"
550
- msgstr ""
551
 
552
  #: templates/admin/pages/tabs/appearance.php:33
553
  msgid "Check if you want flags in the language button."
@@ -565,16 +612,16 @@ msgstr "Ne changez rien sauf si vous voulez un style de bouton spécifique."
565
 
566
  #: templates/admin/pages/tabs/appearance.php:51
567
  msgid "Language button design"
568
- msgstr ""
569
 
570
  #: templates/admin/pages/tabs/appearance.php:51
571
- #: templates/admin/pages/tabs/appearance.php:266
572
  msgid "(Optional)"
573
  msgstr "(facultatif)"
574
 
575
  #: templates/admin/pages/tabs/appearance.php:59
576
  msgid "Button preview"
577
- msgstr ""
578
 
579
  #: templates/admin/pages/tabs/appearance.php:115
580
  msgid "Rectangle mat"
@@ -582,7 +629,7 @@ msgstr "Rectangle mat"
582
 
583
  #: templates/admin/pages/tabs/appearance.php:122
584
  msgid "Rectangle shiny"
585
- msgstr ""
586
 
587
  #: templates/admin/pages/tabs/appearance.php:129
588
  msgid "Square"
@@ -594,15 +641,15 @@ msgstr "Cercle"
594
 
595
  #: templates/admin/pages/tabs/appearance.php:139
596
  msgid "Change country flags"
597
- msgstr ""
598
 
599
  #: templates/admin/pages/tabs/appearance.php:142
600
  msgid "Choose English flag:"
601
- msgstr ""
602
 
603
  #: templates/admin/pages/tabs/appearance.php:143
604
  msgid "United Kingdom (default)"
605
- msgstr ""
606
 
607
  #: templates/admin/pages/tabs/appearance.php:144
608
  msgid "United States"
@@ -631,11 +678,11 @@ msgstr "Irlande"
631
 
632
  #: templates/admin/pages/tabs/appearance.php:152
633
  msgid "Choose Spanish flag:"
634
- msgstr ""
635
 
636
  #: templates/admin/pages/tabs/appearance.php:153
637
  msgid "Spain (default)"
638
- msgstr ""
639
 
640
  #: templates/admin/pages/tabs/appearance.php:154
641
  msgid "Mexico"
@@ -715,11 +762,11 @@ msgstr "Panama"
715
 
716
  #: templates/admin/pages/tabs/appearance.php:175
717
  msgid "Choose Portuguese flag:"
718
- msgstr ""
719
 
720
  #: templates/admin/pages/tabs/appearance.php:176
721
  msgid "Brazil (default)"
722
- msgstr ""
723
 
724
  #: templates/admin/pages/tabs/appearance.php:177
725
  msgid "Portugal"
@@ -727,149 +774,190 @@ msgstr "Portugal"
727
 
728
  #: templates/admin/pages/tabs/appearance.php:180
729
  msgid "Choose French flag:"
730
- msgstr ""
731
 
732
  #: templates/admin/pages/tabs/appearance.php:181
733
  msgid "France (default)"
734
- msgstr ""
735
 
736
  #: templates/admin/pages/tabs/appearance.php:182
737
  msgid "Belgium"
738
- msgstr ""
739
 
740
  #: templates/admin/pages/tabs/appearance.php:184
741
  msgid "Switzerland"
742
- msgstr ""
743
 
744
  #: templates/admin/pages/tabs/appearance.php:185
745
  msgid "Luxemburg"
746
- msgstr ""
747
 
748
  #: templates/admin/pages/tabs/appearance.php:188
749
  msgid "Choose Arabic flag:"
750
- msgstr ""
751
 
752
  #: templates/admin/pages/tabs/appearance.php:189
753
  msgid "Saudi Arabia (default)"
754
- msgstr ""
755
 
756
  #: templates/admin/pages/tabs/appearance.php:190
757
  msgid "Algeria"
758
- msgstr ""
759
 
760
  #: templates/admin/pages/tabs/appearance.php:191
761
  msgid "Egypt"
762
- msgstr ""
763
 
764
  #: templates/admin/pages/tabs/appearance.php:192
765
  msgid "Iraq"
766
- msgstr ""
767
 
768
  #: templates/admin/pages/tabs/appearance.php:193
769
  msgid "Jordan"
770
- msgstr ""
771
 
772
  #: templates/admin/pages/tabs/appearance.php:194
773
  msgid "Kuwait"
774
- msgstr ""
775
 
776
  #: templates/admin/pages/tabs/appearance.php:195
777
  msgid "Lebanon"
778
- msgstr ""
779
 
780
  #: templates/admin/pages/tabs/appearance.php:196
781
  msgid "Libya"
782
- msgstr ""
783
 
784
  #: templates/admin/pages/tabs/appearance.php:197
785
  msgid "Morocco"
786
- msgstr ""
787
 
788
  #: templates/admin/pages/tabs/appearance.php:198
789
  msgid "Oman"
790
- msgstr ""
791
 
792
  #: templates/admin/pages/tabs/appearance.php:199
793
  msgid "Qatar"
794
- msgstr ""
795
 
796
  #: templates/admin/pages/tabs/appearance.php:200
797
  msgid "Syria"
798
- msgstr ""
799
 
800
  #: templates/admin/pages/tabs/appearance.php:201
801
  msgid "Tunisia"
802
- msgstr ""
803
 
804
  #: templates/admin/pages/tabs/appearance.php:202
805
  msgid "United Arab Emirates"
806
- msgstr ""
807
 
808
  #: templates/admin/pages/tabs/appearance.php:203
809
  msgid "Yemen"
810
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
 
812
- #: templates/admin/pages/tabs/appearance.php:205
 
 
 
 
 
 
 
 
813
  msgid "If you want to use a different flag, just ask us."
814
- msgstr ""
815
 
816
- #: templates/admin/pages/tabs/appearance.php:266
817
  msgid "Language button position"
818
  msgstr "Position du bouton de langue"
819
 
820
- #: templates/admin/pages/tabs/appearance.php:270
821
  msgid ""
822
  "Where will the language button be on my website? By default, bottom right."
823
  msgstr ""
 
824
 
825
- #: templates/admin/pages/tabs/appearance.php:277
826
  msgid "In menu (Weglot translate V1) ?"
827
- msgstr ""
828
 
829
  #. 1 HTML Tag, 2 HTML Tag
830
- #: templates/admin/pages/tabs/appearance.php:292
831
  msgid ""
832
  "Warning, this feature will be depreciated. We strongly advise you to uncheck "
833
  "the option and use and use the functionality: \"In menu\"."
834
  msgstr ""
 
 
 
835
 
836
- #: templates/admin/pages/tabs/appearance.php:300
837
  msgid "In menu?"
838
  msgstr "Dans le menu ?"
839
 
840
- #: templates/admin/pages/tabs/appearance.php:302
841
  #, php-format
842
  msgid ""
843
  "You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
844
  "and drag and drop the Weglot Translate Custom link where you want."
845
  msgstr ""
 
 
 
846
 
847
- #: templates/admin/pages/tabs/appearance.php:306
848
  msgid "As a widget?"
849
  msgstr "Comme Widget ?"
850
 
851
- #: templates/admin/pages/tabs/appearance.php:308
852
  #, php-format
853
  msgid ""
854
  "You can place the button in a widget area. Go to %1$sAppearance → "
855
  "Widgets%2$s and drag and drop the Weglot Translate widget where you want."
856
  msgstr ""
 
 
 
857
 
858
- #: templates/admin/pages/tabs/appearance.php:312
859
  msgid "With a shortcode?"
860
  msgstr "Avec un code court ?"
861
 
862
- #: templates/admin/pages/tabs/appearance.php:314
863
  msgid ""
864
  "You can use the Weglot shortcode [weglot_switcher] wherever you want to "
865
  "place the button."
866
  msgstr ""
 
 
867
 
868
- #: templates/admin/pages/tabs/appearance.php:318
869
  msgid "In the source code?"
870
- msgstr ""
871
 
872
- #: templates/admin/pages/tabs/appearance.php:320
873
  msgid ""
874
  "You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
875
  "wherever you want in the source code of your HTML page. The button will "
@@ -884,15 +972,17 @@ msgid ""
884
  "Translate your website into multiple languages in minutes without doing any "
885
  "coding. Fully SEO compatible."
886
  msgstr ""
 
 
887
 
888
  #. URI of the plugin
889
  msgid "http://wordpress.org/plugins/weglot/"
890
- msgstr ""
891
 
892
  #. Author of the plugin
893
  msgid "Weglot Translate team"
894
- msgstr ""
895
 
896
  #. Author URI of the plugin
897
  msgid "https://weglot.com/"
898
- msgstr ""
7
  msgstr ""
8
  "Project-Id-Version: Weglot Translate 1.4.3\n"
9
  "Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
10
+ "POT-Creation-Date: 2020-07-29 08:51+0000\n"
11
+ "PO-Revision-Date: 2020-07-29 08:58+0000\n"
12
  "Last-Translator: Weglot\n"
13
+ "Language-Team: Français\n"
14
  "Language: fr_FR\n"
15
  "MIME-Version: 1.0\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
26
  "X-Poedit-SearchPath-0: .\n"
27
  "X-Poedit-SourceCharset: UTF-8\n"
28
  "X-Textdomain-Support: yes\n"
29
+ "X-Loco-Version: 2.3.3; wp-5.4.2"
30
 
31
+ #: weglot.php:162
32
  #, php-format
33
  msgid "%s Update Rollback"
34
+ msgstr "Mode Debug WordPress"
35
 
36
+ #: src/helpers/class-helper-excluded-type.php:38
37
  msgid "URL starts with"
38
+ msgstr "L'URL commence par"
39
 
40
+ #: src/helpers/class-helper-excluded-type.php:40
41
  msgid "URL ends with"
42
+ msgstr "L'URL finit par"
43
 
44
+ #: src/helpers/class-helper-excluded-type.php:42
45
  msgid "URL contains substring"
46
+ msgstr "L'URL contient la chaîne"
47
 
48
+ #: src/helpers/class-helper-excluded-type.php:44
49
  msgid "URL is exactly"
50
+ msgstr "L'URL est exactement"
51
 
52
+ #: src/helpers/class-helper-excluded-type.php:46
53
  msgid "URL matches regex"
54
+ msgstr "L'URL valide la regex"
55
 
56
+ #: src/helpers/class-helper-menu-options-weglot.php:36
57
  msgid "Hide the current language"
58
+ msgstr "Cacher la langue courrente"
59
 
60
+ #: src/helpers/class-helper-menu-options-weglot.php:40
61
  msgid "Show as dropdown (By default it's a list)"
62
+ msgstr "Afficher comme liste déroulante (liste par défaut)"
63
 
64
+ #: src/helpers/class-helper-tabs-admin-weglot.php:64
65
  #: src/actions/admin/class-plugin-links-weglot.php:38
66
  msgid "Settings"
67
  msgstr "Réglages"
68
 
69
+ #: src/helpers/class-helper-tabs-admin-weglot.php:68
70
  #: templates/admin/pages/tabs/status.php:11
71
  msgid "Status"
72
+ msgstr "Statut"
73
 
74
+ #: src/helpers/class-helper-tabs-admin-weglot.php:72
75
  #: templates/admin/pages/tabs/custom-urls.php:10
76
  msgid "Custom URLs"
77
+ msgstr "URL personnalisées"
78
 
79
  #. Plugin Name of the plugin/theme
80
+ #: src/widgets/class-widget-selector-weglot.php:18
81
  msgid "Weglot Translate"
82
  msgstr "Weglot Translate"
83
 
84
+ #: src/widgets/class-widget-selector-weglot.php:20
85
  msgid "Display Weglot selector in widget"
86
+ msgstr "Afficher le sélecteur Weglot dans le widget"
87
 
88
+ #: src/widgets/class-widget-selector-weglot.php:62
89
  msgid "Title:"
90
  msgstr "Titre :"
91
 
92
  #. 1 HTML Tag, 2 HTML Tag
93
+ #: templates/admin/notices/no-configuration.php:17
94
  #, php-format
95
  msgid ""
96
  "Weglot Translate is installed but not yet configured, you need to configure "
97
  "Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
98
  "only 1 minute! "
99
  msgstr ""
100
+ "Weglot est installé mais n'est pas encore configuré, Vous devez de "
101
+ "configurer ici : %1$sPage de configuration Weglot%2$s. Cela ne prends qu'une "
102
+ "minute !"
103
 
104
  #. 1 HTML Tag, 2 HTML Tag
105
  #: templates/admin/notices/json-function.php:12
107
  "Weglot Translate: You need to activate package php-json. If you need help, "
108
  "please contact your host or just ask us directly at support@weglot.com."
109
  msgstr ""
110
+ "Weglot : Vous devez activer le package php-json. Si vous avez besoin d'aide, "
111
+ "veuillez contacter votre hôte ou simplement nous demander directement à "
112
+ "support@weglot.com."
113
 
114
  #. 1 HTML Tag, 2 HTML Tag
115
  #: templates/admin/notices/no-curl.php:12
117
  "Weglot Translate: You need to activate cURL. If you need help, just ask us "
118
  "directly at support@weglot.com."
119
  msgstr ""
120
+ "Weglot : Vous devez activer cURL. Si vous avez besoin d'aide, demandez-nous "
121
+ "directement à support@weglot.com."
122
 
123
  #. 1 HTML Tag, 2 HTML Tag
124
  #: templates/admin/notices/rewrite-module.php:12
128
  "more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
129
  "us directly at support@weglot.com."
130
  msgstr ""
131
+ "Weglot : Vous devez activer le module mod_rewrite. Vous pouvez trouver plus "
132
+ "d'informations ici: %1$sUtilisation des permaliens%2$s. Si vous avez besoin "
133
+ "d'aide, demandez directement à support@weglot.com."
134
 
135
  #. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
136
  #: templates/admin/notices/php-min.php:12
139
  "%1$s requires PHP %2$s minimum, your website is actually running version "
140
  "%3$s."
141
  msgstr ""
142
+ "%1$s nécessite PHP %2$s minimum, votre site utilise actuellement la version "
143
+ "%3$s."
144
 
145
  #: templates/admin/notices/php-min.php:17
146
  msgid ""
147
  "If you are not able to upgrade, you can rollback to the previous version by "
148
  "using the button below."
149
  msgstr ""
150
+ "Si vous ne parvenez pas à effectuer la mise à jour, vous pouvez revenir à la "
151
+ "version précédente en utilisant le bouton ci-dessous."
152
 
153
  #: templates/admin/notices/php-min.php:22
154
  msgid "Re-install version 1.13.1"
155
+ msgstr "Re-installer la version 1.13.1"
156
 
157
  #: templates/admin/pages/settings.php:59
158
  msgid "Love Weglot? Give us 5 stars on WordPress.org"
159
+ msgstr "Vous aimez Weglot ? Donnez-nous 5 étoiles sur WordPress.org"
160
 
161
  #. 1 HTML Tag, 2 HTML Tag
162
  #: templates/admin/pages/settings.php:64
165
  "If you need any help, you can contact us via email us at %1$ssupport@weglot."
166
  "com%2$s."
167
  msgstr ""
168
+ "Si vous avez besoin d'aide, vous pouvez nous contacter par e-mail à "
169
+ "%1$ssupport@weglot.com%2$s."
170
 
171
  #. 1 HTML Tag, 2 HTML Tag
172
  #: templates/admin/pages/settings.php:67
173
  #, php-format
174
  msgid "You can also check our %1$sFAQ%2$s."
175
+ msgstr "Vous pouvez aussi regarder notre %1$sFAQ%2$s."
176
 
177
  #: templates/admin/pages/settings.php:76
178
  msgid "Where are my translations?"
191
  "You must first create the page a first time before you can benefit from "
192
  "custom URLs"
193
  msgstr ""
194
+ "Vous devez créer la page dans un premier temps pour bénéficier des URLs "
195
+ "personnalisées"
196
 
197
+ #: templates/admin/metaboxes/url-translate.php:68
198
  msgid "Edit"
199
+ msgstr "Éditer "
200
 
201
+ #: templates/admin/metaboxes/url-translate.php:70
202
  msgid "Ok"
203
+ msgstr "OK"
204
 
205
+ #: templates/admin/metaboxes/url-translate.php:72
206
  msgid "The permalink is not available."
207
+ msgstr "Le permalien n'est pas valide"
208
 
209
+ #: templates/admin/metaboxes/url-translate.php:74
210
  msgid "Reset custom url"
211
+ msgstr "Réinitialiser l'URL personnalisée"
212
 
213
  #: src/actions/admin/class-customize-menu-weglot.php:114
214
  msgid "Weglot switcher"
215
+ msgstr "Sélecteur Weglot"
216
 
217
  #: src/actions/admin/class-customize-menu-weglot.php:129
218
  msgid "Weglot Switcher"
219
+ msgstr "Sélecteur Weglot"
220
 
221
  #: src/actions/admin/class-customize-menu-weglot.php:140
222
  msgid "Add to menu"
223
+ msgstr "Ajouter au menu"
224
 
225
+ #: src/actions/admin/class-metabox-url-translate-weglot.php:246
226
  msgid "Weglot URL Translate"
227
+ msgstr "URL Weglot traduite"
228
 
229
+ #: src/actions/admin/class-pages-weglot.php:71
230
+ msgid "Plugin settings"
231
+ msgstr "Paramètres de l'extension"
232
 
233
+ #: src/actions/admin/class-pages-weglot.php:80
234
  msgid "Weglot dashboard"
235
+ msgstr "Tableau de bord Weglot"
236
 
237
+ #: src/actions/admin/class-pages-weglot.php:92
238
+ msgid "Edit with visual editor"
239
+ msgstr "Éditer avec l'éditeur visuel"
240
 
241
  #: src/actions/front/class-front-menu-weglot.php:112
242
  msgid "Choose your language"
243
+ msgstr "Choisissez votre langue"
244
 
245
  #: templates/admin/pages/tabs/support.php:10
246
  #: templates/admin/pages/tabs/advanced.php:51
247
  msgid "[WooCommerce] : Prevent reload cart"
248
+ msgstr "[WooCommerce] : Empêcher le rechargement du panier"
249
 
250
  #: templates/admin/pages/tabs/support.php:11
251
  #: templates/admin/pages/tabs/advanced.php:52
253
  "You should only enable this option if you have translation errors on your "
254
  "cart widget."
255
  msgstr ""
256
+ "Vous ne devez activer cette option que si vous rencontrez des erreurs de "
257
+ "traduction sur votre widget panier."
258
 
259
  #: templates/admin/pages/tabs/support.php:18
260
  msgid "Options for support"
261
+ msgstr "Options d'assistance"
262
 
263
  #: templates/admin/pages/tabs/settings.php:11
264
  msgid "API Key"
267
  #: templates/admin/pages/tabs/settings.php:12
268
  #, php-format
269
  msgid "Log in to %1$sWeglot%2$s to get your API key."
270
+ msgstr "Connectez-vous à %1$sWeglot%2$s Pour obtenir votre clé API."
271
 
272
  #: templates/admin/pages/tabs/settings.php:16
273
  msgid "Original language"
274
+ msgstr "Langue d’origine"
275
 
276
  #: templates/admin/pages/tabs/settings.php:21
277
  msgid "Destination languages"
278
+ msgstr "Langues de destination"
279
 
280
  #: templates/admin/pages/tabs/settings.php:22
281
  #, php-format
283
  "Choose languages you want to translate into. Supported languages can be "
284
  "found %1$shere%2$s."
285
  msgstr ""
286
+ "Choisissez les langues dans lesquelles vous souhaitez traduire. Les langues "
287
+ "prises en charge peuvent être trouvées %1$ici%2$s."
288
 
289
  #: templates/admin/pages/tabs/settings.php:34
290
  msgid "Main configuration"
292
 
293
  #: templates/admin/pages/tabs/settings.php:57
294
  msgid "If you don't have an account, you can create one in 20 seconds !"
295
+ msgstr "Si vous n'avez pas de compte, vous pouvez en créer un en 20 secondes!"
296
 
297
  #. 1 HTML Tag, 2 HTML Tag
298
  #: templates/admin/pages/tabs/settings.php:133
301
  "On the free plan, you can choose one language and use a maximum of 2000 "
302
  "words. If you need more, please %1$supgrade your plan%2$s."
303
  msgstr ""
304
+ "Avec le plan gratuit, vous pouvez choisir une langue et utiliser un maximum "
305
+ "de 2000 mots. Si vous avez besoin de plus, veuillez %1$smettre à niveau "
306
+ "votre plan%2$s."
307
 
308
  #. 1 HTML Tag, 2 HTML Tag
309
  #: templates/admin/pages/tabs/settings.php:140
312
  "On the Starter plan, you can choose one language. If you need more, please "
313
  "%1$supgrade your plan%2$s."
314
  msgstr ""
315
+ "Avec le plan Starter, vous pouvez choisir une langue. Si vous avez besoin de "
316
+ "plus, veuillez %1$smettre à niveau votre plan%2$s."
317
 
318
  #. 1 HTML Tag, 2 HTML Tag
319
  #: templates/admin/pages/tabs/settings.php:147
322
  "On the Business plan, you can choose five languages. If you need more, "
323
  "please %1$supgrade your plan%2$s."
324
  msgstr ""
325
+ "Avec le plan Business, vous pouvez choisir cinq langues. Si vous avez besoin "
326
+ "de plus, veuillez %1$smettre à niveau votre plan%2$s."
327
 
328
  #: templates/admin/pages/tabs/settings.php:162
329
  msgid "Close"
331
 
332
  #: templates/admin/pages/tabs/settings.php:163
333
  msgid "Well done! Your website is now multilingual."
334
+ msgstr "Bien joué ! Votre site Web est maintenant multilingue."
335
 
336
  #: templates/admin/pages/tabs/settings.php:164
337
  msgid ""
338
  "Go on your website, there is a language switcher bottom right. Try it :)"
339
  msgstr ""
340
+ "Rendez-vous sur votre site, il y a un sélecteur de langue en bas à droite. "
341
+ "Essayez-le :)"
342
 
343
  #: templates/admin/pages/tabs/settings.php:166
344
  msgid "Go on my front page."
345
+ msgstr "Aller sur ma page d'accueil"
346
 
347
  #: templates/admin/pages/tabs/settings.php:168
348
  msgid ""
349
  "Next step, customize the language button as you want and manually edit your "
350
  "translations directly in your Weglot account."
351
  msgstr ""
352
+ "Prochaine étape, personnalisez le bouton de langue comme vous le souhaitez "
353
+ "et modifiez manuellement vos traductions directement dans votre compte "
354
+ "Weglot."
355
 
356
  #: templates/admin/pages/tabs/status.php:42
357
  msgid "Home URL"
358
+ msgstr "URL de la page d'accueil"
359
 
360
  #: templates/admin/pages/tabs/status.php:46
361
  msgid "Site URL"
362
+ msgstr "URL du site"
363
 
364
  #: templates/admin/pages/tabs/status.php:50
365
  msgid "Weglot version"
366
+ msgstr "Version de Weglot"
367
 
368
  #: templates/admin/pages/tabs/status.php:54
369
  msgid "WordPress version"
370
+ msgstr "Version de WordPress"
371
 
372
  #: templates/admin/pages/tabs/status.php:58
373
  msgid "Is multisite"
374
+ msgstr "Est un multisite"
375
 
376
  #: templates/admin/pages/tabs/status.php:64
377
  msgid "WordPress Debug mode"
378
+ msgstr "Mode Debug WordPress"
379
 
380
  #: templates/admin/pages/tabs/status.php:72
381
  msgid "Permalink Structure"
382
+ msgstr "Structure des permaliens"
383
 
384
  #: templates/admin/pages/tabs/status.php:76
385
  msgid "Language"
386
+ msgstr "Langue"
387
 
388
  #: templates/admin/pages/tabs/status.php:85
389
  msgid "Server environment"
390
+ msgstr "Environnement serveur"
391
 
392
  #: templates/admin/pages/tabs/status.php:90
393
  msgid "Server info"
394
+ msgstr "Informations serveur"
395
 
396
  #: templates/admin/pages/tabs/status.php:94
397
  msgid "PHP Version"
398
+ msgstr "Version PHP"
399
 
400
  #: templates/admin/pages/tabs/status.php:100
401
  msgid "We need a minimum PHP version : 5.4."
402
+ msgstr "Nous avons besoin d'une version minimum de PHP 5.4."
403
 
404
  #: templates/admin/pages/tabs/status.php:106
405
  msgid "Module mod_rewrite"
406
+ msgstr "Module mod_rewrite"
407
 
408
  #: templates/admin/pages/tabs/status.php:117
409
  msgid "Weglot environment"
410
+ msgstr "Environnement Weglot"
411
 
412
  #: templates/admin/pages/tabs/status.php:122
413
  msgid "Original Language"
415
 
416
  #: templates/admin/pages/tabs/status.php:126
417
  msgid "Destination Language"
418
+ msgstr "Langue de destination"
419
 
420
  #: templates/admin/pages/tabs/status.php:134
421
  msgid "Exclude URLs"
422
+ msgstr "URLs exclues"
423
 
424
  #: templates/admin/pages/tabs/status.php:146
425
  msgid "Empty"
426
+ msgstr "Vide"
427
 
428
  #: templates/admin/pages/tabs/status.php:152
429
  msgid "Exclude Blocks"
430
+ msgstr "Blocs exclus"
431
 
432
  #: templates/admin/pages/tabs/status.php:159
433
  msgid "Custom URLS"
434
+ msgstr "URLs perssonnalisées"
435
 
436
  #: templates/admin/pages/tabs/advanced.php:16
437
  msgid "Exclusion URL"
438
+ msgstr "Exclusion d'URL"
439
 
440
  #: templates/admin/pages/tabs/advanced.php:17
441
  msgid ""
442
  "Add URL that you want to exclude from translations. You can use regular "
443
  "expression to match multiple URLs. "
444
  msgstr ""
445
+ "Ajoutez l'URL que vous souhaitez exclure des traductions. Vous pouvez "
446
+ "utiliser une expression régulière pour faire correspondre plusieurs URL."
447
 
448
  #: templates/admin/pages/tabs/advanced.php:21
449
  msgid "Exclusion Blocks"
450
+ msgstr "Exclusion de blocs"
451
 
452
  #: templates/admin/pages/tabs/advanced.php:22
453
  msgid ""
454
  "Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
455
+ " a menu, a paragraph, etc...)"
456
  msgstr ""
457
+ "Entrez les sélecteurs CSS des blocs que vous ne voulez pas traduire (comme "
458
+ "une barre latérale, un menu, un paragraphe, etc.)"
459
 
460
  #: templates/admin/pages/tabs/advanced.php:26
461
  msgid "Auto redirection"
462
+ msgstr "Redirection automatique"
463
 
464
  #: templates/admin/pages/tabs/advanced.php:27
465
  msgid "Check if you want to redirect users based on their browser language."
466
  msgstr ""
467
+ "Cochez si vous souhaitez rediriger les utilisateurs en fonction de la langue "
468
+ "de leur navigateur."
469
 
470
  #: templates/admin/pages/tabs/advanced.php:31
471
  msgid "Translate email"
472
+ msgstr "Traduction d'email"
473
 
474
  #: templates/admin/pages/tabs/advanced.php:32
475
  msgid "Check to translate all emails who use function wp_mail"
476
+ msgstr "Cochez pour traduire tous les emails qui utilisent la fonction wp_mail"
477
 
478
  #: templates/admin/pages/tabs/advanced.php:36
479
  msgid "Translate AMP"
480
+ msgstr "Traduction AMP"
481
 
482
  #: templates/admin/pages/tabs/advanced.php:37
483
  msgid "Translate AMP page"
484
+ msgstr "Traduire les pages AMP"
485
 
486
  #: templates/admin/pages/tabs/advanced.php:41
487
  msgid "Search WordPress"
488
+ msgstr "Recherche WordPress"
489
 
490
  #: templates/admin/pages/tabs/advanced.php:42
491
  msgid "Allow your users to search in the language they use."
492
  msgstr ""
493
+ "Permettre à vos utilisateurs de faire des recherches dans la langue qu'ils "
494
+ "utilisent."
495
 
496
  #: templates/admin/pages/tabs/advanced.php:46
497
  msgid "Private mode"
498
+ msgstr "Mode privé"
499
 
500
  #: templates/admin/pages/tabs/advanced.php:47
501
  msgid "Check if your only want admin users to see the translations"
502
  msgstr ""
503
+ "Cochez si vous souhaitez uniquement que les utilisateurs administrateurs "
504
+ "voient les traductions"
505
 
506
  #: templates/admin/pages/tabs/advanced.php:67
507
  msgid "Translation Exclusion (Optional)"
508
+ msgstr "Exclusion de traduction (facultatif)"
509
 
510
  #: templates/admin/pages/tabs/advanced.php:69
511
  msgid ""
512
  "By default, every page is translated. You can exclude parts of a page or a "
513
  "full page here."
514
  msgstr ""
515
+ "Par défaut, chaque page est traduite. Vous pouvez exclure des parties d'une "
516
+ "page ou une page complète ici."
517
 
518
+ #: templates/admin/pages/tabs/advanced.php:80
519
+ msgid "Manage URL to exclude"
520
+ msgstr "Gérer les URLs à exclure"
521
 
522
+ #: templates/admin/pages/tabs/advanced.php:112
523
  msgid "Add a block to exclude"
524
+ msgstr "Ajouter un bloc à exclure"
525
 
526
+ #: templates/admin/pages/tabs/advanced.php:118
527
  msgid "Other options (Optional)"
528
+ msgstr "Autres options (facultatif)"
529
 
530
  #. 1 Local name language
531
+ #: templates/admin/pages/tabs/advanced.php:225
532
  #, php-format
533
  msgid "Make \"%s\" a private language"
534
+ msgstr "Rendre la langue \"%s\" privée"
535
 
536
  #: templates/admin/pages/tabs/custom-urls.php:21
537
  msgid "All customs URLs was reseted."
538
+ msgstr "Toutes les URL personnalisées ont été réinitialisées."
539
 
540
  #: templates/admin/pages/tabs/custom-urls.php:37
541
  msgid "Lang : "
542
+ msgstr "Langue"
543
 
544
  #: templates/admin/pages/tabs/custom-urls.php:41
545
  msgid "Base URL :"
546
+ msgstr "Base de l'URL :"
547
 
548
  #: templates/admin/pages/tabs/custom-urls.php:44
549
  msgid "Custom URL :"
550
+ msgstr "URL personnalisées :"
551
 
552
  #: templates/admin/pages/tabs/custom-urls.php:101
553
  msgid "Reset all Weglot custom URLs"
554
+ msgstr "Réinitialiser toutes les URLs personnalisées Weglot"
555
 
556
  #: templates/admin/pages/tabs/custom-urls.php:105
557
  msgid "No custom URL found."
558
+ msgstr "Aucune URL personnalisée trouvée."
559
 
560
  #: templates/admin/pages/tabs/custom-urls.php:115
561
  msgid "Are you sure to reset all custom URLs?"
562
+ msgstr "Êtes-vous sûr de réinitialiser toutes les URLs personnalisées ?"
563
 
564
  #: templates/admin/pages/tabs/appearance.php:12
565
  msgid "Type of flags"
567
 
568
  #: templates/admin/pages/tabs/appearance.php:17
569
  msgid "Is fullname"
570
+ msgstr "Nom complet"
571
 
572
  #: templates/admin/pages/tabs/appearance.php:18
573
  msgid ""
578
 
579
  #: templates/admin/pages/tabs/appearance.php:22
580
  msgid "With name"
581
+ msgstr "Avec le nom"
582
 
583
  #: templates/admin/pages/tabs/appearance.php:23
584
  msgid "Check if you want to display the name of languages."
586
 
587
  #: templates/admin/pages/tabs/appearance.php:27
588
  msgid "Is dropdown"
589
+ msgstr "Est une liste déroulante"
590
 
591
  #: templates/admin/pages/tabs/appearance.php:28
592
  msgid "Check if you want the button to be a dropdown box."
594
 
595
  #: templates/admin/pages/tabs/appearance.php:32
596
  msgid "With flags"
597
+ msgstr "Avec les drapeaux"
598
 
599
  #: templates/admin/pages/tabs/appearance.php:33
600
  msgid "Check if you want flags in the language button."
612
 
613
  #: templates/admin/pages/tabs/appearance.php:51
614
  msgid "Language button design"
615
+ msgstr "Design du bouton de langues"
616
 
617
  #: templates/admin/pages/tabs/appearance.php:51
618
+ #: templates/admin/pages/tabs/appearance.php:279
619
  msgid "(Optional)"
620
  msgstr "(facultatif)"
621
 
622
  #: templates/admin/pages/tabs/appearance.php:59
623
  msgid "Button preview"
624
+ msgstr "Aperçu du bouton"
625
 
626
  #: templates/admin/pages/tabs/appearance.php:115
627
  msgid "Rectangle mat"
629
 
630
  #: templates/admin/pages/tabs/appearance.php:122
631
  msgid "Rectangle shiny"
632
+ msgstr "Rectangle brillant"
633
 
634
  #: templates/admin/pages/tabs/appearance.php:129
635
  msgid "Square"
641
 
642
  #: templates/admin/pages/tabs/appearance.php:139
643
  msgid "Change country flags"
644
+ msgstr "Changer les drapeaux de pays"
645
 
646
  #: templates/admin/pages/tabs/appearance.php:142
647
  msgid "Choose English flag:"
648
+ msgstr "Choisissez le drapeau pour l'anglais :"
649
 
650
  #: templates/admin/pages/tabs/appearance.php:143
651
  msgid "United Kingdom (default)"
652
+ msgstr "Royaume-Uni (par défaut)"
653
 
654
  #: templates/admin/pages/tabs/appearance.php:144
655
  msgid "United States"
678
 
679
  #: templates/admin/pages/tabs/appearance.php:152
680
  msgid "Choose Spanish flag:"
681
+ msgstr "Choisissez le drapeau pour l'espagnol :"
682
 
683
  #: templates/admin/pages/tabs/appearance.php:153
684
  msgid "Spain (default)"
685
+ msgstr "Espagne (par défaut)"
686
 
687
  #: templates/admin/pages/tabs/appearance.php:154
688
  msgid "Mexico"
762
 
763
  #: templates/admin/pages/tabs/appearance.php:175
764
  msgid "Choose Portuguese flag:"
765
+ msgstr "Choisissez le drapeau pour le portugais :"
766
 
767
  #: templates/admin/pages/tabs/appearance.php:176
768
  msgid "Brazil (default)"
769
+ msgstr "Brésil (par défaut)"
770
 
771
  #: templates/admin/pages/tabs/appearance.php:177
772
  msgid "Portugal"
774
 
775
  #: templates/admin/pages/tabs/appearance.php:180
776
  msgid "Choose French flag:"
777
+ msgstr "Choisissez le drapeau pour le français :"
778
 
779
  #: templates/admin/pages/tabs/appearance.php:181
780
  msgid "France (default)"
781
+ msgstr "France (par défaut)"
782
 
783
  #: templates/admin/pages/tabs/appearance.php:182
784
  msgid "Belgium"
785
+ msgstr "Belgique"
786
 
787
  #: templates/admin/pages/tabs/appearance.php:184
788
  msgid "Switzerland"
789
+ msgstr "Suisse"
790
 
791
  #: templates/admin/pages/tabs/appearance.php:185
792
  msgid "Luxemburg"
793
+ msgstr "Luxemburg"
794
 
795
  #: templates/admin/pages/tabs/appearance.php:188
796
  msgid "Choose Arabic flag:"
797
+ msgstr "Choisissez le drapeau pour l'arabe :"
798
 
799
  #: templates/admin/pages/tabs/appearance.php:189
800
  msgid "Saudi Arabia (default)"
801
+ msgstr "Arabie saoudite (par défaut)"
802
 
803
  #: templates/admin/pages/tabs/appearance.php:190
804
  msgid "Algeria"
805
+ msgstr "Algérie"
806
 
807
  #: templates/admin/pages/tabs/appearance.php:191
808
  msgid "Egypt"
809
+ msgstr "Egypte"
810
 
811
  #: templates/admin/pages/tabs/appearance.php:192
812
  msgid "Iraq"
813
+ msgstr "Irak"
814
 
815
  #: templates/admin/pages/tabs/appearance.php:193
816
  msgid "Jordan"
817
+ msgstr "Jordanie"
818
 
819
  #: templates/admin/pages/tabs/appearance.php:194
820
  msgid "Kuwait"
821
+ msgstr "Koweit"
822
 
823
  #: templates/admin/pages/tabs/appearance.php:195
824
  msgid "Lebanon"
825
+ msgstr "Liban"
826
 
827
  #: templates/admin/pages/tabs/appearance.php:196
828
  msgid "Libya"
829
+ msgstr "Libye"
830
 
831
  #: templates/admin/pages/tabs/appearance.php:197
832
  msgid "Morocco"
833
+ msgstr "Maroc"
834
 
835
  #: templates/admin/pages/tabs/appearance.php:198
836
  msgid "Oman"
837
+ msgstr "Oman"
838
 
839
  #: templates/admin/pages/tabs/appearance.php:199
840
  msgid "Qatar"
841
+ msgstr "Qatar"
842
 
843
  #: templates/admin/pages/tabs/appearance.php:200
844
  msgid "Syria"
845
+ msgstr "Syrie"
846
 
847
  #: templates/admin/pages/tabs/appearance.php:201
848
  msgid "Tunisia"
849
+ msgstr "Tunisie"
850
 
851
  #: templates/admin/pages/tabs/appearance.php:202
852
  msgid "United Arab Emirates"
853
+ msgstr "Emirats Arabes Unis"
854
 
855
  #: templates/admin/pages/tabs/appearance.php:203
856
  msgid "Yemen"
857
+ msgstr "Yémen"
858
+
859
+ #: templates/admin/pages/tabs/appearance.php:206
860
+ msgid "Choose Simplified Chinese flag:"
861
+ msgstr "Choisissez le drapeau pour le chinois :"
862
+
863
+ #: templates/admin/pages/tabs/appearance.php:207
864
+ msgid "Taiwan (default)"
865
+ msgstr "Taïwan (par défaut)"
866
+
867
+ #: templates/admin/pages/tabs/appearance.php:208
868
+ msgid "China"
869
+ msgstr "Chine"
870
+
871
+ #: templates/admin/pages/tabs/appearance.php:209
872
+ #: templates/admin/pages/tabs/appearance.php:215
873
+ msgid "Hong Kong"
874
+ msgstr "Hong Kong"
875
+
876
+ #: templates/admin/pages/tabs/appearance.php:212
877
+ msgid "Choose Traditional Chinese flag:"
878
+ msgstr "Choisissez le drapeau pour le chinois traditionnel :"
879
 
880
+ #: templates/admin/pages/tabs/appearance.php:213
881
+ msgid "China (default)"
882
+ msgstr "Chine (par défaut)"
883
+
884
+ #: templates/admin/pages/tabs/appearance.php:214
885
+ msgid "Taiwan"
886
+ msgstr "Taïwan"
887
+
888
+ #: templates/admin/pages/tabs/appearance.php:218
889
  msgid "If you want to use a different flag, just ask us."
890
+ msgstr "Si vous souhaitez utiliser d'autres drapeaux, contactez-nous."
891
 
892
+ #: templates/admin/pages/tabs/appearance.php:279
893
  msgid "Language button position"
894
  msgstr "Position du bouton de langue"
895
 
896
+ #: templates/admin/pages/tabs/appearance.php:283
897
  msgid ""
898
  "Where will the language button be on my website? By default, bottom right."
899
  msgstr ""
900
+ "Où sera le bouton de langue sur mon site ? Par défaut, en bas à droite."
901
 
902
+ #: templates/admin/pages/tabs/appearance.php:290
903
  msgid "In menu (Weglot translate V1) ?"
904
+ msgstr "Dans le menu (Weglot translate V1) ?"
905
 
906
  #. 1 HTML Tag, 2 HTML Tag
907
+ #: templates/admin/pages/tabs/appearance.php:305
908
  msgid ""
909
  "Warning, this feature will be depreciated. We strongly advise you to uncheck "
910
  "the option and use and use the functionality: \"In menu\"."
911
  msgstr ""
912
+ "Attention, cette fonctionnalité sera dépréciée. Nous vous conseillons "
913
+ "vivement de décocher l'option et d'utiliser et d'utiliser la fonctionnalité: "
914
+ "\"Dans le menu\"."
915
 
916
+ #: templates/admin/pages/tabs/appearance.php:313
917
  msgid "In menu?"
918
  msgstr "Dans le menu ?"
919
 
920
+ #: templates/admin/pages/tabs/appearance.php:315
921
  #, php-format
922
  msgid ""
923
  "You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
924
  "and drag and drop the Weglot Translate Custom link where you want."
925
  msgstr ""
926
+ "Vous pouvez placer le bouton dans une zone de menu. Rendez-vous dans "
927
+ "%1$sApparence → Menus%2$s et faites glisser le lien personnalisé Weglot où "
928
+ "vous le souhaitez."
929
 
930
+ #: templates/admin/pages/tabs/appearance.php:319
931
  msgid "As a widget?"
932
  msgstr "Comme Widget ?"
933
 
934
+ #: templates/admin/pages/tabs/appearance.php:321
935
  #, php-format
936
  msgid ""
937
  "You can place the button in a widget area. Go to %1$sAppearance → "
938
  "Widgets%2$s and drag and drop the Weglot Translate widget where you want."
939
  msgstr ""
940
+ "Vous pouvez placer le bouton dans une zone de widget. Rendez-vous dans "
941
+ "%1$sApparence → Widgets%2$s et faites glisser le widget Weglot où vous le "
942
+ "souhaitez."
943
 
944
+ #: templates/admin/pages/tabs/appearance.php:325
945
  msgid "With a shortcode?"
946
  msgstr "Avec un code court ?"
947
 
948
+ #: templates/admin/pages/tabs/appearance.php:327
949
  msgid ""
950
  "You can use the Weglot shortcode [weglot_switcher] wherever you want to "
951
  "place the button."
952
  msgstr ""
953
+ "Vous pouvez utiliser le shortcode Weglot [weglot_switcher] partout où vous "
954
+ "voulez placer le bouton."
955
 
956
+ #: templates/admin/pages/tabs/appearance.php:331
957
  msgid "In the source code?"
958
+ msgstr "Dans le code sourcce ?"
959
 
960
+ #: templates/admin/pages/tabs/appearance.php:333
961
  msgid ""
962
  "You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
963
  "wherever you want in the source code of your HTML page. The button will "
972
  "Translate your website into multiple languages in minutes without doing any "
973
  "coding. Fully SEO compatible."
974
  msgstr ""
975
+ "Traduisez votre site Web en plusieurs langues en quelques minutes sans code. "
976
+ "Entièrement compatible SEO."
977
 
978
  #. URI of the plugin
979
  msgid "http://wordpress.org/plugins/weglot/"
980
+ msgstr "https://fr.wordpress.org/plugins/weglot/"
981
 
982
  #. Author of the plugin
983
  msgid "Weglot Translate team"
984
+ msgstr "L'équipe Weglot"
985
 
986
  #. Author URI of the plugin
987
  msgid "https://weglot.com/"
988
+ msgstr "https://weglot.com/fr/"
languages/weglot.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Weglot Translate 1.4.4\n"
7
  "Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
8
- "POT-Creation-Date: 2020-04-27 15:55+0000\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -25,69 +25,69 @@ msgstr ""
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: Loco https://localise.biz/"
27
 
28
- #: weglot.php:164
29
  #, php-format
30
  msgid "%s Update Rollback"
31
  msgstr ""
32
 
33
- #: src/helpers/class-helper-excluded-type.php:37
34
  msgid "URL starts with"
35
  msgstr ""
36
 
37
- #: src/helpers/class-helper-excluded-type.php:39
38
  msgid "URL ends with"
39
  msgstr ""
40
 
41
- #: src/helpers/class-helper-excluded-type.php:41
42
  msgid "URL contains substring"
43
  msgstr ""
44
 
45
- #: src/helpers/class-helper-excluded-type.php:43
46
  msgid "URL is exactly"
47
  msgstr ""
48
 
49
- #: src/helpers/class-helper-excluded-type.php:45
50
  msgid "URL matches regex"
51
  msgstr ""
52
 
53
- #: src/helpers/class-helper-menu-options-weglot.php:33
54
  msgid "Hide the current language"
55
  msgstr ""
56
 
57
- #: src/helpers/class-helper-menu-options-weglot.php:37
58
  msgid "Show as dropdown (By default it's a list)"
59
  msgstr ""
60
 
61
- #: src/helpers/class-helper-tabs-admin-weglot.php:63
62
  #: src/actions/admin/class-plugin-links-weglot.php:38
63
  msgid "Settings"
64
  msgstr ""
65
 
66
- #: src/helpers/class-helper-tabs-admin-weglot.php:67
67
  #: templates/admin/pages/tabs/status.php:11
68
  msgid "Status"
69
  msgstr ""
70
 
71
- #: src/helpers/class-helper-tabs-admin-weglot.php:71
72
  #: templates/admin/pages/tabs/custom-urls.php:10
73
  msgid "Custom URLs"
74
  msgstr ""
75
 
76
  #. Plugin Name of the plugin/theme
77
- #: src/widgets/class-widget-selector-weglot.php:16
78
  msgid "Weglot Translate"
79
  msgstr ""
80
 
81
- #: src/widgets/class-widget-selector-weglot.php:18
82
  msgid "Display Weglot selector in widget"
83
  msgstr ""
84
 
85
- #: src/widgets/class-widget-selector-weglot.php:60
86
  msgid "Title:"
87
  msgstr ""
88
 
89
  #. 1 HTML Tag, 2 HTML Tag
90
- #: templates/admin/notices/no-configuration.php:16
91
  #, php-format
92
  msgid ""
93
  "Weglot Translate is installed but not yet configured, you need to configure "
@@ -172,19 +172,19 @@ msgid ""
172
  "custom URLs"
173
  msgstr ""
174
 
175
- #: templates/admin/metaboxes/url-translate.php:54
176
  msgid "Edit"
177
  msgstr ""
178
 
179
- #: templates/admin/metaboxes/url-translate.php:56
180
  msgid "Ok"
181
  msgstr ""
182
 
183
- #: templates/admin/metaboxes/url-translate.php:58
184
  msgid "The permalink is not available."
185
  msgstr ""
186
 
187
- #: templates/admin/metaboxes/url-translate.php:60
188
  msgid "Reset custom url"
189
  msgstr ""
190
 
@@ -200,20 +200,20 @@ msgstr ""
200
  msgid "Add to menu"
201
  msgstr ""
202
 
203
- #: src/actions/admin/class-metabox-url-translate-weglot.php:223
204
  msgid "Weglot URL Translate"
205
  msgstr ""
206
 
207
- #: src/actions/admin/class-pages-weglot.php:72
208
- msgid "Edit with visual editor"
209
  msgstr ""
210
 
211
- #: src/actions/admin/class-pages-weglot.php:84
212
  msgid "Weglot dashboard"
213
  msgstr ""
214
 
215
- #: src/actions/admin/class-pages-weglot.php:96
216
- msgid "Plugin settings"
217
  msgstr ""
218
 
219
  #: src/actions/front/class-front-menu-weglot.php:112
@@ -412,7 +412,7 @@ msgstr ""
412
  #: templates/admin/pages/tabs/advanced.php:22
413
  msgid ""
414
  "Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
415
- " a menu, a paragraph etc..."
416
  msgstr ""
417
 
418
  #: templates/admin/pages/tabs/advanced.php:26
@@ -465,20 +465,20 @@ msgid ""
465
  "full page here."
466
  msgstr ""
467
 
468
- #: templates/admin/pages/tabs/advanced.php:119
469
- msgid "Add an URL to exclude"
470
  msgstr ""
471
 
472
- #: templates/admin/pages/tabs/advanced.php:151
473
  msgid "Add a block to exclude"
474
  msgstr ""
475
 
476
- #: templates/admin/pages/tabs/advanced.php:157
477
  msgid "Other options (Optional)"
478
  msgstr ""
479
 
480
  #. 1 Local name language
481
- #: templates/admin/pages/tabs/advanced.php:264
482
  #, php-format
483
  msgid "Make \"%s\" a private language"
484
  msgstr ""
@@ -562,7 +562,7 @@ msgid "Language button design"
562
  msgstr ""
563
 
564
  #: templates/admin/pages/tabs/appearance.php:51
565
- #: templates/admin/pages/tabs/appearance.php:266
566
  msgid "(Optional)"
567
  msgstr ""
568
 
@@ -803,67 +803,96 @@ msgstr ""
803
  msgid "Yemen"
804
  msgstr ""
805
 
806
- #: templates/admin/pages/tabs/appearance.php:205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
807
  msgid "If you want to use a different flag, just ask us."
808
  msgstr ""
809
 
810
- #: templates/admin/pages/tabs/appearance.php:266
811
  msgid "Language button position"
812
  msgstr ""
813
 
814
- #: templates/admin/pages/tabs/appearance.php:270
815
  msgid ""
816
  "Where will the language button be on my website? By default, bottom right."
817
  msgstr ""
818
 
819
- #: templates/admin/pages/tabs/appearance.php:277
820
  msgid "In menu (Weglot translate V1) ?"
821
  msgstr ""
822
 
823
  #. 1 HTML Tag, 2 HTML Tag
824
- #: templates/admin/pages/tabs/appearance.php:292
825
  msgid ""
826
  "Warning, this feature will be depreciated. We strongly advise you to uncheck "
827
  "the option and use and use the functionality: \"In menu\"."
828
  msgstr ""
829
 
830
- #: templates/admin/pages/tabs/appearance.php:300
831
  msgid "In menu?"
832
  msgstr ""
833
 
834
- #: templates/admin/pages/tabs/appearance.php:302
835
  #, php-format
836
  msgid ""
837
  "You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
838
  "and drag and drop the Weglot Translate Custom link where you want."
839
  msgstr ""
840
 
841
- #: templates/admin/pages/tabs/appearance.php:306
842
  msgid "As a widget?"
843
  msgstr ""
844
 
845
- #: templates/admin/pages/tabs/appearance.php:308
846
  #, php-format
847
  msgid ""
848
  "You can place the button in a widget area. Go to %1$sAppearance → "
849
  "Widgets%2$s and drag and drop the Weglot Translate widget where you want."
850
  msgstr ""
851
 
852
- #: templates/admin/pages/tabs/appearance.php:312
853
  msgid "With a shortcode?"
854
  msgstr ""
855
 
856
- #: templates/admin/pages/tabs/appearance.php:314
857
  msgid ""
858
  "You can use the Weglot shortcode [weglot_switcher] wherever you want to "
859
  "place the button."
860
  msgstr ""
861
 
862
- #: templates/admin/pages/tabs/appearance.php:318
863
  msgid "In the source code?"
864
  msgstr ""
865
 
866
- #: templates/admin/pages/tabs/appearance.php:320
867
  msgid ""
868
  "You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
869
  "wherever you want in the source code of your HTML page. The button will "
5
  msgstr ""
6
  "Project-Id-Version: Weglot Translate 1.4.4\n"
7
  "Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
8
+ "POT-Creation-Date: 2020-07-29 08:51+0000\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: Loco https://localise.biz/"
27
 
28
+ #: weglot.php:162
29
  #, php-format
30
  msgid "%s Update Rollback"
31
  msgstr ""
32
 
33
+ #: src/helpers/class-helper-excluded-type.php:38
34
  msgid "URL starts with"
35
  msgstr ""
36
 
37
+ #: src/helpers/class-helper-excluded-type.php:40
38
  msgid "URL ends with"
39
  msgstr ""
40
 
41
+ #: src/helpers/class-helper-excluded-type.php:42
42
  msgid "URL contains substring"
43
  msgstr ""
44
 
45
+ #: src/helpers/class-helper-excluded-type.php:44
46
  msgid "URL is exactly"
47
  msgstr ""
48
 
49
+ #: src/helpers/class-helper-excluded-type.php:46
50
  msgid "URL matches regex"
51
  msgstr ""
52
 
53
+ #: src/helpers/class-helper-menu-options-weglot.php:36
54
  msgid "Hide the current language"
55
  msgstr ""
56
 
57
+ #: src/helpers/class-helper-menu-options-weglot.php:40
58
  msgid "Show as dropdown (By default it's a list)"
59
  msgstr ""
60
 
61
+ #: src/helpers/class-helper-tabs-admin-weglot.php:64
62
  #: src/actions/admin/class-plugin-links-weglot.php:38
63
  msgid "Settings"
64
  msgstr ""
65
 
66
+ #: src/helpers/class-helper-tabs-admin-weglot.php:68
67
  #: templates/admin/pages/tabs/status.php:11
68
  msgid "Status"
69
  msgstr ""
70
 
71
+ #: src/helpers/class-helper-tabs-admin-weglot.php:72
72
  #: templates/admin/pages/tabs/custom-urls.php:10
73
  msgid "Custom URLs"
74
  msgstr ""
75
 
76
  #. Plugin Name of the plugin/theme
77
+ #: src/widgets/class-widget-selector-weglot.php:18
78
  msgid "Weglot Translate"
79
  msgstr ""
80
 
81
+ #: src/widgets/class-widget-selector-weglot.php:20
82
  msgid "Display Weglot selector in widget"
83
  msgstr ""
84
 
85
+ #: src/widgets/class-widget-selector-weglot.php:62
86
  msgid "Title:"
87
  msgstr ""
88
 
89
  #. 1 HTML Tag, 2 HTML Tag
90
+ #: templates/admin/notices/no-configuration.php:17
91
  #, php-format
92
  msgid ""
93
  "Weglot Translate is installed but not yet configured, you need to configure "
172
  "custom URLs"
173
  msgstr ""
174
 
175
+ #: templates/admin/metaboxes/url-translate.php:68
176
  msgid "Edit"
177
  msgstr ""
178
 
179
+ #: templates/admin/metaboxes/url-translate.php:70
180
  msgid "Ok"
181
  msgstr ""
182
 
183
+ #: templates/admin/metaboxes/url-translate.php:72
184
  msgid "The permalink is not available."
185
  msgstr ""
186
 
187
+ #: templates/admin/metaboxes/url-translate.php:74
188
  msgid "Reset custom url"
189
  msgstr ""
190
 
200
  msgid "Add to menu"
201
  msgstr ""
202
 
203
+ #: src/actions/admin/class-metabox-url-translate-weglot.php:246
204
  msgid "Weglot URL Translate"
205
  msgstr ""
206
 
207
+ #: src/actions/admin/class-pages-weglot.php:71
208
+ msgid "Plugin settings"
209
  msgstr ""
210
 
211
+ #: src/actions/admin/class-pages-weglot.php:80
212
  msgid "Weglot dashboard"
213
  msgstr ""
214
 
215
+ #: src/actions/admin/class-pages-weglot.php:92
216
+ msgid "Edit with visual editor"
217
  msgstr ""
218
 
219
  #: src/actions/front/class-front-menu-weglot.php:112
412
  #: templates/admin/pages/tabs/advanced.php:22
413
  msgid ""
414
  "Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
415
+ " a menu, a paragraph, etc...)"
416
  msgstr ""
417
 
418
  #: templates/admin/pages/tabs/advanced.php:26
465
  "full page here."
466
  msgstr ""
467
 
468
+ #: templates/admin/pages/tabs/advanced.php:80
469
+ msgid "Manage URL to exclude"
470
  msgstr ""
471
 
472
+ #: templates/admin/pages/tabs/advanced.php:112
473
  msgid "Add a block to exclude"
474
  msgstr ""
475
 
476
+ #: templates/admin/pages/tabs/advanced.php:118
477
  msgid "Other options (Optional)"
478
  msgstr ""
479
 
480
  #. 1 Local name language
481
+ #: templates/admin/pages/tabs/advanced.php:225
482
  #, php-format
483
  msgid "Make \"%s\" a private language"
484
  msgstr ""
562
  msgstr ""
563
 
564
  #: templates/admin/pages/tabs/appearance.php:51
565
+ #: templates/admin/pages/tabs/appearance.php:279
566
  msgid "(Optional)"
567
  msgstr ""
568
 
803
  msgid "Yemen"
804
  msgstr ""
805
 
806
+ #: templates/admin/pages/tabs/appearance.php:206
807
+ msgid "Choose Simplified Chinese flag:"
808
+ msgstr ""
809
+
810
+ #: templates/admin/pages/tabs/appearance.php:207
811
+ msgid "Taiwan (default)"
812
+ msgstr ""
813
+
814
+ #: templates/admin/pages/tabs/appearance.php:208
815
+ msgid "China"
816
+ msgstr ""
817
+
818
+ #: templates/admin/pages/tabs/appearance.php:209
819
+ #: templates/admin/pages/tabs/appearance.php:215
820
+ msgid "Hong Kong"
821
+ msgstr ""
822
+
823
+ #: templates/admin/pages/tabs/appearance.php:212
824
+ msgid "Choose Traditional Chinese flag:"
825
+ msgstr ""
826
+
827
+ #: templates/admin/pages/tabs/appearance.php:213
828
+ msgid "China (default)"
829
+ msgstr ""
830
+
831
+ #: templates/admin/pages/tabs/appearance.php:214
832
+ msgid "Taiwan"
833
+ msgstr ""
834
+
835
+ #: templates/admin/pages/tabs/appearance.php:218
836
  msgid "If you want to use a different flag, just ask us."
837
  msgstr ""
838
 
839
+ #: templates/admin/pages/tabs/appearance.php:279
840
  msgid "Language button position"
841
  msgstr ""
842
 
843
+ #: templates/admin/pages/tabs/appearance.php:283
844
  msgid ""
845
  "Where will the language button be on my website? By default, bottom right."
846
  msgstr ""
847
 
848
+ #: templates/admin/pages/tabs/appearance.php:290
849
  msgid "In menu (Weglot translate V1) ?"
850
  msgstr ""
851
 
852
  #. 1 HTML Tag, 2 HTML Tag
853
+ #: templates/admin/pages/tabs/appearance.php:305
854
  msgid ""
855
  "Warning, this feature will be depreciated. We strongly advise you to uncheck "
856
  "the option and use and use the functionality: \"In menu\"."
857
  msgstr ""
858
 
859
+ #: templates/admin/pages/tabs/appearance.php:313
860
  msgid "In menu?"
861
  msgstr ""
862
 
863
+ #: templates/admin/pages/tabs/appearance.php:315
864
  #, php-format
865
  msgid ""
866
  "You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
867
  "and drag and drop the Weglot Translate Custom link where you want."
868
  msgstr ""
869
 
870
+ #: templates/admin/pages/tabs/appearance.php:319
871
  msgid "As a widget?"
872
  msgstr ""
873
 
874
+ #: templates/admin/pages/tabs/appearance.php:321
875
  #, php-format
876
  msgid ""
877
  "You can place the button in a widget area. Go to %1$sAppearance → "
878
  "Widgets%2$s and drag and drop the Weglot Translate widget where you want."
879
  msgstr ""
880
 
881
+ #: templates/admin/pages/tabs/appearance.php:325
882
  msgid "With a shortcode?"
883
  msgstr ""
884
 
885
+ #: templates/admin/pages/tabs/appearance.php:327
886
  msgid ""
887
  "You can use the Weglot shortcode [weglot_switcher] wherever you want to "
888
  "place the button."
889
  msgstr ""
890
 
891
+ #: templates/admin/pages/tabs/appearance.php:331
892
  msgid "In the source code?"
893
  msgstr ""
894
 
895
+ #: templates/admin/pages/tabs/appearance.php:333
896
  msgid ""
897
  "You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
898
  "wherever you want in the source code of your HTML page. The button will "
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: remyb92, gmulti, wysija, wpr0ck
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
- Tested up to: 5.4
6
  Requires PHP: 5.4
7
- Stable tag: 3.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -201,6 +201,13 @@ See changelog for upgrade changes.
201
 
202
  == Changelog ==
203
 
 
 
 
 
 
 
 
204
  = 3.1.8 (02/07/2020) =
205
  * Exclude URL by languages
206
  * Translate by default all Woocommerce mails with customer language
2
  Contributors: remyb92, gmulti, wysija, wpr0ck
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
+ Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 3.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
201
 
202
  == Changelog ==
203
 
204
+ = 3.1.9 (06/08/2020) =
205
+ * Add flag choice for ZH and TW
206
+ * Update plugin translation files
207
+ * Translate Iframe SRC as external link
208
+ * Fix: Custom URL links (empty base in correspondence table / traning slash)
209
+ * Fix: Remove "!important" CSS properties on AMP
210
+
211
  = 3.1.8 (02/07/2020) =
212
  * Exclude URL by languages
213
  * Translate by default all Woocommerce mails with customer language
src/actions/admin/class-metabox-url-translate-weglot.php CHANGED
@@ -67,7 +67,7 @@ class Metabox_Url_Translate_Weglot implements Hooks_Interface_Weglot {
67
  $custom_urls = $this->option_services->get_option( 'custom_urls' );
68
 
69
  if ( isset( $custom_urls[ $code_lang ] ) && isset( $custom_urls[ $code_lang ][ $post_name_weglot ] ) ) {
70
- unset( $custom_urls[ $code_lang ] [ $post_name_weglot ] );
71
  $this->option_services->set_option_by_key( 'custom_urls', $custom_urls );
72
  }
73
 
@@ -203,7 +203,7 @@ class Metabox_Url_Translate_Weglot implements Hooks_Interface_Weglot {
203
 
204
  $weglot_unique_slug = wp_unique_post_slug( trim( $weglot_post_name ), $post->ID, $post->post_status, $post->post_type, $post->post_parent );
205
 
206
- $custom_urls[ $code_language ] [ $weglot_unique_slug ] = $post->post_name;
207
  $this->option_services->set_option_by_key( 'custom_urls', $custom_urls );
208
 
209
  wp_send_json_success(
@@ -288,7 +288,7 @@ class Metabox_Url_Translate_Weglot implements Hooks_Interface_Weglot {
288
  // Add nonce for security and authentication.
289
  $post_name_weglot = isset( $_POST[ Helper_Post_Meta_Weglot::POST_NAME_WEGLOT ] ) ? $_POST[ Helper_Post_Meta_Weglot::POST_NAME_WEGLOT ] : []; //phpcs:ignore
290
 
291
- if ( ! isset( $post_name_weglot ) ) {
292
  return;
293
  }
294
 
67
  $custom_urls = $this->option_services->get_option( 'custom_urls' );
68
 
69
  if ( isset( $custom_urls[ $code_lang ] ) && isset( $custom_urls[ $code_lang ][ $post_name_weglot ] ) ) {
70
+ unset( $custom_urls[ $code_lang ][ $post_name_weglot ] );
71
  $this->option_services->set_option_by_key( 'custom_urls', $custom_urls );
72
  }
73
 
203
 
204
  $weglot_unique_slug = wp_unique_post_slug( trim( $weglot_post_name ), $post->ID, $post->post_status, $post->post_type, $post->post_parent );
205
 
206
+ $custom_urls[ $code_language ][ $weglot_unique_slug ] = $post->post_name;
207
  $this->option_services->set_option_by_key( 'custom_urls', $custom_urls );
208
 
209
  wp_send_json_success(
288
  // Add nonce for security and authentication.
289
  $post_name_weglot = isset( $_POST[ Helper_Post_Meta_Weglot::POST_NAME_WEGLOT ] ) ? $_POST[ Helper_Post_Meta_Weglot::POST_NAME_WEGLOT ] : []; //phpcs:ignore
290
 
291
+ if ( empty( $post_name_weglot ) ) {
292
  return;
293
  }
294
 
src/actions/front/class-translate-page-weglot.php CHANGED
@@ -250,15 +250,67 @@ class Translate_Page_Weglot implements Hooks_Interface_Weglot {
250
  return;
251
  }
252
 
253
- $_SERVER['REQUEST_URI'] = str_replace(
 
 
254
  '/' . $current_language . '/',
255
  '/',
256
  $_SERVER['REQUEST_URI']
257
  );
258
 
259
- foreach ( $custom_urls[ $to_translate_language_iso ] as $key => $value ) {
260
- $_SERVER['REQUEST_URI'] = str_replace( '/' . $key . '/', '/' . $value . '/', $_SERVER['REQUEST_URI'] );
 
 
 
 
 
 
 
 
 
 
 
261
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  }
263
 
264
  /**
250
  return;
251
  }
252
 
253
+ // Get URL of original page
254
+
255
+ $original_url = str_replace(
256
  '/' . $current_language . '/',
257
  '/',
258
  $_SERVER['REQUEST_URI']
259
  );
260
 
261
+ // Add final slash if not set
262
+ $end_with_slash = false;
263
+ if ( $original_url === trailingslashit( $original_url ) ) {
264
+ $end_with_slash = true;
265
+ } else {
266
+ $original_url = trailingslashit( $original_url );
267
+ }
268
+
269
+ foreach ( $custom_urls[ $to_translate_language_iso ] as $slug_translated => $slug_original ) {
270
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
271
+ continue;
272
+ }
273
+ $original_url = str_replace( '/' . $slug_translated . '/', '/' . $slug_original . '/', $original_url );
274
  }
275
+
276
+ // Remove final slash if not set before
277
+ if ( false === $end_with_slash ) {
278
+ $original_url = untrailingslashit( $original_url );
279
+ }
280
+
281
+ // Get translated URL of original URL
282
+
283
+ $translated_url = $original_url;
284
+ // Add final slash if not set
285
+ $end_with_slash = false;
286
+ if ( $translated_url === trailingslashit( $translated_url ) ) {
287
+ $end_with_slash = true;
288
+ } else {
289
+ $translated_url = trailingslashit( $translated_url );
290
+ }
291
+
292
+ // Get custom URL : Original (original lang) -> Custom (to translate lang)
293
+ if ( isset( $custom_urls[ $to_translate_language_iso ] ) ) {
294
+ foreach ( $custom_urls[ $to_translate_language_iso ] as $slug_translated => $slug_original ) {
295
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
296
+ continue;
297
+ }
298
+ $translated_url = str_replace( '/' . $slug_original . '/', '/' . $slug_translated . '/', $translated_url );
299
+ }
300
+ }
301
+
302
+ // Remove final slash if not set before
303
+ if ( false === $end_with_slash ) {
304
+ $translated_url = untrailingslashit( $translated_url );
305
+ }
306
+
307
+ if ( "/$current_language$translated_url" !== $_SERVER['REQUEST_URI'] ) {
308
+ wp_redirect( get_site_url() . "/$current_language$translated_url", 301 );
309
+ exit;
310
+ }
311
+
312
+ $_SERVER['REQUEST_URI'] = $original_url;
313
+
314
  }
315
 
316
  /**
src/services/class-custom-url-service-weglot.php CHANGED
@@ -44,32 +44,41 @@ class Custom_Url_Service_Weglot {
44
  $condition_test_custom_url = isset( $request_without_language[ $index_entries ] ) && ! is_admin() && ! empty( $custom_urls ) && ! is_front_page() && ! is_home();
45
 
46
  if ( apply_filters( 'weglot_condition_test_custom_url', $condition_test_custom_url, $url_lang, $key_code ) ) {
47
- $slug_in_work = $request_without_language[ $index_entries ];
48
- $original_slug_in_work = $slug_in_work;
49
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
50
- $original_slug_in_work = $request_without_language[ $index_entries ];
51
- $current_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
52
-
53
- if (
54
- $current_language_iso !== $original_language
55
- && isset( $custom_urls[ $current_language_iso ] )
56
- ) {
57
- foreach ( $custom_urls[ $current_language_iso ] as $key => $value ) {
58
- $original_slug_in_work = str_replace( '/' . $value . '/', '/' . $key . '/', $original_slug_in_work );
59
- }
60
- }
61
-
62
  $to_translate_language_iso = ( $key = array_search( $key_code, $language_code_rewrited ) ) ? $key : $key_code;
 
63
 
64
- if ( isset( $custom_urls[ $to_translate_language_iso ] ) ) {
65
- foreach ( $custom_urls[ $to_translate_language_iso ] as $key => $value ) {
66
- $url_lang = str_replace( '/' . $value . '/', '/' . $key . '/', $url_lang );
 
 
 
 
 
 
 
 
 
 
 
67
  }
68
- } elseif ( isset( $custom_urls[ $current_language_iso ] ) ) {
69
- foreach ( $custom_urls[ $current_language_iso ] as $key => $value ) {
70
- $url_lang = str_replace( '/' . $key . '/', '/' . $value . '/', $url_lang );
 
 
 
 
 
71
  }
72
  }
 
 
 
 
 
73
  }
74
 
75
  $link_button = apply_filters( 'weglot_link_language', $url_lang, $key_code );
44
  $condition_test_custom_url = isset( $request_without_language[ $index_entries ] ) && ! is_admin() && ! empty( $custom_urls ) && ! is_front_page() && ! is_home();
45
 
46
  if ( apply_filters( 'weglot_condition_test_custom_url', $condition_test_custom_url, $url_lang, $key_code ) ) {
 
 
47
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
48
+ $current_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
 
 
 
 
 
 
 
 
 
 
 
49
  $to_translate_language_iso = ( $key = array_search( $key_code, $language_code_rewrited ) ) ? $key : $key_code;
50
+ $end_with_slash = false;
51
 
52
+ // Add final slash if not set
53
+ if ( $url_lang === trailingslashit( $url_lang ) ) {
54
+ $end_with_slash = true;
55
+ } else {
56
+ $url_lang = trailingslashit( $url_lang );
57
+ }
58
+
59
+ // Get original slug : Custom (current lang) -> Original (original lang)
60
+ if ( isset( $custom_urls[ $current_language_iso ] ) ) {
61
+ foreach ( $custom_urls[ $current_language_iso ] as $slug_translated => $slug_original ) {
62
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
63
+ continue;
64
+ }
65
+ $url_lang = str_replace( '/' . $slug_translated . '/', '/' . $slug_original . '/', $url_lang );
66
  }
67
+ }
68
+ // Get custom URL : Original (original lang) -> Custom (to translate lang)
69
+ if ( isset( $custom_urls[ $to_translate_language_iso ] ) ) {
70
+ foreach ( $custom_urls[ $to_translate_language_iso ] as $slug_translated => $slug_original ) {
71
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
72
+ continue;
73
+ }
74
+ $url_lang = str_replace( '/' . $slug_original . '/', '/' . $slug_translated . '/', $url_lang );
75
  }
76
  }
77
+
78
+ // Remove final slash if not set before
79
+ if ( false === $end_with_slash ) {
80
+ $url_lang = untrailingslashit( $url_lang );
81
+ }
82
  }
83
 
84
  $link_button = apply_filters( 'weglot_link_language', $url_lang, $key_code );
src/services/class-option-service-weglot.php CHANGED
@@ -466,9 +466,20 @@ class Option_Service_Weglot {
466
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
467
  $current_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
468
 
 
 
 
 
 
 
 
 
469
  if ( isset( $custom_urls[ $current_language_iso ] ) ) {
470
- foreach ( $custom_urls[ $current_language_iso ] as $key => $value ) {
471
- $current_url = str_replace( '/' . $key . '/', '/' . $value . '/', $current_url );
 
 
 
472
  }
473
  }
474
 
@@ -478,6 +489,11 @@ class Option_Service_Weglot {
478
  }
479
  }
480
 
 
 
 
 
 
481
  return apply_filters( 'weglot_current_destination_languages', $destination_languages, $current_url );
482
  }
483
 
@@ -559,7 +575,7 @@ class Option_Service_Weglot {
559
  && is_array( $item['excluded_languages'] )
560
  ) {
561
 
562
- $item['excluded_languages'] = array_map(
563
  function ( $v ) use ( $language_code_rewrited ) {
564
  return isset( $language_code_rewrited[ $v ] ) ? $language_code_rewrited[ $v ] : $v;
565
  },
466
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
467
  $current_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
468
 
469
+ // Add final slash if not set
470
+ $end_with_slash = false;
471
+ if ( trailingslashit( $current_url ) === $current_url ) {
472
+ $end_with_slash = true;
473
+ } else {
474
+ $current_url = trailingslashit( $current_url );
475
+ }
476
+
477
  if ( isset( $custom_urls[ $current_language_iso ] ) ) {
478
+ foreach ( $custom_urls[ $current_language_iso ] as $slug_translated => $slug_original ) {
479
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
480
+ continue;
481
+ }
482
+ $current_url = str_replace( '/' . $slug_translated . '/', '/' . $slug_original . '/', $current_url );
483
  }
484
  }
485
 
489
  }
490
  }
491
 
492
+ // Remove final slash if not set before
493
+ if ( false === $end_with_slash ) {
494
+ $current_url = untrailingslashit( $current_url );
495
+ }
496
+
497
  return apply_filters( 'weglot_current_destination_languages', $destination_languages, $current_url );
498
  }
499
 
575
  && is_array( $item['excluded_languages'] )
576
  ) {
577
 
578
+ $item['excluded_languages'] = array_map(
579
  function ( $v ) use ( $language_code_rewrited ) {
580
  return isset( $language_code_rewrited[ $v ] ) ? $language_code_rewrited[ $v ] : $v;
581
  },
src/services/class-replace-link-service-weglot.php CHANGED
@@ -71,14 +71,61 @@ class Replace_Link_Service_Weglot {
71
  $request_without_language = array_filter( explode( '/', $path ), 'strlen' );
72
  $index_entries = count( $request_without_language );
73
 
74
- $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
75
  $to_translate_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
76
- if ( isset( $request_without_language[ $index_entries ] ) && ! is_admin() && ! empty( $custom_urls ) && isset( $custom_urls[ $to_translate_language_iso ] ) ) {
77
- $slug_in_work = $request_without_language[ $index_entries ];
78
- $key_slug = array_search( $slug_in_work, $custom_urls[ $to_translate_language_iso ] ); //phpcs:ignore
79
- if ( false !== $key_slug && ! empty( $key_slug ) ) {
80
- $path = str_replace( $slug_in_work, $key_slug, $path );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
83
 
84
  $url_translated = ( strlen( $path ) > 2 && strpos( $path, "/$current_language/" ) !== false ) ?
71
  $request_without_language = array_filter( explode( '/', $path ), 'strlen' );
72
  $index_entries = count( $request_without_language );
73
 
74
+ $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
75
  $to_translate_language_iso = ( $key = array_search( $current_language, $language_code_rewrited ) ) ? $key : $current_language;
76
+
77
+ if (
78
+ isset( $request_without_language[ $index_entries ] )
79
+ && ! is_admin()
80
+ && ! empty( $custom_urls )
81
+ && isset( $custom_urls[ $to_translate_language_iso ] )
82
+ ) {
83
+
84
+ // Add final slash if not set
85
+ $end_with_slash = false;
86
+ if ( $path === trailingslashit( $path ) ) {
87
+ $end_with_slash = true;
88
+ } else {
89
+ $path = trailingslashit( $path );
90
+ }
91
+
92
+ foreach ( $custom_urls[ $to_translate_language_iso ] as $slug_translated => $slug_original ) {
93
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
94
+ continue;
95
+ }
96
+ $path = str_replace( '/' . $slug_translated . '/', '/' . $slug_original . '/', $path );
97
  }
98
+
99
+ // Remove final slash if not set before
100
+ if ( false === $end_with_slash ) {
101
+ $path = untrailingslashit( $path );
102
+ }
103
+
104
+ // Get translated URL of original URL
105
+
106
+ // Add final slash if not set
107
+ $end_with_slash = false;
108
+ if ( $path === trailingslashit( $path ) ) {
109
+ $end_with_slash = true;
110
+ } else {
111
+ $path = trailingslashit( $path );
112
+ }
113
+
114
+ // Get custom URL : Original (original lang) -> Custom (to translate lang)
115
+ if ( isset( $custom_urls[ $to_translate_language_iso ] ) ) {
116
+ foreach ( $custom_urls[ $to_translate_language_iso ] as $slug_translated => $slug_original ) {
117
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
118
+ continue;
119
+ }
120
+ $path = str_replace( '/' . $slug_original . '/', '/' . $slug_translated . '/', $path );
121
+ }
122
+ }
123
+
124
+ // Remove final slash if not set before
125
+ if ( false === $end_with_slash ) {
126
+ $path = untrailingslashit( $path );
127
+ }
128
+
129
  }
130
 
131
  $url_translated = ( strlen( $path ) > 2 && strpos( $path, "/$current_language/" ) !== false ) ?
src/services/class-request-url-service-weglot.php CHANGED
@@ -231,14 +231,29 @@ class Request_Url_Service_Weglot {
231
  $exclude_urls_option = $this->option_services->get_exclude_urls();
232
  $custom_urls = $this->option_services->get_option( 'custom_urls' );
233
  $current_language = $this->get_current_language();
234
- $url_path_custom = null;
 
 
 
 
 
 
 
235
 
236
  if ( isset( $custom_urls[ $current_language ] ) ) {
237
- foreach ( $custom_urls[ $current_language ] as $key => $value ) {
238
- $url_path_custom = str_replace( '/' . $key . '/', '/' . $value . '/', $url_relative );
 
 
 
239
  }
240
  }
241
 
 
 
 
 
 
242
  $weglot_url = $this->create_url_object( $url );
243
  $weglot_url->setExcludedUrls( $exclude_urls_option );
244
 
@@ -250,8 +265,8 @@ class Request_Url_Service_Weglot {
250
  return apply_filters( 'weglot_is_eligible_url', false, $weglot_url );
251
  }
252
 
253
- if ( $url_path_custom ) {
254
- $weglot_url = $this->create_url_object( $url_path_custom );
255
  $weglot_url->setExcludedUrls( $exclude_urls_option );
256
  if ( ! $weglot_url->isTranslable() ) {
257
  return apply_filters( 'weglot_is_eligible_url', false, $weglot_url );
231
  $exclude_urls_option = $this->option_services->get_exclude_urls();
232
  $custom_urls = $this->option_services->get_option( 'custom_urls' );
233
  $current_language = $this->get_current_language();
234
+ $end_with_slash = false;
235
+
236
+ // Add final slash if not set
237
+ if ( trailingslashit( $url_relative ) === $url_relative ) {
238
+ $end_with_slash = true;
239
+ } else {
240
+ $url_relative = trailingslashit( $url_relative );
241
+ }
242
 
243
  if ( isset( $custom_urls[ $current_language ] ) ) {
244
+ foreach ( $custom_urls[ $current_language ] as $slug_translated => $slug_original ) {
245
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
246
+ continue;
247
+ }
248
+ $url_relative = str_replace( '/' . $slug_translated . '/', '/' . $slug_original . '/', $url_relative );
249
  }
250
  }
251
 
252
+ // Remove final slash if not set before
253
+ if ( false === $end_with_slash ) {
254
+ $url_relative = untrailingslashit( $url_relative );
255
+ }
256
+
257
  $weglot_url = $this->create_url_object( $url );
258
  $weglot_url->setExcludedUrls( $exclude_urls_option );
259
 
265
  return apply_filters( 'weglot_is_eligible_url', false, $weglot_url );
266
  }
267
 
268
+ if ( $url_relative ) {
269
+ $weglot_url = $this->create_url_object( $url_relative );
270
  $weglot_url->setExcludedUrls( $exclude_urls_option );
271
  if ( ! $weglot_url->isTranslable() ) {
272
  return apply_filters( 'weglot_is_eligible_url', false, $weglot_url );
src/third/amp/class-amp-enqueue-weglot.php CHANGED
@@ -65,14 +65,24 @@ class Amp_Enqueue_Weglot implements Hooks_Interface_Weglot {
65
  $type_flags = weglot_get_option( 'type_flags' );
66
  $type_flags = Helper_Flag_Type::get_flag_number_with_type( $type_flags );
67
  $with_flags = weglot_get_option( 'with_flags' );
68
- $css = file_get_contents( WEGLOT_DIR_DIST . '/css/front-amp-css.css' ); //phpcs:ignore
69
- $css = str_replace( '../images/', WEGLOT_URL_DIST . '/images/', $css );
70
- $css .= $this->option_services->get_flag_css(); //phpcs:ignore
 
 
 
 
 
 
 
 
 
 
71
 
72
  if ( $with_flags ) {
73
  foreach ( $languages_configured as $lang ) {
74
  if ( ! empty( $flags_positions[ $type_flags ][ $lang ] ) ) {
75
- $css .= '.weglot-flags.flag-' . $type_flags . '.' . $lang . ' > a:before, .weglot-flags.flag-' . $type_flags . '.' . $lang . ' > span:before { background-position: ' . $flags_positions[ $type_flags ][ $lang ] . 'px 0 !important; }';
76
  }
77
  }
78
  }
65
  $type_flags = weglot_get_option( 'type_flags' );
66
  $type_flags = Helper_Flag_Type::get_flag_number_with_type( $type_flags );
67
  $with_flags = weglot_get_option( 'with_flags' );
68
+ $css = str_replace( '../images/', WEGLOT_URL_DIST . '/images/', file_get_contents( WEGLOT_DIR_DIST . '/css/front-amp-css.css' ) );
69
+
70
+ $s = array(
71
+ '!important',
72
+ '.weglot-flags',
73
+ );
74
+
75
+ $r = array(
76
+ '',
77
+ '.weglot-flags.weglot-lang',
78
+ );
79
+
80
+ $css .= str_replace($s, $r, $this->option_services->get_flag_css()); //phpcs:ignore
81
 
82
  if ( $with_flags ) {
83
  foreach ( $languages_configured as $lang ) {
84
  if ( ! empty( $flags_positions[ $type_flags ][ $lang ] ) ) {
85
+ $css .= '.weglot-flags.flag-' . $type_flags . '.' . $lang . ' > a:before, .weglot-flags.flag-' . $type_flags . '.' . $lang . ' > span:before { background-position: ' . $flags_positions[ $type_flags ][ $lang ] . 'px 0; }';
86
  }
87
  }
88
  }
templates/admin/metaboxes/url-translate.php CHANGED
@@ -13,22 +13,24 @@ if ( 'post-new.php' === $pagenow ) {
13
  esc_html_e( 'You must first create the page a first time before you can benefit from custom URLs', 'weglot' );
14
  } else {
15
 
16
- $languages_available = weglot_get_current_languages_configured();
17
  $original_language = weglot_get_original_language();
18
  list( $permalink ) = get_sample_permalink( $post->ID );
19
- $display_link = str_replace( array( '%pagename%', '%postname%', home_url() ), '', $permalink );
20
- $display_link = implode( '/', array_filter( explode( '/', $display_link ), 'strlen' ) );
21
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
22
 
23
- if ( ! empty( $display_link ) && '/' !== $display_link[ strlen( $display_link ) - 1 ] ) {
24
- $display_link .= '/';
25
  }
26
-
27
  ?>
28
  <input type="hidden" id="weglot_post_id" data-id="<?php echo esc_attr( $post->ID ); ?>" />
29
  <?php
30
  foreach ( $languages_available as $language ) {
31
- $code = $language->getIso639();
 
 
 
32
  if ( $code === $original_language ) {
33
  continue;
34
  }
@@ -49,20 +51,29 @@ if ( 'post-new.php' === $pagenow ) {
49
  }
50
  }
51
 
52
- $display_link_translated = $display_link;
53
-
54
  if ( isset( $this->custom_urls[ $code ] ) ) {
55
- foreach ( $this->custom_urls[ $code ] as $key => $value ) {
56
- $display_link_translated = str_replace( $value . '/', $key . '/', $display_link_translated );
 
 
 
 
57
  }
58
  }
 
 
 
 
 
 
59
  ?>
60
  <label for="lang-<?php echo esc_attr( $code ); ?>">
61
  <strong><?php echo esc_html( $language->getLocalName() ); ?></strong>
62
  </label>
63
  <div class="weglot_custom_url">
64
  <p class="weglot_custom_url--text_link">
65
- <?php echo esc_url( home_url() ); ?>/<?php echo esc_attr( $code_rewrited ); ?>/<?php echo esc_attr( $display_link_translated ); ?><span id="text-edit-<?php echo esc_attr( $code ); ?>"><?php echo esc_attr( $post_name_weglot ); ?></span>
66
  <input type="text" id="lang-<?php echo esc_attr( $code ); ?>" name="post_name_weglot[<?php echo esc_attr( $code ); ?>]" value="<?php echo esc_attr( $post_name_input ); ?>" style="display:none;"/>
67
 
68
  <button type="button" class="button button-small button-weglot-lang" data-lang="<?php echo esc_attr( $code ); ?>" aria-label="Edit permalink weglot"><span class="dashicons dashicons-edit"></span> <?php esc_html_e( 'Edit', 'weglot' ); ?></button>
13
  esc_html_e( 'You must first create the page a first time before you can benefit from custom URLs', 'weglot' );
14
  } else {
15
 
16
+ $languages_available = weglot_get_languages_configured();
17
  $original_language = weglot_get_original_language();
18
  list( $permalink ) = get_sample_permalink( $post->ID );
19
+ $display_link_original = str_replace( array( '%pagename%', '%postname%', home_url() ), '', $permalink );
20
+ $display_link_original = implode( '/', array_filter( explode( '/', $display_link_original ), 'strlen' ) );
21
  $language_code_rewrited = apply_filters( 'weglot_language_code_replace', array() );
22
 
23
+ if ( ! empty( $display_link_original ) && '/' !== $display_link_original[ strlen( $display_link_original ) - 1 ] ) {
24
+ $display_link_original .= '/';
25
  }
 
26
  ?>
27
  <input type="hidden" id="weglot_post_id" data-id="<?php echo esc_attr( $post->ID ); ?>" />
28
  <?php
29
  foreach ( $languages_available as $language ) {
30
+
31
+ $display_link = $display_link_original;
32
+ $code = $language->getIso639();
33
+
34
  if ( $code === $original_language ) {
35
  continue;
36
  }
51
  }
52
  }
53
 
54
+ $display_link = '/' . untrailingslashit( $display_link ) . '/';
 
55
  if ( isset( $this->custom_urls[ $code ] ) ) {
56
+ foreach ( $this->custom_urls[ $code ] as $slug_translated => $slug_original ) {
57
+ if ( empty( $slug_translated ) || empty( $slug_original ) ) {
58
+ continue;
59
+ }
60
+ $display_link = str_replace( '/' . $slug_original . '/', '/' . $slug_translated . '/', $display_link );
61
+
62
  }
63
  }
64
+ $display_link = trim( $display_link, '/' ) . '/';
65
+
66
+ if ( '/' === $display_link ) {
67
+ $display_link = '';
68
+ }
69
+
70
  ?>
71
  <label for="lang-<?php echo esc_attr( $code ); ?>">
72
  <strong><?php echo esc_html( $language->getLocalName() ); ?></strong>
73
  </label>
74
  <div class="weglot_custom_url">
75
  <p class="weglot_custom_url--text_link">
76
+ <?php echo esc_url( home_url() ); ?>/<?php echo esc_attr( $code_rewrited ); ?>/<?php echo esc_attr( $display_link ); ?><span id="text-edit-<?php echo esc_attr( $code ); ?>"><?php echo esc_attr( $post_name_weglot ); ?></span>
77
  <input type="text" id="lang-<?php echo esc_attr( $code ); ?>" name="post_name_weglot[<?php echo esc_attr( $code ); ?>]" value="<?php echo esc_attr( $post_name_input ); ?>" style="display:none;"/>
78
 
79
  <button type="button" class="button button-small button-weglot-lang" data-lang="<?php echo esc_attr( $code ); ?>" aria-label="Edit permalink weglot"><span class="dashicons dashicons-edit"></span> <?php esc_html_e( 'Edit', 'weglot' ); ?></button>
templates/admin/pages/tabs/advanced.php CHANGED
@@ -19,7 +19,7 @@ $options_available = [
19
  'exclude_blocks' => [
20
  'key' => 'exclude_blocks',
21
  'label' => __( 'Exclusion Blocks', 'weglot' ),
22
- 'description' => __( 'Enter the CSS selector of blocks you don\'t want to translate (like a sidebar, a menu, a paragraph etc...', 'weglot' ),
23
  ],
24
  'auto_redirect' => [
25
  'key' => 'auto_redirect',
19
  'exclude_blocks' => [
20
  'key' => 'exclude_blocks',
21
  'label' => __( 'Exclusion Blocks', 'weglot' ),
22
+ 'description' => __( 'Enter the CSS selector of blocks you don\'t want to translate (like a sidebar, a menu, a paragraph, etc...)', 'weglot' ),
23
  ],
24
  'auto_redirect' => [
25
  'key' => 'auto_redirect',
templates/admin/pages/tabs/appearance.php CHANGED
@@ -202,6 +202,18 @@ $options_available = [
202
  <option value=12><?php esc_html_e( 'United Arab Emirates', 'weglot' ); ?></option>
203
  <option value=13><?php esc_html_e( 'Yemen', 'weglot' ); ?></option>
204
  </select>
 
 
 
 
 
 
 
 
 
 
 
 
205
  <p><?php esc_html_e( 'If you want to use a different flag, just ask us.', 'weglot' ); ?></p>
206
  </div>
207
  <textarea id="flag_css" name="<?php echo esc_attr( sprintf( '%s[%s]', WEGLOT_SLUG, $options_available['flag_css']['key'] ) ); ?>" style="display:none;"><?php echo esc_attr( $this->options['flag_css'] ); ?></textarea>
202
  <option value=12><?php esc_html_e( 'United Arab Emirates', 'weglot' ); ?></option>
203
  <option value=13><?php esc_html_e( 'Yemen', 'weglot' ); ?></option>
204
  </select>
205
+ <select class="flag-zh-type wg-input-select">
206
+ <option value=0><?php esc_html_e( 'Choose Simplified Chinese flag:', 'weglot' ); ?></option>
207
+ <option value=0><?php esc_html_e( 'China (default)', 'weglot' ); ?></option>
208
+ <option value=1><?php esc_html_e( 'Taiwan', 'weglot' ); ?></option>
209
+ <option value=2><?php esc_html_e( 'Hong Kong', 'weglot' ); ?></option>
210
+ </select>
211
+ <select class="flag-tw-type wg-input-select">
212
+ <option value=0><?php esc_html_e( 'Choose Traditional Chinese flag:', 'weglot' ); ?></option>
213
+ <option value=0><?php esc_html_e( 'Taiwan (default)', 'weglot' ); ?></option>
214
+ <option value=1><?php esc_html_e( 'China', 'weglot' ); ?></option>
215
+ <option value=2><?php esc_html_e( 'Hong Kong', 'weglot' ); ?></option>
216
+ </select>
217
  <p><?php esc_html_e( 'If you want to use a different flag, just ask us.', 'weglot' ); ?></p>
218
  </div>
219
  <textarea id="flag_css" name="<?php echo esc_attr( sprintf( '%s[%s]', WEGLOT_SLUG, $options_available['flag_css']['key'] ) ); ?>" style="display:none;"><?php echo esc_attr( $this->options['flag_css'] ); ?></textarea>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit9d76cd5dccc57a2e6c73f7e5d3c79a95::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderIniteebc96ca5ff853865f9832c69d55f10d
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequireeebc96ca5ff853865f9832c69d55f10d($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequireeebc96ca5ff853865f9832c69d55f10d($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit9d76cd5dccc57a2e6c73f7e5d3c79a95
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit9d76cd5dccc57a2e6c73f7e5d3c79a95', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit9d76cd5dccc57a2e6c73f7e5d3c79a95', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire9d76cd5dccc57a2e6c73f7e5d3c79a95($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire9d76cd5dccc57a2e6c73f7e5d3c79a95($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -57,10 +57,10 @@ class ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d
57
  public static function getInitializer(ClassLoader $loader)
58
  {
59
  return \Closure::bind(function () use ($loader) {
60
- $loader->prefixLengthsPsr4 = ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::$prefixLengthsPsr4;
61
- $loader->prefixDirsPsr4 = ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::$prefixDirsPsr4;
62
- $loader->prefixesPsr0 = ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::$prefixesPsr0;
63
- $loader->classMap = ComposerStaticIniteebc96ca5ff853865f9832c69d55f10d::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
57
  public static function getInitializer(ClassLoader $loader)
58
  {
59
  return \Closure::bind(function () use ($loader) {
60
+ $loader->prefixLengthsPsr4 = ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::$prefixLengthsPsr4;
61
+ $loader->prefixDirsPsr4 = ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::$prefixDirsPsr4;
62
+ $loader->prefixesPsr0 = ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::$prefixesPsr0;
63
+ $loader->classMap = ComposerStaticInit9d76cd5dccc57a2e6c73f7e5d3c79a95::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
vendor/composer/installed.json CHANGED
@@ -171,17 +171,17 @@
171
  },
172
  {
173
  "name": "weglot/weglot-php",
174
- "version": "1.0.6",
175
- "version_normalized": "1.0.6.0",
176
  "source": {
177
  "type": "git",
178
  "url": "https://github.com/weglot/weglot-php.git",
179
- "reference": "81984950d616e0b67426dcb2f6297919e9aeb018"
180
  },
181
  "dist": {
182
  "type": "zip",
183
- "url": "https://api.github.com/repos/weglot/weglot-php/zipball/81984950d616e0b67426dcb2f6297919e9aeb018",
184
- "reference": "81984950d616e0b67426dcb2f6297919e9aeb018",
185
  "shasum": ""
186
  },
187
  "require": {
@@ -194,7 +194,7 @@
194
  "codeception/codeception": "^2.4",
195
  "vlucas/phpdotenv": "^2.4"
196
  },
197
- "time": "2020-07-07T08:16:22+00:00",
198
  "type": "library",
199
  "installation-source": "dist",
200
  "autoload": {
171
  },
172
  {
173
  "name": "weglot/weglot-php",
174
+ "version": "1.0.7",
175
+ "version_normalized": "1.0.7.0",
176
  "source": {
177
  "type": "git",
178
  "url": "https://github.com/weglot/weglot-php.git",
179
+ "reference": "9013839325cfb6c45f705c556354ba8faac17a7d"
180
  },
181
  "dist": {
182
  "type": "zip",
183
+ "url": "https://api.github.com/repos/weglot/weglot-php/zipball/9013839325cfb6c45f705c556354ba8faac17a7d",
184
+ "reference": "9013839325cfb6c45f705c556354ba8faac17a7d",
185
  "shasum": ""
186
  },
187
  "require": {
194
  "codeception/codeception": "^2.4",
195
  "vlucas/phpdotenv": "^2.4"
196
  },
197
+ "time": "2020-08-12T15:45:39+00:00",
198
  "type": "library",
199
  "installation-source": "dist",
200
  "autoload": {
vendor/weglot/weglot-php/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
 
7
  ## [Unreleased]
8
 
 
 
 
 
 
9
  ## [1.0.6] - 2020-07-07
10
  ### Added
11
  - Add External links translation
6
 
7
  ## [Unreleased]
8
 
9
+ ## [1.0.7] - 2020-08-12
10
+ ### Added
11
+ - Add External links translation on iframe
12
+ - Add brazilian portuguese
13
+
14
  ## [1.0.6] - 2020-07-07
15
  ### Added
16
  - Add External links translation
vendor/weglot/weglot-php/src/Client/Factory/Languages.php CHANGED
@@ -718,6 +718,12 @@ class Languages
718
  'english' => 'Filipino',
719
  'local' => 'Pilipino',
720
  'rtl' => false,
 
 
 
 
 
 
721
  ]
722
  ];
723
  }
718
  'english' => 'Filipino',
719
  'local' => 'Pilipino',
720
  'rtl' => false,
721
+ ],
722
+ 'br' => [
723
+ 'code' => 'br',
724
+ 'english' => 'Brazilian Portuguese',
725
+ 'local' => 'Português Brasileiro',
726
+ 'rtl' => false,
727
  ]
728
  ];
729
  }
vendor/weglot/weglot-php/src/Parser/Check/Dom/ExternalLinkHref.php CHANGED
@@ -44,6 +44,5 @@ class ExternalLinkHref extends AbstractDomChecker
44
  else {
45
  return false;
46
  }
47
-
48
  }
49
  }
44
  else {
45
  return false;
46
  }
 
47
  }
48
  }
vendor/weglot/weglot-php/src/Parser/Check/Dom/IframeSrc.php CHANGED
@@ -24,13 +24,24 @@ class IframeSrc extends AbstractDomChecker
24
  /**
25
  * {@inheritdoc}
26
  */
27
- const WORD_TYPE = WordType::IFRAME_SRC;
28
 
29
  /**
30
  * {@inheritdoc}
31
  */
32
  protected function check()
33
  {
34
- return TextUtil::contains(TextUtil::fullTrim($this->node->src), '.youtube.') || TextUtil::contains(TextUtil::fullTrim($this->node->src), '.vimeo.') || TextUtil::contains(TextUtil::fullTrim($this->node->src), '.dailymotion.');
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
  }
24
  /**
25
  * {@inheritdoc}
26
  */
27
+ const WORD_TYPE = WordType::EXTERNAL_LINK;
28
 
29
  /**
30
  * {@inheritdoc}
31
  */
32
  protected function check()
33
  {
34
+ $boolean = false;
35
+
36
+ $current_url = $this->node->src;
37
+ $parsed_url = parse_url( $current_url );
38
+ $server_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST']:null;
39
+
40
+ if( isset($server_host) && isset($parsed_url['host']) && str_replace('www.', '', $parsed_url['host']) !== str_replace('www.', '', $server_host) ) {
41
+ return true;
42
+ }
43
+ else {
44
+ return false;
45
+ }
46
  }
47
  }
vendor/weglot/weglot-php/tests/unit/Client/Endpoint/LanguagesTest.php CHANGED
@@ -34,7 +34,7 @@ class LanguagesTest extends \Codeception\Test\Unit
34
  // tests
35
  public function testCount()
36
  {
37
- $this->assertEquals(108, \count($this->languages));
38
  }
39
 
40
  public function testGetCode()
34
  // tests
35
  public function testCount()
36
  {
37
+ $this->assertEquals(109, \count($this->languages));
38
  }
39
 
40
  public function testGetCode()
weglot.php CHANGED
@@ -7,7 +7,7 @@ Author: Weglot Translate team
7
  Author URI: https://weglot.com/
8
  Text Domain: weglot
9
  Domain Path: /languages/
10
- Version: 3.1.8
11
  */
12
 
13
  /**
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  define( 'WEGLOT_NAME', 'Weglot' );
23
  define( 'WEGLOT_SLUG', 'weglot-translate' );
24
  define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
25
- define( 'WEGLOT_VERSION', '3.1.8' );
26
  define( 'WEGLOT_PHP_MIN', '5.4' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );
7
  Author URI: https://weglot.com/
8
  Text Domain: weglot
9
  Domain Path: /languages/
10
+ Version: 3.1.9
11
  */
12
 
13
  /**
22
  define( 'WEGLOT_NAME', 'Weglot' );
23
  define( 'WEGLOT_SLUG', 'weglot-translate' );
24
  define( 'WEGLOT_OPTION_GROUP', 'group-weglot-translate' );
25
+ define( 'WEGLOT_VERSION', '3.1.9' );
26
  define( 'WEGLOT_PHP_MIN', '5.4' );
27
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
28
  define( 'WEGLOT_DIR', __DIR__ );