Weglot Translate – Translate your WP website - Version 3.1.3

Version Description

(29/10/2019) = * Improve compatibility: Woocommerce with IE 11 * Improve compatibility: Contact Form 7 * Improve compatibility: MailOptin * Improve compatibility: The Event Calendar * Improve compatibility: Font Awesome * Add default exclude block: address * Bugfix: Do not cache page if API answers error

Download this release

Release Info

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

Code changes from version 3.1.2 to 3.1.3

bootstrap.php CHANGED
@@ -66,6 +66,9 @@ abstract class Context_Weglot {
66
  '\WeglotWP\Third\Woocommerce\Wc_Active',
67
  '\WeglotWP\Third\WPForms\Wpforms_Active',
68
  '\WeglotWP\Third\UnderConstructionPage\Ucp_Active',
 
 
 
69
  ];
70
 
71
  self::$context->set_services( $services );
@@ -99,9 +102,11 @@ abstract class Context_Weglot {
99
  '\WeglotWP\Third\Woocommerce\WC_Filter_Urls_Weglot',
100
  '\WeglotWP\Third\Woocommerce\WC_Cart_Reload_Weglot',
101
  '\WeglotWP\Third\UnderConstructionPage\Ucp_Tracking',
 
 
102
  ];
103
 
104
- self::$context->set_actions( $actions );
105
 
106
  return self::$context;
107
  }
66
  '\WeglotWP\Third\Woocommerce\Wc_Active',
67
  '\WeglotWP\Third\WPForms\Wpforms_Active',
68
  '\WeglotWP\Third\UnderConstructionPage\Ucp_Active',
69
+ '\WeglotWP\Third\TheEventsCalendar\Theeventscalendar_Active',
70
+ '\WeglotWP\Third\MailOptin\Mailoptin_Active',
71
+ '\WeglotWP\Third\ContactForm7\Contactform7_Active',
72
  ];
73
 
74
  self::$context->set_services( $services );
102
  '\WeglotWP\Third\Woocommerce\WC_Filter_Urls_Weglot',
103
  '\WeglotWP\Third\Woocommerce\WC_Cart_Reload_Weglot',
104
  '\WeglotWP\Third\UnderConstructionPage\Ucp_Tracking',
105
+ '\WeglotWP\Third\TheEventsCalendar\Theeventscalendar_Words',
106
+ '\WeglotWP\Third\Contactform7\Contactform7_Json_Keys',
107
  ];
108
 
109
+ self::$context->set_actions( $actions );
110
 
111
  return self::$context;
112
  }
dist/metaboxes-js.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=6)}([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),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var a=arguments[1],o=0;o<n;){var r=t[o];if(e.call(a,r,o,t))return r;o++}},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 n=this.length>>>0,a=new Array(n),o=this,r=0,i=-1;if(void 0===t)for(;++i!==n;)i in this&&e(o[i],i,o)&&(a[r++]=o[i]);else for(;++i!==n;)i in this&&e.call(t,o[i],i,o)&&(a[r++]=o[i]);return a.length=r,a})},function(e,t,n){var a;a=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","Ґ":"G","ґ":"g","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"bg":{"locale":"Bulgarian","ѝ":"u"}}');function n(n,a){if("string"!=typeof n)throw new Error("slugify: string argument expected");var o=t[(a="string"==typeof a?{replacement:a}:a||{}).locale]||{},r=n.split("").reduce(function(t,n){return t+(o[n]||e[n]||n).replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")},"").trim().replace(/[-\s]+/g,a.replacement||"-");return a.lower?r.toLowerCase():r}return n.extend=function(t){for(var n in t)e[n]=t[n]},n},e.exports=a(),e.exports.default=a()},,,,function(e,t,n){"use strict";n.r(t);n(0),n(1);var a=n(2),o=n.n(a);(()=>{const e=jQuery,t=()=>{let t={};const n=function(n){const a=e(this).data("lang"),r=o()(e(`#lang-${a}`).val(),{lower:!0,replacement:"-"});e(`#text-edit-${a}`).text(r),e(`#lang-${a}`).hide(),e(this).hide(),e(`.button-weglot-lang[data-lang=${a}]`).show(),e.ajax({url:ajaxurl,method:"POST",data:{action:"weglot_post_name",lang:a,id:e("#weglot_post_id").data("id"),post_name:r},success:function(n){if(n.data&&n.data.code&&"same_post_name"===n.data.code)return e(`#text-edit-${a}`).text(t[a]),void e(`#lang-${a}`).val("");n.data&&n.data.code&&"not_available"===n.data.code&&(e(`#weglot_permalink_not_available_${a}`).show(),e(`#lang-${a}`).val(""),setTimeout(()=>{e(`#weglot_permalink_not_available_${a}`).hide()},5e3)),e(`#text-edit-${a}`).text(n.data.result.slug)}})};e(".button-weglot-lang").each((a,o)=>{e(o).on("click",function(n){n.preventDefault();const a=e(this).data("lang"),o=e(`#text-edit-${a}`).text();t[a]=o,e(`#text-edit-${a}`).text(" "),e(`#lang-${a}`).val(o).show(),e(`.button-weglot-lang-submit[data-lang=${a}]`).show(),e(this).hide()});const r=e(o).data("lang");e(`.button-weglot-lang-submit[data-lang=${r}]`).on("click",n)}),e(".weglot_reset").each((t,n)=>{e(n).on("click",function(t){t.preventDefault();const n=e(this).data("lang"),a=e(this).attr("href"),o=e(this).data("id");e.ajax({url:ajaxurl,method:"POST",data:{action:"weglot_reset_custom_url",code_lang:n,id:o,custom_url:a},success:function(t){e(`#text-edit-${n}`).text(t.data.result.slug)}})})})};document.addEventListener("DOMContentLoaded",()=>{t()})})()}]);
1
+ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=6)}([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),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var a=arguments[1],o=0;o<n;){var r=t[o];if(e.call(a,r,o,t))return r;o++}},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 n=this.length>>>0,a=new Array(n),o=this,r=0,i=-1;if(void 0===t)for(;++i!==n;)i in this&&e(o[i],i,o)&&(a[r++]=o[i]);else for(;++i!==n;)i in this&&e.call(t,o[i],i,o)&&(a[r++]=o[i]);return a.length=r,a})},function(e,t,n){var a;a=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function n(n,a){if("string"!=typeof n)throw new Error("slugify: string argument expected");var o=t[(a="string"==typeof a?{replacement:a}:a||{}).locale]||{},r=n.split("").reduce(function(t,n){return t+(o[n]||e[n]||n).replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")},"").trim().replace(/[-\s]+/g,a.replacement||"-");return a.lower?r.toLowerCase():r}return n.extend=function(t){for(var n in t)e[n]=t[n]},n},e.exports=a(),e.exports.default=a()},,,,function(e,t,n){"use strict";n.r(t);n(0),n(1);var a=n(2),o=n.n(a);(()=>{const e=jQuery,t=()=>{let t={};const n=function(n){const a=e(this).data("lang"),r=o()(e(`#lang-${a}`).val(),{lower:!0,replacement:"-"});e(`#text-edit-${a}`).text(r),e(`#lang-${a}`).hide(),e(this).hide(),e(`.button-weglot-lang[data-lang=${a}]`).show(),e.ajax({url:ajaxurl,method:"POST",data:{action:"weglot_post_name",lang:a,id:e("#weglot_post_id").data("id"),post_name:r},success:function(n){if(n.data&&n.data.code&&"same_post_name"===n.data.code)return e(`#text-edit-${a}`).text(t[a]),void e(`#lang-${a}`).val("");n.data&&n.data.code&&"not_available"===n.data.code&&(e(`#weglot_permalink_not_available_${a}`).show(),e(`#lang-${a}`).val(""),setTimeout(()=>{e(`#weglot_permalink_not_available_${a}`).hide()},5e3)),e(`#text-edit-${a}`).text(n.data.result.slug)}})};e(".button-weglot-lang").each((a,o)=>{e(o).on("click",function(n){n.preventDefault();const a=e(this).data("lang"),o=e(`#text-edit-${a}`).text();t[a]=o,e(`#text-edit-${a}`).text(" "),e(`#lang-${a}`).val(o).show(),e(`.button-weglot-lang-submit[data-lang=${a}]`).show(),e(this).hide()});const r=e(o).data("lang");e(`.button-weglot-lang-submit[data-lang=${r}]`).on("click",n)}),e(".weglot_reset").each((t,n)=>{e(n).on("click",function(t){t.preventDefault();const n=e(this).data("lang"),a=e(this).attr("href"),o=e(this).data("id");e.ajax({url:ajaxurl,method:"POST",data:{action:"weglot_reset_custom_url",code_lang:n,id:o,custom_url:a},success:function(t){e(`#text-edit-${n}`).text(t.data.result.slug)}})})})};document.addEventListener("DOMContentLoaded",()=>{t()})})()}]);
readme.txt CHANGED
@@ -1,145 +1,190 @@
1
  === Translate WP website - Weglot Translate ===
2
- Contributors: remyb92, gmulti, wysija
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
- Tested up to: 5.2
6
  Requires PHP: 5.4
7
- Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Translate your website into multiple languages without any code. Weglot Translate is fully SEO compatible and follows Google’s best practices.
12
 
13
  == Description ==
14
- The best and easiest translation solution to translate your WordPress website and go multilingual:
15
- Weglot Translate detects and translates all your content in any language and provides
16
- a unique dashboard to edit translations or purchase professional translations to ensure the quality of translations.
17
 
18
- With Weglot Translate, you can translate your site into a multilingual website with multiple languages in minutes without doing any code.
19
- Weglot Translate is totally SEO compatible. Weglot Translate follows Google's best practice in terms of multilingual websites to serve a translated webpage with clean source code. Every translated version of your website will be indexed by Google.
20
 
21
- Weglot Translate, a WP multi language plugin, is trusted by companies in e-commerce, SaaS, marketplaces, corporate websites, mobile application landing pages, blogs, etc.
 
 
 
 
 
22
 
23
  Check Weglot Translate in video:
24
 
25
  [youtube https://www.youtube.com/watch?v=wmZLvhWX29k]
26
 
27
- Weglot Translate benefits:
28
 
29
- - Fully compatible with all themes and plugins: Weglot Translate will translate every string in the page. Weglot translates WooCommerce products, checkout, order emails...
30
- - 60+ translation languages available
31
- - A unique and single place to manage all your languages and translations
32
- - Content automatically detected and translated: content is the only thing you need to care about.
33
- - You do not need to search for translation files (.po) or any other WordPress source files.
34
- - Translations constantly displayed in real-time
35
- - Access to professional translators if you need quality translations.
36
- - Optimized SEO in new languages with dedicated URLs: translated pages will have dedicated URLs, as Google best practice for multilingual sites.
37
- - Language switch button is customizable.
38
 
39
- Is Weglot Translate free?
 
 
 
 
 
 
 
 
 
 
40
 
41
  Weglot Translate is free for small websites (under 2000 words) with one translation language.
42
- Weglot Translate has Free and Premium plans available on the [pricing page](https://weglot.com/pricing), depending on your needs. You can always take the Weglot Translate free trial version to test it.
43
- Weglot Translate offers professional support to premium users to help them translate their websites.
 
44
 
45
- Can I migrate from WPML or Polylang to Weglot Translate?
46
 
47
- Yes, you can easily migrate to Weglot Translate. Simply deactivate WPML or Polylang to only have one multilingual plugin. Then start using Weglot Translate normally. If you need to import some translations contact us directly at support@weglot.com
 
48
 
49
- Does Weglot Translate provide support?
50
 
51
- Yes, the Weglot Translate team will support everyone. Post a topic on the [support forum](https://wordpress.org/support/plugin/weglot) or email us at support@weglot.com or speak with us on our live chat on the Weglot website.
52
 
53
- Weglot Translate plugin is translated in Dutch, English_UK, French, German, Italian, Portuguese_BR, Russian and Spanish. More translations will be added.
 
54
 
55
- Weglot Translate, go multilingual now.
56
 
57
  = Help translate the plugin =
58
 
59
- You can help translate Weglot Translate plugin on [__translate.wordpress.org__](https://translate.wordpress.org/projects/wp-plugins/weglot).
 
60
 
61
  == Installation ==
62
 
63
- = Minimum Requirements for Weglot Translate =
64
  * WordPress 4.5 or greater
65
  * PHP version 5.4 or greater
66
  * Rewrite rules activated
67
 
68
- = Installation steps for Weglot Translate =
 
 
69
  Weglot Translate is easy to set up:
70
 
71
  1. Go to [https://dashboard.weglot.com/register-wordpress](https://dashboard.weglot.com/register-wordpress) to set up an account.
72
- 2. Grab your api_key from your dashboard, it looks like "wg_XXXXXXX"
73
  3. Find the Weglot Translate settings page on the bottom left of your WordPress admin dashboard.
74
- 4. Add and save your api key to Weglot Translate settings, enter your website's original language and enter the translation languages you want, separated by commas (for instance en,de,pt to have translations in English, German and Portuguese).
75
- 5. Choose the appearance for the translation button (flags, list or dropdown, translation language fullname or code).
76
- 6. Click on the Save button.
77
- 7. (Optional) Go to Appearance -&gt; Widgets and drag and drop the "Weglot Translate" widget where you want it to appear.
78
- 8. Refresh your web page, your website is now available in the selected translation languages. You can switch languages to see translated pages.
79
- 9. If you want, you can edit your translations directly in [your account](https://dashboard.weglot.com/translations/)
 
80
 
81
 
82
  == Frequently Asked Questions ==
 
 
83
  = Is Weglot Translate free? =
 
84
  Weglot Translate is a freemium plugin: it is free for small websites (under 2000 words) with one translation language. If you need more, you can upgrade. Details of our pricing can be found [here](https://weglot.com/pricing)
 
 
85
 
86
- In any case, you can try Weglot Translate free for 10 days.
87
  = Edit my translations =
88
- With Weglot Translate, you can modify translations in "Translations" in your Weglot [account here](https://dashboard.weglot.com/translations/). If you change a translation, it's automatically saved and displayed on your website.
89
- = The translations I edited are not displayed on my website. =
90
 
91
- All translations edited in your dashboard are automatically displayed in real-time in the translated versions of your website. If you can not see your new translations:
 
 
 
 
 
92
 
93
- 1. Empty your cache plugin: it will enable new translations to be properly displayed. If it's still not showing your new translations then:
 
94
 
95
- 2. Go into your Weglot account and check you edited the right translations: use the search bar (at the top) to easily find translations you want to edit. Sometimes you can have 2 very similar translations and edited the wrong one.
96
 
97
  = Change the appearance of the Weglot Translate language button =
98
- You can change one of the three set-up items in your Weglot Translate settings (with/without flags, horizontal or dropdown menu, full language name or 2-letter code) or overwrite the CSS.
99
- = Change the position of the Weglot Translate language button =
100
- With widget areas, you can drag and drop the Weglot Translate widget.
101
 
102
- Alternatively, use overwrite CSS to change the Weglot Translate button position or ask the Weglot Translate team at support@weglot.com. We will help you.
 
103
 
104
- You can also put the button in the navigation menu by checking the option in the Weglot settings page. Be aware that putting the button in the menu might change the appearance of the button a bit as there are already some style (CSS) rules active in the menu.
 
 
 
 
 
 
105
 
106
- You can additionally use a shortcode: [weglot_switcher]
107
 
108
- Finally, you can also add &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; anywhere in your code and a Weglot button will be positioned at this place.
109
  = SEO and translations =
110
- Weglot Translate creates a dedicated URL for each language to ensure the proper indexation of your translated content by Search Engines (Google, ...). SEO tags are also translated and editable in your Weglot Translate account. Translated pages will be on a sub-directory.
 
 
 
111
  = Translated URLs =
112
- Weglot Translate chooses to not translate URLs, as this could break URLs with non-Roman characters (for example, Chinese, Russian alphabets) and it has no proven impact on SEO. Finally, Google, Amazon, Airbnb, etc... are not doing it.
113
- = Translate image/video =
114
- With Weglot Translate, you can add different images for different languages. This is useful if you have text in an image and you want to display a translated image in your translated version. To do this, you can simply upload your other translated image in your gallery and then link it by going to your dashboard and searching for the original URL in the translations list.
 
 
 
 
 
 
115
  = Translation exclusions =
116
- You can exclude pages from translations if you don't want them to be translated or just part of pages by using CSS selectors.
117
- To do this, go in the WordPress panel -&gt; Weglot settings page and use the field "Translation Exclusion".
 
118
 
119
  = Translation exceptions =
 
120
  You can create your own translation rules in your Weglot dashboard by clicking on Translation Options, allowing you to:
121
 
122
- 1. Add Exception Rules, such as "Never translate" or "Always translate" a word/expression in a custom way (for example, if you do not want to translate your brand name).
 
 
 
 
 
 
123
 
124
- 2. Use the "Search and Replace" tool to easily search for a word in all your translations and replace it with the one you want.
125
 
126
  = Support =
127
- If you have any questions about Weglot Translate, please post a topic on the [support forum](https://wordpress.org/support/plugin/weglot) or contact us at support@weglot.com or directly using our live chat on [https://weglot.com] (https://weglot.com).
128
 
129
- == Instructions ==
 
 
 
 
 
 
 
 
 
 
 
 
130
  Weglot Translate is easy to set up:
131
 
132
  [youtube http://www.youtube.com/watch?v=cdoBED8p3HQ]
133
 
134
- 1. Go to [https://dashboard.weglot.com/register-wordpress](https://dashboard.weglot.com/register-wordpress) to set up an account
135
- 2. Grab your api_key from your dashboard, it looks like "wg_XXXXXXX"
136
  3. Find the Weglot Translate settings page on the bottom left of your WordPress admin dashboard.
137
- 4. Add and save your api key to Weglot Translate settings, enter your website's original language and enter the translation languages you want, separated by commas (for instance en,de,pt to have translations in English, German and Portuguese).
138
- 5. Choose the appearance for the translation button (flags, list or dropdown, translation language fullname or code)
139
- 6. Click on the Save button.
140
- 7. (Optional) Go to Appearance -> Widgets and drag and drop the "Weglot Translate" widget where you want it to appear.
141
- 8. Refresh your web page, your website is now available in the selected translation languages. You can switch languages to see translated pages.
142
- 9. If you want, you can edit your translations directly in [your account](https://dashboard.weglot.com/translations/)
 
 
143
 
144
  == Screenshots ==
145
 
@@ -148,26 +193,38 @@ Weglot Translate is easy to set up:
148
  3. Weglot Translate dashboard, translation edition
149
  4. Weglot Translate visual editor
150
 
 
151
  == Upgrade Notice ==
 
152
  See changelog for upgrade changes.
153
 
 
154
  == Changelog ==
155
 
 
 
 
 
 
 
 
 
 
156
  = 3.1.2 (24/09/2019) =
157
- - Bugfix: Custom URL with GET parameters
158
- - Bugfix: Ninja Forms JSON translate
159
- - Bugfix: Prevent errors due to call protected method
160
 
161
  = 3.1.1 (11/09/2019) =
162
- - Add: IE 11 compatibility with languages switcher
163
- - Add: WP-CLI compatibility
164
- - Bugfix: admin api call
165
- - Bugfix: double language when WC + multisite with subdomains
166
- - Bugfix: do not add language on external links also in JSON
167
 
168
  = 3.1.0 (29/08/2019) =
169
- - Add: Better JSON compatiblity
170
- - Bugfix: WC password reset mechanism
171
 
172
  = 3.0.6 (28/05/2019) =
173
  * Add: Compatibility with WP Forms
1
  === Translate WP website - Weglot Translate ===
2
+ Contributors: remyb92, gmulti, wysija, wpr0ck
3
  Tags: translate, multilingual, language, translation, localization
4
  Requires at least: 4.5
5
+ Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 3.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Translate your website into multiple languages without any code. Weglot Translate is fully SEO compatible and follows Google’s best practices.
12
 
13
  == Description ==
 
 
 
14
 
15
+ Weglot Translate is the best and easiest translation plugin to translate your WordPress website and go multilingual.
 
16
 
17
+ Weglot Translate translates all your content into any language and provides a one-stop dashboard to edit translations or outsource to professional translators, to ensure that your translations are of the highest quality.
18
+ With Weglot Translate, you can translate your site into a multilingual website in minutes without coding anything.
19
+
20
+ Weglot Translate is SEO compatible. Plus, Weglot Translate follows Google’s best practices for multilingual websites, serving all translated webpages with clean source code. Every translated version of your website will be indexed by Google.
21
+
22
+ Weglot Translate is trusted by e-commerce (WooCommerce) companies, SaaS firms, marketplaces, corporate websites, mobile application landing pages, blogs, and more.
23
 
24
  Check Weglot Translate in video:
25
 
26
  [youtube https://www.youtube.com/watch?v=wmZLvhWX29k]
27
 
 
28
 
29
+ = Weglot Translate benefits: =
 
 
 
 
 
 
 
 
30
 
31
+ - Fully compatible with all themes and plugins: Weglot Translate will translate every string on every page of your site, no matter where it was generated. Weglot translates WooCommerce products, checkout, order emails…
32
+ - 100+ translation languages available
33
+ - Human and automatic translations: A single dashboard to manage and edit all of your translations
34
+ - Content automatically detected and translated. You do not need to search for translation files (.po) or any other WordPress source files.
35
+ - Translations are updated in real time.
36
+ - Access to professional translators, if needed
37
+ - Optimized SEO in new languages with dedicated URLs: translated pages will have dedicated URLs, as Google recommends for multilingual sites.
38
+ - Your language switch button is completely customizable.
39
+
40
+
41
+ = Is Weglot Translate free? =
42
 
43
  Weglot Translate is free for small websites (under 2000 words) with one translation language.
44
+ Weglot Translate has Free and Premium plans available on the pricing page, depending on your needs. You can always try out the Weglot Translate 10-day free trial version.
45
+ Weglot Translate offers professional support to all users to help them translate their websites, with priority accorded to premium members.
46
+
47
 
48
+ = Can I migrate from WPML or Polylang to Weglot Translate? =
49
 
50
+ Yes, you can easily migrate from Polylang or WPML to Weglot Translate. Simply deactivate whichever translation plugin—like WPML or Polylang—you already have; you’ll immediately be able to start using Weglot Translate.
51
+ If you need to import any preexisting translations, feel free to contact us directly at support@weglot.com.
52
 
 
53
 
54
+ = Does Weglot Translate provide support? =
55
 
56
+ Yes, the Weglot Translate team will support everyone. Post a topic on the support forum,email us at support@weglot.com.
57
+ Weglot Translate: go multilingual now.
58
 
 
59
 
60
  = Help translate the plugin =
61
 
62
+ You can help make the Weglot Translate plugin available in more languages on [__translate.wordpress.org__](https://translate.wordpress.org/projects/wp-plugins/weglot).
63
+
64
 
65
  == Installation ==
66
 
67
+ = Weglot minimum requirements =
68
  * WordPress 4.5 or greater
69
  * PHP version 5.4 or greater
70
  * Rewrite rules activated
71
 
72
+
73
+ = Weglot translate instructions =
74
+
75
  Weglot Translate is easy to set up:
76
 
77
  1. Go to [https://dashboard.weglot.com/register-wordpress](https://dashboard.weglot.com/register-wordpress) to set up an account.
78
+ 2. Copy your API key from your Weglot dashboard. It will look something like: “wg_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”.
79
  3. Find the Weglot Translate settings page on the bottom left of your WordPress admin dashboard.
80
+ 4. Paste your API key into the appropriate space under Weglot Translate settings, and click save. Then enter your websites original language and the translation languages you want.
81
+ 5. Now’s the fun part: personalize your translation button style (add or delete flag icons, make the language list a dropdown if you want, display each language’s full name or 2-letter language code...)
82
+ 6. Click Save.”.
83
+ 7.(Optional) Go to Appearance -&gt; Widgets, then drag and drop the « Weglot Translate » widget where you want it to appear.
84
+ Refresh your web page.Your website is now available in the selected translation languages. You can switch languages to see your live translated pages.
85
+
86
+ When you’re ready, you can edit your translations directly in [your account](https://dashboard.weglot.com/translations/).
87
 
88
 
89
  == Frequently Asked Questions ==
90
+
91
+
92
  = Is Weglot Translate free? =
93
+
94
  Weglot Translate is a freemium plugin: it is free for small websites (under 2000 words) with one translation language. If you need more, you can upgrade. Details of our pricing can be found [here](https://weglot.com/pricing)
95
+ Anyone can try Weglot Translate free for 10 days.
96
+
97
 
 
98
  = Edit my translations =
 
 
99
 
100
+ With Weglot Translate, you can modify translations under the « Translations » tab in your Weglot account, [here](https://dashboard.weglot.com/translations/). If you change a translation, it’s automatically saved and displayed on your website.
101
+
102
+
103
+ = The translations I edited are not displayed on my website =
104
+
105
+ All translations edited in your dashboard are automatically displayed in real-time on the translated versions of your website. If you can not see your new translations:
106
 
107
+ 1. Clear your cache plugin: it will enable new translations to be properly displayed. If your new translations still don’t show up, then:
108
+ 2. Go into your Weglot account and check you edited the right translations. Use the search bar (at the top) to easily find the translations you want to edit. It’s possible that you have 2 very similar translations, and may have simply edited the wrong one.
109
 
 
110
 
111
  = Change the appearance of the Weglot Translate language button =
 
 
 
112
 
113
+ You can change any of the three pre-set button parameters in your Weglot Translate settings (display/don’t display flags, horizontal or dropdown menu, full language name or 2-letter code), or overwrite the CSS with personalized settings.
114
+
115
 
116
+ = Change the position of the Weglot Translate language button =
117
+
118
+ * With widget areas, you can drag and drop the Weglot Translate widget.
119
+ * Alternatively, you can overwrite the existing CSS to change the Weglot Translate button position or ask the Weglot Translate team at support@weglot.com. We will help you.
120
+ * You can also put the button in your site’s navigation menu by checking the option in the Weglot settings page. Be aware that putting the button in the menu might change the appearance of the button a bit, as there are already some style (CSS) rules active in the menu.
121
+ * You can additionally use a shortcode: [weglot_switcher]
122
+ * Finally, you can also add <div id="weglot_here"></div> anywhere in your code and a Weglot button will be positioned at this location.
123
 
 
124
 
 
125
  = SEO and translations =
126
+
127
+ Weglot Translate creates a dedicated URL for each language to ensure the proper indexation of your translated content on search engines (Google, …). SEO tags are also translated and editable within your Weglot Translate account. Translated pages will each be located on a subdirectory.
128
+
129
+
130
  = Translated URLs =
131
+
132
+ Weglot Translate does not translate URLs, as this could break URLs with non-Roman characters (for example, on sites in languages using theChinese or Cyrillic alphabets) and it has no proven impact on SEO. Rest assured: the internet’s biggest sites, likeGoogle, Amazon, Airbnb, etc… don’t do this, either.
133
+
134
+
135
+ = Translate images/videos =
136
+
137
+ With Weglot Translate, you can add different images for different languages. This is useful if you have text in an image and you want to display a “translated” image in your translated version. To do this, you can simply upload your other translated image into your WordPress gallery. Then, you can link it to the correct translated version of your site by going to your Weglot dashboard and searching for the original URL in the translations list; replace this URL with the newly-uploaded “translated” image’s URL in the translation column.
138
+
139
+
140
  = Translation exclusions =
141
+
142
+ You can exclude pages, or parts of pages, from translation if you don’t want them to be translated, by using CSS selectors.
143
+ To do this, go into the WordPress admin panel --&gt; Weglot settings,and use the field « Translation Exclusion ».
144
 
145
  = Translation exceptions =
146
+
147
  You can create your own translation rules in your Weglot dashboard by clicking on Translation Options, allowing you to:
148
 
149
+ 1. Add Exception Rules, such as « Never translate » or « Always translate » a word/expression in a custom way (for example, if you do not want to translate your brand name).
150
+ 2. Use the « Search and Replace » tool to easily search for a word in all your translations and replace it with the one you want.
151
+
152
+
153
+ = Is Weglot Translate compatible with WooCommerce? =
154
+
155
+ Yes, you can use Weglot Translate to translate WooCommerce store sites without any compatibility issues. Even your checkout page is translated—and the translations are editable from your Weglot Translate dashboard.
156
 
 
157
 
158
  = Support =
 
159
 
160
+ If you have any questions about Weglot Translate, please post a topic on the [support forum](https://wordpress.org/support/plugin/weglot) or contact us at support@weglot.com.
161
+
162
+
163
+ == Instructions ==
164
+
165
+ = WEGLOT MINIMUM REQUIREMENTS =
166
+
167
+ * WordPress 4.5 or greater
168
+ * PHP version 5.4 or greater
169
+
170
+
171
+ = WEGLOT TRANSLATE INSTRUCTIONS =
172
+
173
  Weglot Translate is easy to set up:
174
 
175
  [youtube http://www.youtube.com/watch?v=cdoBED8p3HQ]
176
 
177
+ 1. Go to [https://dashboard.weglot.com/register-wordpress](https://dashboard.weglot.com/register-wordpress) to set up an account.
178
+ 2. Copy your API key from your Weglot dashboard. It will look something like: “wg_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”.
179
  3. Find the Weglot Translate settings page on the bottom left of your WordPress admin dashboard.
180
+ 4. Paste your API key into the appropriate space under Weglot Translate settings, and click save. Then enter your websites original language and the translation languages you want.
181
+ 5. Now’s the fun part: personalize your translation button style (add or delete flag icons, make the language list a dropdown if you want, display each language’s full name or 2-letter language code...)
182
+ 6. Click Save.”.
183
+ 7.(Optional) Go to Appearance -&gt; Widgets, then drag and drop the « Weglot Translate » widget where you want it to appear.
184
+ Refresh your web page.Your website is now available in the selected translation languages. You can switch languages to see your live translated pages.
185
+
186
+ When you’re ready, you can edit your translations directly in [your account](https://dashboard.weglot.com/translations/).
187
+
188
 
189
  == Screenshots ==
190
 
193
  3. Weglot Translate dashboard, translation edition
194
  4. Weglot Translate visual editor
195
 
196
+
197
  == Upgrade Notice ==
198
+
199
  See changelog for upgrade changes.
200
 
201
+
202
  == Changelog ==
203
 
204
+ = 3.1.3 (29/10/2019) =
205
+ * Improve compatibility: Woocommerce with IE 11
206
+ * Improve compatibility: Contact Form 7
207
+ * Improve compatibility: MailOptin
208
+ * Improve compatibility: The Event Calendar
209
+ * Improve compatibility: Font Awesome
210
+ * Add default exclude block: address
211
+ * Bugfix: Do not cache page if API answers error
212
+
213
  = 3.1.2 (24/09/2019) =
214
+ * Bugfix: Custom URL with GET parameters
215
+ * Bugfix: Ninja Forms JSON translate
216
+ * Bugfix: Prevent errors due to call protected method
217
 
218
  = 3.1.1 (11/09/2019) =
219
+ * Add: IE 11 compatibility with languages switcher
220
+ * Add: WP-CLI compatibility
221
+ * Bugfix: admin api call
222
+ * Bugfix: double language when WC + multisite with subdomains
223
+ * Bugfix: do not add language on external links also in JSON
224
 
225
  = 3.1.0 (29/08/2019) =
226
+ * Add: Better JSON compatiblity
227
+ * Bugfix: WC password reset mechanism
228
 
229
  = 3.0.6 (28/05/2019) =
230
  * Add: Compatibility with WP Forms
src/services/class-option-service-weglot.php CHANGED
@@ -389,7 +389,10 @@ class Option_Service_Weglot {
389
  $exclude_blocks[] = '.mini-cart-counter';
390
  $exclude_blocks[] = '.material-icons';
391
  $exclude_blocks[] = '.fas';
 
 
392
  $exclude_blocks[] = '.amount'; //Added to prevent prices to pass
 
393
 
394
  return apply_filters( 'weglot_exclude_blocks', $exclude_blocks );
395
  }
389
  $exclude_blocks[] = '.mini-cart-counter';
390
  $exclude_blocks[] = '.material-icons';
391
  $exclude_blocks[] = '.fas';
392
+ $exclude_blocks[] = '.far';
393
+ $exclude_blocks[] = '.fad';
394
  $exclude_blocks[] = '.amount'; //Added to prevent prices to pass
395
+ $exclude_blocks[] = 'address';
396
 
397
  return apply_filters( 'weglot_exclude_blocks', $exclude_blocks );
398
  }
src/services/class-translate-service-weglot.php CHANGED
@@ -110,6 +110,8 @@ class Translate_Service_Weglot {
110
  }
111
  } catch ( ApiError $e ) {
112
  if ( 'json' !== $type ) {
 
 
113
  $content .= '<!--Weglot error API : ' . $this->remove_comments( $e->getMessage() ) . '-->';
114
  }
115
  if ( strpos( $e->getMessage(), 'NMC' ) !== false ) {
@@ -118,6 +120,8 @@ class Translate_Service_Weglot {
118
  return $content;
119
  } catch ( \Exception $e ) {
120
  if ( 'json' !== $type ) {
 
 
121
  $content .= '<!--Weglot error : ' . $this->remove_comments( $e->getMessage() ) . '-->';
122
  }
123
  return $content;
110
  }
111
  } catch ( ApiError $e ) {
112
  if ( 'json' !== $type ) {
113
+ define( 'DONOTCACHEPAGE', 1 );
114
+ nocache_headers();
115
  $content .= '<!--Weglot error API : ' . $this->remove_comments( $e->getMessage() ) . '-->';
116
  }
117
  if ( strpos( $e->getMessage(), 'NMC' ) !== false ) {
120
  return $content;
121
  } catch ( \Exception $e ) {
122
  if ( 'json' !== $type ) {
123
+ define( 'DONOTCACHEPAGE', 1 );
124
+ nocache_headers();
125
  $content .= '<!--Weglot error : ' . $this->remove_comments( $e->getMessage() ) . '-->';
126
  }
127
  return $content;
src/third/contactform7/class-contactform7-active.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\ContactForm7;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+
10
+ use WeglotWP\Models\Third_Active_Interface_Weglot;
11
+
12
+
13
+ /**
14
+ * Contactform7_Active
15
+ *
16
+ * @since 3.1.2
17
+ */
18
+ class Contactform7_Active implements Third_Active_Interface_Weglot {
19
+
20
+ /**
21
+ * @since 3.1.2
22
+ * @return boolean
23
+ */
24
+ public function is_active() {
25
+ if ( ! function_exists( 'is_plugin_active' ) ) {
26
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
27
+ }
28
+
29
+ $active = true;
30
+
31
+ if ( ! is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
32
+ $active = false;
33
+ }
34
+
35
+ return apply_filters( 'weglot_contactform7_is_active', $active );
36
+ }
37
+ }
src/third/contactform7/class-contactform7-json-keys.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\ContactForm7;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+ use WeglotWP\Helpers\Helper_Is_Admin;
10
+ use WeglotWP\Models\Hooks_Interface_Weglot;
11
+
12
+ /**
13
+ * Contactform7_Add_Json_Keys
14
+ *
15
+ * @since 3.1.2
16
+ */
17
+ class Contactform7_Json_Keys implements Hooks_Interface_Weglot {
18
+
19
+ /**
20
+ * @since 3.1.2
21
+ * @return void
22
+ */
23
+ public function __construct() {
24
+ $this->contactform7_active_services = weglot_get_service( 'Contactform7_Active' );
25
+ }
26
+
27
+ /**
28
+ * @since 3.1.2
29
+ * @see Hooks_Interface_Weglot
30
+ * @return void
31
+ */
32
+ public function hooks() {
33
+
34
+ if ( ! $this->contactform7_active_services->is_active() ) {
35
+ return;
36
+ }
37
+
38
+ add_filter( 'weglot_add_json_keys', [ $this, 'weglot_contactform7_keys' ] );
39
+ }
40
+
41
+
42
+ /**
43
+ * @since 3.1.2
44
+ * @return void
45
+ */
46
+ public function weglot_contactform7_keys( $keys ) {
47
+ $keys[] = 'message';
48
+ return $keys;
49
+ }
50
+
51
+ }
src/third/mailoptin/class-mailoptin-active.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\MailOptin;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+
10
+ use WeglotWP\Models\Third_Active_Interface_Weglot;
11
+
12
+
13
+
14
+ /**
15
+ * Mailoptin_Active
16
+ *
17
+ * @since 3.1.2
18
+ */
19
+ class Mailoptin_Active implements Third_Active_Interface_Weglot {
20
+
21
+ /**
22
+ * MailOptin forms is active ?
23
+ * @since 3.1.2
24
+ *
25
+ * @return boolean
26
+ */
27
+ public function is_active() {
28
+ if ( ! function_exists( 'is_plugin_active' ) ) {
29
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
30
+ }
31
+
32
+ $active = true;
33
+
34
+ if ( ! is_plugin_active( 'mailoptin/mailoptin.php' ) ) {
35
+ $active = false;
36
+ }
37
+
38
+ return apply_filters( 'weglot_mailoptin_forms_is_active', $active );
39
+ }
40
+ }
src/third/mailoptin/regexcheckers/class-mailoptin-json.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\MailOptin\Regexcheckers;
4
+
5
+ use Weglot\Parser\Check\Regex\RegexChecker;
6
+ use Weglot\Util\SourceType;
7
+
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * @since 3.1.2
15
+ */
16
+ class Mailoptin_Json
17
+ {
18
+ const REGEX = '#\<script type="text\/javascript">var .*_lightbox = (.*);\<\/script\>#';
19
+
20
+ const TYPE = SourceType::SOURCE_JSON;
21
+
22
+ const VAR_NUMBER = 1;
23
+
24
+ public static $KEYS = array(
25
+ 'success_message',
26
+ 'unexpected_error',
27
+ 'email_missing_error',
28
+ 'name_missing_error',
29
+ 'note_acceptance_error',
30
+ 'honeypot_error',
31
+ );
32
+ }
src/third/ninjaforms/regexcheckers/class-ninja-form-json-fields.php CHANGED
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
15
  */
16
  class Ninja_Form_Json_Fields
17
  {
18
- const REGEX = '#form.fields=(.*?);#';
19
 
20
  const TYPE = SourceType::SOURCE_JSON;
21
 
15
  */
16
  class Ninja_Form_Json_Fields
17
  {
18
+ const REGEX = '#form.fields=(.*?);nfForms#';
19
 
20
  const TYPE = SourceType::SOURCE_JSON;
21
 
src/third/theeventscalendar/class-theeventscalendar-active.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\TheEventsCalendar;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+
10
+ use WeglotWP\Models\Third_Active_Interface_Weglot;
11
+
12
+
13
+ /**
14
+ * Theeventscalendar_Active
15
+ *
16
+ * @since 3.1.2
17
+ */
18
+ class Theeventscalendar_Active implements Third_Active_Interface_Weglot {
19
+
20
+ /**
21
+ * @since 3.1.2
22
+ * @return boolean
23
+ */
24
+ public function is_active() {
25
+ if ( ! function_exists( 'is_plugin_active' ) ) {
26
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
27
+ }
28
+
29
+ $active = true;
30
+
31
+ if ( ! is_plugin_active( 'the-events-calendar/the-events-calendar.php' ) ) {
32
+ $active = false;
33
+ }
34
+
35
+ return apply_filters( 'weglot_theeventscalendar_is_active', $active );
36
+ }
37
+ }
src/third/theeventscalendar/class-theeventscalendar-words.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeglotWP\Third\TheEventsCalendar;
4
+
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit;
7
+ }
8
+
9
+ use WeglotWP\Helpers\Helper_Is_Admin;
10
+ use WeglotWP\Models\Hooks_Interface_Weglot;
11
+
12
+ /**
13
+ * Theeventscalendar_Active
14
+ *
15
+ * @since 3.1.2
16
+ */
17
+ class Theeventscalendar_Words implements Hooks_Interface_Weglot {
18
+
19
+ /**
20
+ * @since 3.1.2
21
+ * @return void
22
+ */
23
+ public function __construct() {
24
+ $this->theeventcalendar_active_services = weglot_get_service( 'Theeventscalendar_Active' );
25
+ }
26
+
27
+ /**
28
+ * @since 3.1.2
29
+ * @see Hooks_Interface_Weglot
30
+ * @return void
31
+ */
32
+ public function hooks() {
33
+
34
+ if ( ! $this->theeventcalendar_active_services->is_active() ) {
35
+ return;
36
+ }
37
+
38
+ add_filter( 'weglot_words_translate', [ $this, 'weglot_theeventscalendar_words' ] );
39
+ }
40
+
41
+
42
+ /**
43
+ * @since 3.1.2
44
+ * @return void
45
+ */
46
+ public function weglot_theeventscalendar_words( $words ) {
47
+
48
+ $s = array(
49
+ 'Sunday',
50
+ 'Monday',
51
+ 'Tuesday',
52
+ 'Wednesday',
53
+ 'Thursday',
54
+ 'Friday',
55
+ 'Saturday',
56
+ 'January',
57
+ 'February',
58
+ 'March',
59
+ 'April',
60
+ 'May',
61
+ 'June',
62
+ 'July',
63
+ 'August',
64
+ 'September',
65
+ 'October',
66
+ 'November',
67
+ 'December',
68
+ );
69
+
70
+ $words = array_merge( $words, $s );
71
+
72
+ return $words;
73
+ }
74
+
75
+ }
src/third/woocommerce/class-wc-cart-reload-weglot.php CHANGED
@@ -56,21 +56,25 @@ class WC_Cart_Reload_Weglot implements Hooks_Interface_Weglot {
56
  $click_selector = apply_filters( 'weglot_wc_reload_selector', '.weglot-lang a' );
57
  ?>
58
  <script>
59
- document.addEventListener('DOMContentLoaded', function(){
60
-
61
- jQuery( '<?php echo esc_attr( $click_selector ); ?>' ).on('click', function(e) {
 
 
 
 
 
62
  e.preventDefault();
63
- var href = jQuery(this).attr('href')
64
-
65
- Object.keys(window.sessionStorage).forEach(function(element) {
66
- if(element.startsWith("wc_cart_hash_") || element.startsWith("wc_fragments_")) {
67
- window.sessionStorage.removeItem(element);
68
- }
69
- });
70
- window.location.href = href
71
  })
72
  })
73
- </script>
74
  <?php
75
  }
76
  }
56
  $click_selector = apply_filters( 'weglot_wc_reload_selector', '.weglot-lang a' );
57
  ?>
58
  <script>
59
+ document.addEventListener('DOMContentLoaded', function () {
60
+ if (!String.prototype.startsWith) {
61
+ String.prototype.startsWith = function (searchString, position) {
62
+ position = position || 0;
63
+ return this.substr(position, searchString.length) === searchString;
64
+ };
65
+ }
66
+ jQuery('<?php echo esc_attr( $click_selector ); ?>').on('click', function (e) {
67
  e.preventDefault();
68
+ var href = jQuery(this).attr('href');
69
+ Object.keys(window.sessionStorage).forEach(function (element) {
70
+ if (element.startsWith('wc_cart_hash_') || element.startsWith('wc_fragments_')) {
71
+ window.sessionStorage.removeItem(element);
72
+ }
73
+ });
74
+ window.location.replace(href);
 
75
  })
76
  })
77
+ </script>
78
  <?php
79
  }
80
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd16e8dc8ccadf07a05dbbfb57b47c482::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041', '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\ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit992cdfaed0e7c8387b4002eea92cf041
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire992cdfaed0e7c8387b4002eea92cf041($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire992cdfaed0e7c8387b4002eea92cf041($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 ComposerAutoloaderInitd16e8dc8ccadf07a05dbbfb57b47c482
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd16e8dc8ccadf07a05dbbfb57b47c482', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd16e8dc8ccadf07a05dbbfb57b47c482', '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\ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::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\ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequired16e8dc8ccadf07a05dbbfb57b47c482($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequired16e8dc8ccadf07a05dbbfb57b47c482($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 ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041
8
  {
9
  public static $files = array (
10
  '6c200413eed8aeea54dbaf934a31b127' => __DIR__ . '/..' . '/weglot/simplehtmldom/src/simple_html_dom.php',
@@ -57,10 +57,10 @@ class ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041
57
  public static function getInitializer(ClassLoader $loader)
58
  {
59
  return \Closure::bind(function () use ($loader) {
60
- $loader->prefixLengthsPsr4 = ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::$prefixLengthsPsr4;
61
- $loader->prefixDirsPsr4 = ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::$prefixDirsPsr4;
62
- $loader->prefixesPsr0 = ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::$prefixesPsr0;
63
- $loader->classMap = ComposerStaticInit992cdfaed0e7c8387b4002eea92cf041::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482
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 = ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::$prefixLengthsPsr4;
61
+ $loader->prefixDirsPsr4 = ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::$prefixDirsPsr4;
62
+ $loader->prefixesPsr0 = ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::$prefixesPsr0;
63
+ $loader->classMap = ComposerStaticInitd16e8dc8ccadf07a05dbbfb57b47c482::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
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.2
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.2');
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.3
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.3');
26
  define('WEGLOT_PHP_MIN', '5.4');
27
  define('WEGLOT_BNAME', plugin_basename(__FILE__));
28
  define('WEGLOT_DIR', __DIR__ );