first commit

This commit is contained in:
Ryan Ariana
2024-05-06 11:04:37 +07:00
commit aee061ddba
7322 changed files with 2918816 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="74px" height="15px" viewBox="0 0 74 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
<title>Logo</title>
<desc>Created with Sketch.</desc>
<g id="Symbols-💎💎💎" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Menu/Color" transform="translate(0.000000, -13.000000)" fill="#0A1A42" fill-rule="nonzero">
<g id="Logo">
<path d="M1.36779477e-13,13.1099109 L3.04612497,13.1099109 L5.64574953,19.767728 L8.25529633,13.1099109 L10.8549209,19.767728 L13.4446232,13.1099109 L16.4907482,13.1099109 L10.8549209,27.4872238 L8.2156074,20.4920509 L5.64574953,27.4872238 L1.36779477e-13,13.1099109 Z M17.7111826,13.0801442 L26.1946903,13.0801442 L26.1946903,15.8980578 L20.5390185,15.8980578 L20.5390185,18.7258937 L24.7758112,18.7258937 L24.7758112,21.5438074 L20.5390185,21.5438074 L20.5390185,24.3815655 L26.1946903,24.3815655 L26.1946903,27.1895569 L17.7111826,27.1895569 L17.7111826,13.0801442 Z M34.0134084,13.0007663 L34.0233307,13.0206108 C35.9144598,13.0282468 37.7273913,13.7762146 39.0737463,15.1042793 L37.0595334,17.1184923 C36.1962993,16.2850249 35.1941539,15.8583689 34.0431751,15.8583689 C32.9039452,15.8438363 31.8091366,16.2997074 31.0168946,17.1184923 C30.1834272,17.9618819 29.7666935,18.9739495 29.7666935,20.1447728 C29.7483829,21.2827529 30.2007607,22.3777944 31.0168946,23.1710533 C31.9953198,24.1619883 33.3974068,24.6102573 34.769229,24.3707328 C36.1410512,24.1312083 37.3082712,23.2343301 37.8930008,21.9704633 L33.8844194,21.9704633 L33.8844194,19.2815387 L41.0978815,19.2815387 C41.3648386,21.459504 40.6103912,23.6386118 39.0539019,25.1852662 C37.6548673,26.5743786 35.968088,27.278857 34.0134084,27.278857 C32.1188803,27.3082746 30.2971133,26.5501033 28.9828372,25.1852662 C27.5838026,23.8060761 26.8892464,22.129219 26.8892464,20.1447728 C26.8618436,18.2477292 27.6194772,16.4236635 28.9828372,15.1042793 C30.3620274,13.6953225 32.0388844,13.0007663 34.0134084,13.0007663 Z M42.3480826,13.1099109 L45.1759185,13.1099109 L45.1759185,24.361721 L50.821668,24.361721 L50.821668,27.1697124 L42.3480826,27.1697124 L42.3480826,13.1099109 Z M57.7870743,13.0007663 C59.6862899,12.9723695 61.5119444,13.7342568 62.8275677,15.1042793 C64.2266023,16.5033139 64.9310807,18.180171 64.9310807,20.1447728 C64.9594776,22.0439884 64.1975903,23.8696429 62.8275677,25.1852662 C61.4285331,26.5743786 59.7516761,27.2689347 57.7870743,27.2689347 C55.8930787,27.2907296 54.0723402,26.5380621 52.7465809,25.1852662 C51.3475463,23.7961538 50.6529901,22.1093745 50.6529901,20.1447728 C50.6255872,18.2477292 51.3832208,16.4236635 52.7465809,15.1042793 C54.1456154,13.6953225 55.8224725,13.0007663 57.7870743,13.0007663 Z M57.7870743,15.8484467 C56.6462295,15.8254741 55.5481833,16.2826933 54.7607938,17.10857 C53.9174041,17.9519597 53.5006704,18.9640273 53.5006704,20.1348505 C53.4837607,21.2745385 53.9400092,22.3702534 54.7607938,23.161131 C55.5942612,23.9846762 56.5964065,24.4014099 57.7870743,24.4014099 C58.919269,24.414927 60.0082246,23.9671657 60.8034326,23.161131 C61.6468222,22.3276636 62.0635559,21.315596 62.0635559,20.1348505 C62.0804656,18.9951625 61.6242171,17.8994477 60.8034326,17.10857 C59.9699651,16.2651804 58.9578976,15.8484467 57.7870743,15.8484467 Z M64.2464468,13.1099109 L74,13.1099109 L74,15.9079801 L70.5470636,15.9079801 L70.5470636,27.1697124 L67.7093054,27.1697124 L67.7093054,15.9079801 L64.2464468,15.9079801 L64.2464468,13.1099109 Z"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@@ -0,0 +1,34 @@
if (!Array.prototype.filter) {
Array.prototype.filter = function (func, thisArg) {
'use strict';
if (!((typeof func === 'Function' || typeof func === 'function') && this))
throw new TypeError();
var len = this.length >>> 0,
res = new Array(len), // preallocate array
t = this, c = 0, i = -1;
if (thisArg === undefined) {
while (++i !== len) {
// checks to see if the key was set
if (i in this) {
if (func(t[i], i, t)) {
res[c++] = t[i];
}
}
}
}
else {
while (++i !== len) {
// checks to see if the key was set
if (i in this) {
if (func.call(thisArg, t[i], i, t)) {
res[c++] = t[i];
}
}
}
}
res.length = c; // shrink down array to proper size
return res;
};
}

View File

@@ -0,0 +1,46 @@
// https://tc39.github.io/ecma262/#sec-array.prototype.find
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function (predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
// 2. Let len be ? ToLength(? Get(O, "length")).
var len = o.length >>> 0;
// 3. If IsCallable(predicate) is false, throw a TypeError exception.
if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
// 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
var thisArg = arguments[1];
// 5. Let k be 0.
var k = 0;
// 6. Repeat, while k < len
while (k < len) {
// a. Let Pk be ! ToString(k).
// b. Let kValue be ? Get(O, Pk).
// c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
// d. If testResult is true, return kValue.
var kValue = o[k];
if (predicate.call(thisArg, kValue, k, o)) {
return kValue;
}
// e. Increase k by 1.
k++;
}
// 7. Return undefined.
return undefined;
},
configurable: true,
writable: true
});
}

View File

@@ -0,0 +1,271 @@
//find and place wg-ajax-button-switcher
function switcherPlacement() {
const button_switcher_ajax = document.querySelectorAll(".weglot-custom-switcher-ajax")
Array.prototype.forEach.call(button_switcher_ajax, function (el, i) {
let button_sibling = null;
let button_target = null;
let targetSelector = null;
let siblingSelector = null;
if (el.getAttribute('data-wg-target') !== '') {
targetSelector = el.getAttribute('data-wg-target');
}
if (el.getAttribute('data-wg-sibling') !== '') {
siblingSelector = el.getAttribute('data-wg-sibling');
}
if (targetSelector) {
button_target = document.querySelector(targetSelector)
}
if (siblingSelector) {
button_sibling = document.querySelector(siblingSelector)
}
if (button_target != null && button_sibling != null) {
button_target.insertBefore(el, button_sibling)
el.classList.remove("weglot-custom-switcher-ajax")
} else if (button_target && button_sibling == null) {
button_target.insertBefore(el, button_target.firstChild)
el.classList.remove("weglot-custom-switcher-ajax")
} else if (button_sibling && button_target == null) {
button_sibling.parentNode.insertBefore(el, button_sibling)
el.classList.remove("weglot-custom-switcher-ajax")
}
})
}
//detect iframe
function inFrame() {
try {
return window.frameElement || window.self !== window.top;
} catch (_) {
return false;
}
}
setTimeout(() => {
if (document.readyState === "loading") {
document.addEventListener( "DOMContentLoaded", () => switcherPlacement() );
} else {
switcherPlacement();
}
}, 1500);
document.addEventListener( "DOMContentLoaded", function ( event ) {
function getOffset(element) {
let top = 0, left = 0;
do {
top += element.offsetTop || 0;
left += element.offsetLeft || 0;
element = element.offsetParent;
} while (element);
return {
top: top, left: left
};
}
const button = document.querySelector(".country-selector");
if (!button) {
return;
}
const h = getOffset(button).top;
const body = document.body, html = document.documentElement;
const page_height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
const position = window.getComputedStyle(button).getPropertyValue("position");
const bottom = window.getComputedStyle(button).getPropertyValue("bottom");
const top = window.getComputedStyle(button).getPropertyValue("top");
if ((position !== "fixed" && h > page_height / 2) || (position === "fixed" && h > 100)) {
button.className += " weglot-invert";
}
//check if your page is load by an iframe
if (inFrame()) {
const switchers = document.querySelectorAll('.weglot-dropdown')
if (switchers !== null) {
[].forEach.call(switchers, function (switcher) {
switcher.style.display = "none";
});
}
}
document.addEventListener("click", (evt) => {
let targetEl = evt.target;
if(targetEl.closest('.country-selector.close_outside_click') == null){
document.querySelectorAll(".country-selector.close_outside_click.weglot-dropdown input").forEach( (node) => {
node.checked = false
})
}
});
const asides = document.getElementsByClassName("country-selector");
const isOpen = link => !link.className.includes("closed");
let focusedLang;
if (asides.length > 0) {
const selectedLang = document.getElementsByClassName("wgcurrent");
for (let aside of asides) {
// accessiblity button
const KEYCODE = {
ENTER: 13, ESCAPE: 27, ARROWUP: 38, ARROWDOWN: 40,
};
const isOpenUp = () => {
// If switcher is in second half of page, set weg-openup class
const {bottom = 0} = aside.getBoundingClientRect();
return bottom > window.innerHeight / 2;
};
const openSwitcher = () => {
aside.classList.remove("closed");
document.querySelectorAll(".country-selector.weglot-dropdown input").checked = true;
aside.setAttribute("aria-expanded", "true");
};
const closeSwitcher = () => {
aside.classList.add("closed");
document.querySelectorAll(".country-selector.weglot-dropdown input").checked = false
aside.setAttribute("aria-expanded", "false");
if (focusedLang) {
focusedLang.classList.remove("focus");
focusedLang = null;
}
};
const setAriaLabel = code => {
const fullNameLang = getLangNameFromCode(code);
//aside.setAttribute("aria-activedescendant", "weglot-language-" + code);
aside.setAttribute("aria-label", "Language selected: " + code);
};
const toggleSwitcher = () => {
if (aside.classList.contains("closed")) {
openSwitcher();
} else {
closeSwitcher();
}
if (focusedLang) {
focusedLang.classList.remove("focus");
}
focusedLang = null;
};
// Toggle when focused and keydown ENTER.
aside.addEventListener("keydown", event => {
if (event.keyCode === KEYCODE.ENTER) {
//event.preventDefault();
//selectedLang.click();
for (var i = 0; i < selectedLang.length; i++) {
selectedLang[i].click();
}
if (focusedLang) {
const destinationLanguage = focusedLang.getAttribute("data-l");
setAriaLabel(destinationLanguage);
aside.focus();
}
toggleSwitcher();
return;
}
if (event.keyCode === KEYCODE.ARROWDOWN || event.keyCode === KEYCODE.ARROWUP) {
event.preventDefault();
moveFocus(event.keyCode);
return;
}
if (event.keyCode === KEYCODE.ESCAPE && isOpen(aside)) {
// Close switcher.
event.preventDefault();
closeSwitcher();
aside.focus();
}
});
aside.addEventListener("mousedown", event => {
if (focusedLang) {
const destinationLanguage = focusedLang.getAttribute("data-l");
setAriaLabel(destinationLanguage);
aside.focus();
}
toggleSwitcher();
return;
});
if(aside.className.includes("open_hover")){
aside.addEventListener("mouseenter", event => {
if (focusedLang) {
const destinationLanguage = focusedLang.getAttribute("data-l");
setAriaLabel(destinationLanguage);
aside.focus();
}
toggleSwitcher();
aside.querySelector("input.weglot_choice").checked = true
return;
});
aside.addEventListener("mouseleave", event => {
if (focusedLang) {
const destinationLanguage = focusedLang.getAttribute("data-l");
setAriaLabel(destinationLanguage);
aside.focus();
}
toggleSwitcher();
aside.querySelector("input.weglot_choice").checked = false
return;
});
}
const moveFocus = keyCode => {
const direction = keyCode === KEYCODE.ARROWDOWN ? "nextSibling" : "previousSibling";
const openUp = isOpenUp();
if (!focusedLang || !isOpen(aside)) {
// Focus the first or last language
const selector = openUp ? "ul li.wg-li:last-child" : "ul li.wg-li";
for (var i = 0; i < selectedLang.length; i++) {
//selectedLang[i].click();
focusedLang = selectedLang[i].parentNode.querySelector(selector);
}
if (!focusedLang) {
return;
}
focusedLang.classList.add("focus");
focusedLang.childNodes[0].focus();
focusedLang.scrollIntoView({block: "center"});
// if right direction, open it
const needToOpen = (keyCode === KEYCODE.ARROWUP && openUp) || (keyCode === KEYCODE.ARROWDOWN && !openUp);
if (!isOpen(aside) && needToOpen) {
openSwitcher();
}
return;
}
// Focus next or prev language, if exists
if (!focusedLang[direction]) {
// if last element, close it
if ((keyCode === KEYCODE.ARROWUP && !openUp) || (keyCode === KEYCODE.ARROWDOWN && openUp)) {
closeSwitcher();
aside.focus();
}
return;
}
focusedLang.classList.remove("focus");
focusedLang = focusedLang[direction];
focusedLang.classList.add("focus");
focusedLang.childNodes[0].focus();
focusedLang.scrollIntoView({block: "center"});
};
}
}
return false;
});

View File

@@ -0,0 +1,17 @@
import InitAdminSelect from './settings/admin-select'
import InitAdminWeglotBox from './settings/admin-weglot-box'
import InitAdminButtonPreview from './settings/admin-button-preview'
import InitAdminCheckApiKey from './settings/admin-check-api-key'
import initAdminCodeEditor from './settings/admin-code-editor'
import InitAdminChangeCountry from './settings/admin-change-country'
import InitAdminPrivateMode from './settings/admin-private-mode'
import './find-polyfill'
import './filter-polyfill'
InitAdminSelect()
InitAdminWeglotBox();
InitAdminButtonPreview();
InitAdminCheckApiKey();
initAdminCodeEditor();
InitAdminChangeCountry();
InitAdminPrivateMode();

View File

@@ -0,0 +1,105 @@
import slugify from 'slugify'
const init_url_translate = () => {
const $ = jQuery;
const execute = () => {
let old_text = {}
const edit_weglot_post_name = function(e) {
const code = $(this).data('lang')
const post_name = slugify($(`#lang-${code}`).val(), {
lower: true,
replacement: '-'
});
$(`#text-edit-${code}`).text( post_name );
$(`#lang-${code}`).hide();
$(this).hide()
$(`.button-weglot-lang[data-lang=${code}]`).show()
$.ajax({
url: ajaxurl,
method: "POST",
data: {
action: "weglot_post_name",
lang: code,
id: $("#weglot_post_id").data('id'),
post_name: post_name
},
success: function(res) {
if(res.data && res.data.code && res.data.code === 'same_post_name'){
$(`#text-edit-${code}`).text(old_text[code]);
$(`#lang-${code}`).val('');
return
}
else if (res.data && res.data.code && res.data.code ==='not_available'){
$(`#weglot_permalink_not_available_${code}`).show();
$(`#lang-${code}`).val("");
setTimeout(() => {
$(`#weglot_permalink_not_available_${code}`).hide();
}, 5000);
}
$(`#text-edit-${code}`).text(res.data.result.slug);
}
});
}
$(".button-weglot-lang").each((key, itm) => {
$(itm).on('click', function (e) {
e.preventDefault()
const code = $(this).data('lang')
const text = $(`#text-edit-${code}`).text();
old_text[code] = text
$(`#text-edit-${code}`).text(' ');
$(`#lang-${code}`).val(text).show();
$(`.button-weglot-lang-submit[data-lang=${code}]`).show();
$(this).hide()
})
const code = $(itm).data('lang')
$(`.button-weglot-lang-submit[data-lang=${code}]`)
.on("click", edit_weglot_post_name);
})
$(".weglot_reset").each((key, itm) => {
$(itm).on("click", function(e) {
e.preventDefault();
const code = $(this).data("lang");
const custom_url = $(this).attr('href')
const id = $(this).data('id')
$.ajax({
url: ajaxurl,
method: "POST",
data: {
action: "weglot_reset_custom_url",
code_lang: code,
id: id,
custom_url: custom_url
},
success: function(res) {
$(`#text-edit-${code}`).text(
res.data.result.slug
);
}
});
});
});
};
document.addEventListener("DOMContentLoaded", () => {
execute();
});
}
export default init_url_translate

View File

@@ -0,0 +1,63 @@
jQuery(document).ready(function ($) {
$('#update-nav-menu').bind('click', function (e) {
if (e.target && e.target.className && -1 != e.target.className.indexOf('item-edit')) {
$("input[value='#weglot_switcher'][type=text]").parents('.menu-item-settings').each(function () {
const id = $(this).attr('id').substring(19);
$(this).children('p:not( .field-move )').remove(); // remove default fields we don't need
$(this).append($('<input>').attr({ // phpcs:ignore
type: 'hidden',
id: 'edit-menu-item-title-' + id,
name: 'menu-item-title[' + id + ']',
value: weglot_data.title
}));
$(this).append($("<input>").attr({ // phpcs:ignore
type: "hidden",
id: "edit-menu-item-url-" + id,
name: "menu-item-url[" + id + "]",
value: "#weglot_switcher"
}));
$(this).append($('<input>').attr({ // phpcs:ignore
type: 'hidden',
id: 'edit-menu-item-weglot-detect-' + id,
name: 'menu-item-weglot-detect[' + id + ']',
value: 1
}));
$.each(weglot_data.list_options, (key, option) => {
const paragraph = $("<p>").attr("class", "description");
const label = $("<label>")
.attr("for", `edit-menu-item-${option.key}-${id}`)
.text(` ${option.title}`);
$(this).prepend(paragraph); // phpcs:ignore
paragraph.append(label); // phpcs:ignore
const checkbox = $("<input>").attr({
type: "checkbox",
id: `edit-menu-item-${
option.key
}-${id}`,
name: `menu-item-weglot-${
option.key
}[${id}]`,
value: 1
});
if (weglot_data.options && weglot_data.options[`menu-item-${id}`] && weglot_data.options[`menu-item-${id}`][ option.key ] === 1 ){
checkbox.prop("checked", true);
}
label.prepend(checkbox); // phpcs:ignore
})
});
}
});
});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,114 @@
const init_admin_button_preview = function () {
const $ = jQuery
const execute = () => {
// Init old type flags
let old_type_flags = $("#type_flags option:selected").data('value')
let destination_languages = []
destination_languages.push($(".country-selector label").data("code-language"));
$(".country-selector li").each((key, itm) => {
destination_languages.push($(itm).data("code-language"));
})
const weglot_desination_languages = weglot_languages.available.filter(itm => {
return destination_languages.indexOf(itm.external_code) >= 0;
})
$("#weglot-css-inline").text(weglot_css.inline);
// Change dropdown
$("#is_dropdown").on("change", function(){
$(".country-selector").toggleClass("weglot-inline");
$(".country-selector").toggleClass("weglot-dropdown");
})
// Change with flags
$("#with_flags").on("change", function() {
$(".country-selector label, .country-selector li").toggleClass("weglot-flags");
});
// Change type flags
$("#type_flags").on("change", function(e) {
$(".country-selector label, .country-selector li").removeClass(`flag-${old_type_flags}`);
const new_type_flags = $(':selected', this).data('value')
$(".country-selector label, .country-selector li").addClass(`flag-${new_type_flags}`);
old_type_flags = new_type_flags;
});
const set_languages = () => {
const label_language = weglot_desination_languages.find(
(itm) => itm.external_code === $(".country-selector label").data("code-language")
);
const is_fullname = $("#is_fullname").is(":checked");
const label = is_fullname ? label_language.local : label_language.internal_code.toUpperCase();
$(".country-selector label a, .country-selector label span").text(label);
$(".country-selector li").each((key, itm) => {
const li_language = weglot_desination_languages.find(
(lang) => lang.internal_code === $(itm).data("code-language")
);
const label = is_fullname ? li_language.local : li_language.internal_code.toUpperCase();
$(itm)
.find("a")
.text(label);
})
}
// Change with name
$("#with_name").on("change", function(e) {
if (e.target.checked) {
set_languages();
} else {
$(".country-selector label a, .country-selector label span").text("");
$(".country-selector li a, .country-selector li span").each(
(key, itm) => {
$(itm).text("");
}
);
}
});
$("#is_fullname").on("change", function(e){
if ( !$("#with_name").is(":checked") ) {
return
}
if (e.target.checked) {
set_languages();
}
else {
const label_language = weglot_desination_languages.find(itm => itm.internal_code === $(".country-selector label").data("code-language"));
$(".country-selector label a, .country-selector label span").text(label_language.internal_code.toUpperCase());
$(".country-selector li").each((key, itm) => {
const language = weglot_desination_languages.find(lang => lang.internal_code === $(itm).data("code-language"));
$(itm).find("a").text(language.internal_code.toUpperCase());
$(itm).find("span").text(language.internal_code.toUpperCase());
});
}
});
$("#override_css").on("keyup", function(e) {
$("#weglot-css-inline").text(e.target.value);
})
}
document.addEventListener('DOMContentLoaded', () => {
if ($(".weglot-preview").length === 0){
return
}
execute();
})
}
export default init_admin_button_preview;

View File

@@ -0,0 +1,123 @@
const init_admin_change_country = function() {
const $ = jQuery;
if(typeof weglot_css !== "undefined"){
$("#weglot-css-flag-css").text(weglot_css.flag_css);
}
function refresh_flag_css() {
var en_flags = new Array();
var es_flags = new Array();
var fr_flags = new Array();
var ar_flags = new Array();
var tw_flags = new Array();
var zh_flags = new Array();
var pt_flags = new Array();
en_flags[1] = [3570, 7841, 48, 2712];
en_flags[2] = [3720, 449, 3048, 4440];
en_flags[3] = [3840, 1281, 2712, 4224];
en_flags[4] = [3240, 5217, 1224, 2112];
en_flags[5] = [4050, 3585, 1944, 2496];
en_flags[6] = [2340, 3457, 2016, 2016];
es_flags[1] = [4320, 4641, 3144, 3552];
es_flags[2] = [3750, 353, 2880, 4656];
es_flags[3] = [4200, 1601, 2568, 3192];
es_flags[4] = [3990, 5793, 1032, 2232];
es_flags[5] = [5460, 897, 4104, 3120];
es_flags[6] = [3810, 7905, 216, 3888];
es_flags[7] = [3630, 8065, 192, 2376];
es_flags[8] = [3780, 1473, 2496, 4104];
es_flags[9] = [6120, 2145, 4680, 2568];
es_flags[10] = [4440, 3009, 3240, 1176];
es_flags[11] = [5280, 1825, 3936, 2976];
es_flags[12] = [4770, 2081, 3624, 1008];
es_flags[13] = [4080, 3201, 2160, 2544];
es_flags[14] = [4590, 5761, 3432, 624];
es_flags[15] = [4350, 2209, 3360, 2688];
es_flags[16] = [5610, 5249, 3168, 528];
es_flags[17] = [5070, 1729, 3792, 2952];
es_flags[18] = [6870, 5953, 96, 3408];
es_flags[19] = [4020, 5697, 1056, 1224];
fr_flags[1] = [2760, 736, 2856, 4416];
fr_flags[2] = [3840, 1280, 2712, 4224];
fr_flags[3] = [5700, 7201, 5016, 2400];
fr_flags[4] = [2220, 4160, 1632, 1944];
ar_flags[1] = [1830, 129, 3096, 5664];
ar_flags[2] = [5100, 2177, 3840, 2904];
ar_flags[3] = [4890, 3425, 3648, 2136];
ar_flags[4] = [1320, 3681, 1896, 4080];
ar_flags[5] = [1260, 3841, 1824, 1200];
ar_flags[6] = [1020, 3969, 1608, 312];
ar_flags[7] = [4800, 4065, 3600, 72];
ar_flags[8] = [4710, 4865, 3504, 480];
ar_flags[9] = [6720, 5984, 5112, 3792];
ar_flags[10] = [4500, 7233, 3288, 1800];
ar_flags[11] = [720, 7522, 384, 3936];
ar_flags[12] = [690, 7745, 336, 1104];
ar_flags[13] = [600, 8225, 120, 1272];
ar_flags[14] = [660, 5569, 840, 576];
tw_flags[1] = [3690, 1505, 2592, 3240]; // China
tw_flags[2] = [3600, 3233, 2112, 48]; // Hong Kong
zh_flags[1] = [2970, 6369, 3408, 4008]; // Taiwan
zh_flags[2] = [3600, 3233, 2112, 48]; // Hong Kong
pt_flags[1] = [6630, 993, 2784, 4344];
var enval = $("select.flag-en-type").val();
var esval = $("select.flag-es-type").val();
var frval = $("select.flag-fr-type").val();
var arval = $("select.flag-ar-type").val();
var twval = $("select.flag-tw-type").val();
var zhval = $("select.flag-zh-type").val();
var ptval = $("select.flag-pt-type").val();
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; } ";
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; } ";
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; } ";
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; } ";
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; } ";
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; } ";
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; } ";
$("#flag_css, #weglot-css-flag-css").text(en_style + es_style + fr_style + ar_style + tw_style + zh_style + pt_style);
}
const execute = () => {
$('.flag-style-openclose').on('click',
function () {
$('.flag-style-wrapper').toggle();
}
);
$('.old-flag-style').on('click',
function () {
$('.old-flag-wrapper').toggle();
}
);
$("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 () {
refresh_flag_css()
}
);
var flag_css = $("#flag_css").text();
if (flag_css.trim()) {
$("#weglot-css-flag-css").text(flag_css);
}
};
document.addEventListener("DOMContentLoaded", () => {
execute();
});
};
export default init_admin_change_country;

View File

@@ -0,0 +1,79 @@
const init_admin_button_preview = function () {
const $ = jQuery
const execute = () => {
$("#api_key_private").blur(function() {
var key = $(this).val();
if( key.length === 0){
$(".weglot-keyres").remove();
$("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span>');
$("#wrap-weglot #submit").prop("disabled", true);
return;
}
function validApiKey(response){
$(".weglot-keyres").remove();
$("#api_key_private").after(
'<span class="weglot-keyres weglot-okkey"></span>'
);
$("#wrap-weglot #submit").prop(
"disabled",
false
);
const evt = new CustomEvent("weglotCheckApi", {
detail: response
});
window.dispatchEvent(evt);
}
function unvalidApiKey(){
$(".weglot-keyres").remove();
$("#api_key_private").after('<span class="weglot-keyres weglot-nokkey"></span><p class="weglot-keyres">Make sure you enter a valid Weglot API key. If the key is still not validating, you can contact your host provider and ask if it\'s possible to whitelist api.weglot.com and weglot.com</p>');
$("#wrap-weglot #submit").prop("disabled", true);
}
$(".weglot-keyres").remove();
$("#api_key_private").after('<span class="weglot-keyres weglot-ckeckkey"></span>');
$.ajax(
{
method: 'POST',
url: ajaxurl,
data : {
action: 'get_user_info',
api_key: key,
},
success: ({data, success}) => {
$(".weglot-keyres").remove();
if (success ){
validApiKey(data)
}
else{
unvalidApiKey()
}
}
}
).fail(function() {
unvalidApiKey()
});
});
$( ".toplevel_page_weglot-settings form" ).submit(function( event ) {
$("#wrap-weglot #submit").prop("disabled", true);
});
}
document.addEventListener('DOMContentLoaded', () => {
execute();
})
}
export default init_admin_button_preview;

View File

@@ -0,0 +1,15 @@
const init_admin_weglot_code_editor = function () {
const $ = jQuery
const execute = () => {
jQuery(document).ready(function($) {
wp.codeEditor.initialize($('#override_css'), cm_settings);
})
}
document.addEventListener('DOMContentLoaded', () => {
execute();
})
}
export default init_admin_weglot_code_editor;

View File

@@ -0,0 +1,31 @@
const init_private_mode = function () {
const $ = jQuery
const execute = () => {
document.querySelector("#private_mode").addEventListener('change', function(e) {
document.querySelectorAll(".private-mode-lang--input").forEach((itm) => {
itm.checked = e.target.checked;
})
})
document.querySelectorAll(".private-mode-lang--input").forEach((itm) => {
itm.addEventListener('change', function(e){
if (document.querySelectorAll(".private-mode-lang--input:checked").length === 0){
document.querySelector("#private_mode").checked = false
}
})
});
}
document.addEventListener('DOMContentLoaded', () => {
const private_mode = document.querySelector("#private_mode")
if (private_mode && private_mode.length != 0){
execute();
}
})
}
export default init_private_mode;

View File

@@ -0,0 +1,131 @@
const init_admin_select = function(){
const $ = jQuery
const generate_destination_language = () => {
return weglot_languages.available.filter(itm => {
return itm.internal_code !== $("#original_language").val()
});
}
let destination_selectize
const load_destination_selectize = () => {
destination_selectize = $(".weglot-select-destination")
.selectize({
delimiter: "|",
persist: false,
valueField: "internal_code",
labelField: "local",
searchField: ["internal_code", "english", "local"],
sortField: [{ field: "english", direction: "asc" }],
maxItems: weglot_languages.limit,
plugins: ["remove_button"],
options: generate_destination_language(),
render: {
option: function(item, escape) {
var english = escape(item.english);
var local = escape(item.local);
var external = escape(item.external_code);
return `<div class="weglot__choice__language"><span class="weglot__choice__language--english">${english}</span><span class="weglot__choice__language--local">${local}[${external}]</span></div>`;
}
}
})
.on("change", (value) => {
const code_languages = destination_selectize[0].selectize.getValue()
const template = $("#li-button-tpl");
if (template.length === 0){
return;
}
const is_fullname = $("#is_fullname").is(":checked")
const with_name = $("#with_name").is(":checked")
const with_flags = $("#with_flags").is(":checked")
let classes = ''
if (with_flags) {
classes = "weglot-flags";
}
let new_dest_language = ''
var currentFlagClasses = $("label.weglot-flags").attr("class")
var classArr = currentFlagClasses.split(/\s+/);
$.each(classArr, function(index, value){
if(value.includes('flag-') == true){
classes += ' '+value;
return false;
}
});
code_languages.forEach(element => {
const language = weglot_languages.available.find(itm => itm.internal_code === element);
let label = ''
if(with_name){
if (is_fullname){
label = language.local
}
else{
label = element.toUpperCase()
}
}
new_dest_language += template
.html()
.replace("{LABEL_LANGUAGE}", label)
.replace(new RegExp("{CODE_LANGUAGE}", "g"), element)
.replace("{CLASSES}", classes)
});
$(".country-selector ul").html(new_dest_language) //phpcs:ignore
});
}
const execute = () => {
let work_original_language = $("#original_language").val()
$("#original_language").on("change", function (e) {
const old_original_language = work_original_language;
const new_destination_option = work_original_language;
work_original_language = e.target.value;
destination_selectize[0].selectize.removeOption(work_original_language);
const new_option = weglot_languages.available.find(itm => {
return itm.internal_code === new_destination_option
});
const new_original_option = weglot_languages.available.find(itm => {
return itm.internal_code === work_original_language;
});
destination_selectize[0].selectize.addOption(new_option);
const is_fullname = $("#is_fullname").is(":checked")
const with_name = $("#with_name").is(":checked")
let label = ''
if(with_name){
label = is_fullname ? new_original_option.local : new_original_option.internal_code.toUpperCase();
}
$(".wgcurrent.wg-li")
.removeClass(old_original_language)
.addClass(work_original_language)
.attr("data-code-language", work_original_language)
.find('span').text(label)
});
load_destination_selectize();
window.addEventListener("weglotCheckApi", (data) => {
destination_selectize[0].selectize.settings.maxItems = weglot_languages.limit;
});
}
document.addEventListener('DOMContentLoaded', () => {
execute();
})
}
export default init_admin_select;

View File

@@ -0,0 +1,49 @@
const init_admin_weglot_box = function () {
const $ = jQuery
const execute = () => {
$("#weglot-box-first-settings .weglot-btn-close").on("click", function (e) {
e.preventDefault();
$("#weglot-box-first-settings").hide();
})
$('a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.click(function (event) {
// On-page links
// Figure out element to scroll to
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
// Does a scroll target exist?
if (target.length) {
// Only prevent default if animation is actually gonna happen
event.preventDefault();
$('html, body').animate({
scrollTop: target.offset().top
}, 1000, function () {
// Callback after animation
// Must change focus!
var $target = $(target);
$target.focus();
if ($target.is(":focus")) { // Checking if the target was focused
return false;
} else {
$target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable
$target.focus(); // Set focus again
}
;
});
}
});
}
document.addEventListener('DOMContentLoaded', () => {
execute();
})
}
export default init_admin_weglot_box;

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

View File

@@ -0,0 +1,3 @@
$primary: #335ee2;
$primaryHover: #446dea;
$textColor: #24284c;

View File

@@ -0,0 +1,445 @@
.weglot-flags {
&.hw > a:before, &.hw > span:before { background-position: -3570px 0 !important; }
&.af > a:before, &.af > span:before { background-position: -6570px 0 !important; }
&.fl > a:before, &.fl > span:before { background-position: -3060px 0 !important; }
&.sq > a:before, &.sq > span:before { background-position: -2580px 0 !important; }
&.am > a:before, &.am > span:before { background-position: -5130px 0 !important; }
&.ar > a:before, &.ar > span:before { background-position: -510px 0 !important; }
&.hy > a:before, &.hy > span:before { background-position: -1800px 0 !important; }
&.az > a:before, &.az > span:before { background-position: -6840px 0 !important; }
&.ba > a:before, &.ba > span:before { background-position: -2040px 0 !important; }
&.eu > a:before, &.eu > span:before { background-position: -7260px 0 !important; }
&.be > a:before, &.be > span:before { background-position: -5310px 0 !important; }
&.bn > a:before, &.bn > span:before { background-position: -5400px 0 !important; }
&.bs > a:before, &.bs > span:before { background-position: -6390px 0 !important; }
&.bg > a:before, &.bg > span:before { background-position: -2730px 0 !important; }
&.br > a:before, &.br > span:before { background-position: -6630px 0 !important; }
&.my > a:before, &.my > span:before { background-position: -3299px 0 !important; }
&.ca > a:before, &.ca > span:before { background-position: -7230px 0 !important; }
&.zh > a:before, &.zh > span:before { background-position: -3690px 0 !important; }
&.tw > a:before, &.tw > span:before { background-position: -2970px 0 !important; }
&.km > a:before, &.km > span:before { background-position: -6930px 0 !important; }
&.ny > a:before, &.ny > span:before { background-position: -1140px 0 !important; }
&.co > a:before, &.co > span:before { background-position: -2520px 0 !important; } /* TODO */
&.hr > a:before, &.hr > span:before { background-position: -5910px 0 !important; }
&.cs > a:before, &.cs > span:before { background-position: -2700px 0 !important; }
&.da > a:before, &.da > span:before { background-position: -2670px 0 !important; }
&.nl > a:before, &.nl > span:before { background-position: -2100px 0 !important; }
&.en > a:before, &.en > span:before { background-position: -1920px 0 !important; }
&.eo > a:before, &.eo > span:before { background-position: -1920px 0 !important; } /* TODO */
&.et > a:before, &.et > span:before { background-position: -2640px 0 !important; }
&.fj > a:before, &.fj > span:before { background-position: -1710px 0 !important; }
&.fi > a:before, &.fi > span:before { background-position: -2550px 0 !important; }
&.fr > a:before, &.fr > span:before { background-position: -2520px 0 !important; }
&.gl > a:before, &.gl > span:before { background-position: -7290px 0 !important; }
&.ka > a:before, &.ka > span:before { background-position: -5040px 0 !important; }
&.de > a:before, &.de > span:before { background-position: -2490px 0 !important; }
&.el > a:before, &.el > span:before { background-position: -2460px 0 !important; }
&.gu > a:before, &.gu > span:before { background-position: -1170px 0 !important; }
&.ht > a:before, &.ht > span:before { background-position: -4650px 0 !important; }
&.ha > a:before, &.ha > span:before { background-position: -900px 0 !important; }
&.he > a:before, &.he > span:before { background-position: -1050px 0 !important; }
&.hi > a:before, &.hi > span:before { background-position: -1170px 0 !important; }
&.hu > a:before, &.hu > span:before { background-position: -2430px 0 !important; }
&.is > a:before, &.is > span:before { background-position: -2400px 0 !important; }
&.ig > a:before, &.ig > span:before { background-position: -870px 0 !important; }
&.id > a:before, &.id > span:before { background-position: -3510px 0 !important; }
&.ga > a:before, &.ga > span:before { background-position: -2340px 0 !important; }
&.it > a:before, &.it > span:before { background-position: -2310px 0 !important; }
&.ja > a:before, &.ja > span:before { background-position: -3480px 0 !important; }
&.jv > a:before, &.jv > span:before { background-position: -3360px 0 !important; }
&.kn > a:before, &.kn > span:before { background-position: -1170px 0 !important; }
&.kk > a:before, &.kk > span:before { background-position: -3150px 0 !important; }
&.ko > a:before, &.ko > span:before { background-position: -6990px 0 !important; }
&.ku > a:before, &.ku > span:before { background-position: -2430px 0 !important; } /* TODO */
&.ky > a:before, &.ky > span:before { background-position: -3420px 0 !important; }
&.lo > a:before, &.lo > span:before { background-position: -3450px 0 !important; } /* TODO */
&.la > a:before, &.la > span:before { background-position: -2310px 0 !important; }
&.lv > a:before, &.lv > span:before { background-position: -2280px 0 !important; }
&.lt > a:before, &.lt > span:before { background-position: -2250px 0 !important; }
&.lb > a:before, &.lb > span:before { background-position: -2220px 0 !important; }
&.mk > a:before, &.mk > span:before { background-position: -2190px 0 !important; }
&.mg > a:before, &.mg > span:before { background-position: -1200px 0 !important; }
&.ms > a:before, &.ms > span:before { background-position: -3360px 0 !important; }
&.ml > a:before, &.ml > span:before { background-position: -1170px 0 !important; }
&.mt > a:before, &.mt > span:before { background-position: -2130px 0 !important; }
&.mi > a:before, &.mi > span:before { background-position: -3240px 0 !important; }
&.mr > a:before, &.mr > span:before { background-position: -1170px 0 !important; }
&.mn > a:before, &.mn > span:before { background-position: -6000px 0 !important; }
&.ne > a:before, &.ne > span:before { background-position: -3270px 0 !important; }
&.no > a:before, &.no > span:before { background-position: -5850px 0 !important; }
&.ps > a:before, &.ps > span:before { background-position: -5189px 0 !important; }
&.fa > a:before, &.fa > span:before { background-position: -6690px 0 !important; }
&.pl > a:before, &.pl > span:before { background-position: -2160px 0 !important; }
&.pt > a:before, &.pt > span:before { background-position: -1740px 0 !important; }
&.pa > a:before, &.pa > span:before { background-position: -3180px 0 !important; }
&.ro > a:before, &.ro > span:before { background-position: -2070px 0 !important; }
&.ru > a:before, &.ru > span:before { background-position: -2040px 0 !important; }
&.sm > a:before, &.sm > span:before { background-position: -4620px 0 !important; }
&.gd > a:before, &.gd > span:before { background-position: -30px 0 !important; }
&.sr > a:before, &.sr > span:before { background-position: -4290px 0 !important; }
&.sn > a:before, &.sn > span:before { background-position: -540px 0 !important; }
&.sd > a:before, &.sd > span:before { background-position: -3180px 0 !important; }
&.si > a:before, &.si > span:before { background-position: -2820px 0 !important; }
&.sk > a:before, &.sk > span:before { background-position: -6810px 0 !important; }
&.sl > a:before, &.sl > span:before { background-position: -2010px 0 !important; }
&.so > a:before, &.so > span:before { background-position: -4560px 0 !important; }
&.st > a:before, &.st > span:before { background-position: -4830px 0 !important; }
&.es > a:before, &.es > span:before { background-position: -480px 0 !important; }
&.su > a:before, &.su > span:before { background-position: -4530px 0 !important; }
&.sw > a:before, &.sw > span:before { background-position: -1290px 0 !important; }
&.sv > a:before, &.sv > span:before { background-position: -1980px 0 !important; }
&.tl > a:before, &.tl > span:before { background-position: -3060px 0 !important; }
&.ty > a:before, &.ty > span:before { background-position: -6270px 0 !important; }
&.tg > a:before, &.tg > span:before { background-position: -2940px 0 !important; }
&.ta > a:before, &.ta > span:before { background-position: -1170px 0 !important; }
&.tt > a:before, &.tt > span:before { background-position: -2040px 0 !important; }
&.te > a:before, &.te > span:before { background-position: -1170px 0 !important; }
&.th > a:before, &.th > span:before { background-position: -2910px 0 !important; }
&.to > a:before, &.to > span:before { background-position: -6540px 0 !important; }
&.tr > a:before, &.tr > span:before { background-position: -1950px 0 !important; }
&.uk > a:before, &.uk > span:before { background-position: -1890px 0 !important; }
&.ur > a:before, &.ur > span:before { background-position: -3180px 0 !important; }
&.uz > a:before, &.uz > span:before { background-position: -2880px 0 !important; }
&.vi > a:before, &.vi > span:before { background-position: -2850px 0 !important; }
&.cy > a:before, &.cy > span:before { background-position: -6420px 0 !important; }
&.fy > a:before, &.fy > span:before { background-position: -2100px 0 !important; }
&.xh > a:before, &.xh > span:before { background-position: -6570px 0 !important; }
&.yi > a:before, &.yi > span:before { background-position: -1050px 0 !important; }
&.yo > a:before, &.yo > span:before { background-position: -870px 0 !important; }
&.zu > a:before, &.zu > span:before { background-position: -6570px 0 !important; }
&.flag-1 {
&.hw > a:before, &.hw > span:before { background-position: -7840px 0 !important; }
&.fl > a:before, &.fl > span:before { background-position: 2560px 0 !important; }
&.af > a:before, &.af > span:before { background-position: -6848px 0 !important; }
&.sq > a:before, &.sq > span:before { background-position: -97px 0 !important; }
&.am > a:before, &.am > span:before { background-position: -2369px 0 !important; }
&.ar > a:before, &.ar > span:before { background-position: -6465px 0 !important; }
&.hy > a:before, &.hy > span:before { background-position: -385px 0 !important; }
&.az > a:before, &.az > span:before { background-position: -513px 0 !important; }
&.ba > a:before, &.ba > span:before { background-position: -6113px 0 !important; }
&.eu > a:before, &.eu > span:before { background-position: -8353px 0 !important; }
&.be > a:before, &.be > span:before { background-position: -705px 0 !important; }
&.bn > a:before, &.bn > span:before { background-position: -609px 0 !important; }
&.bs > a:before, &.bs > span:before { background-position: -929px 0 !important; }
&.bg > a:before, &.bg > span:before { background-position: -1121px 0 !important; }
&.br > a:before, &.br > span:before { background-position: -993px 0 !important; }
&.my > a:before, &.my > span:before { background-position: -4929px 0 !important; }
&.ca > a:before, &.ca > span:before { background-position: -8321px 0 !important; }
&.zh > a:before, &.zh > span:before { background-position: -1505px 0 !important; }
&.tw > a:before, &.tw > span:before { background-position: -6369px 0 !important; }
&.km > a:before, &.km > span:before { background-position: -1217px 0 !important; }
&.ny > a:before, &.ny > span:before { background-position: -4289px 0 !important; }
&.co > a:before, &.co > span:before { background-position: -2561px 0 !important; }
&.hr > a:before, &.hr > span:before { background-position: -1793px 0 !important; }
&.cs > a:before, &.cs > span:before { background-position: -1921px 0 !important; }
&.da > a:before, &.da > span:before { background-position: -1985px 0 !important; }
&.nl > a:before, &.nl > span:before { background-position: -5121px 0 !important; }
&.en > a:before, &.en > span:before { background-position: -7777px 0 !important; }
&.eo > a:before, &.eo > span:before { background-position: -7777px 0 !important; }
&.et > a:before, &.et > span:before { background-position: -2337px 0 !important; }
&.fj > a:before, &.fj > span:before { background-position: -2497px 0 !important; }
&.fi > a:before, &.fi > span:before { background-position: -2529px 0 !important; }
&.fr > a:before, &.fr > span:before { background-position: -2561px 0 !important; }
&.gl > a:before, &.gl > span:before { background-position: -8383px 0 !important; }
&.ka > a:before, &.ka > span:before { background-position: -2721px 0 !important; }
&.de > a:before, &.de > span:before { background-position: -2753px 0 !important; }
&.el > a:before, &.el > span:before { background-position: -2881px 0 !important; }
&.gu > a:before, &.gu > span:before { background-position: -3329px 0 !important; }
&.ht > a:before, &.ht > span:before { background-position: -3169px 0 !important; }
&.ha > a:before, &.ha > span:before { background-position: -5281px 0 !important; }
&.he > a:before, &.he > span:before { background-position: -3521px 0 !important; }
&.hi > a:before, &.hi > span:before { background-position: -3329px 0 !important; }
&.hu > a:before, &.hu > span:before { background-position: -3265px 0 !important; }
&.is > a:before, &.is > span:before { background-position: -3297px 0 !important; }
&.ig > a:before, &.ig > span:before { background-position: -5313px 0 !important; }
&.id > a:before, &.id > span:before { background-position: -3361px 0 !important; }
&.ga > a:before, &.ga > span:before { background-position: -3457px 0 !important; }
&.it > a:before, &.it > span:before { background-position: -3553px 0 !important; }
&.ja > a:before, &.ja > span:before { background-position: -3617px 0 !important; }
&.jv > a:before, &.jv > span:before { background-position: -4321px 0 !important; }
&.kn > a:before, &.kn > span:before { background-position: -3329px 0 !important; }
&.kk > a:before, &.kk > span:before { background-position: -3713px 0 !important; }
&.ko > a:before, &.ko > span:before { background-position: -6913px 0 !important; }
&.ku > a:before, &.ku > span:before { background-position: -3265px 0 !important; }
&.ky > a:before, &.ky > span:before { background-position: -3873px 0 !important; }
&.lo > a:before, &.lo > span:before { background-position: -3904px 0 !important; }
&.la > a:before, &.la > span:before { background-position: -3553px 0 !important; }
&.lv > a:before, &.lv > span:before { background-position: -3937px 0 !important; }
&.lt > a:before, &.lt > span:before { background-position: -4129px 0 !important; }
&.lb > a:before, &.lb > span:before { background-position: -4161px 0 !important; }
&.mk > a:before, &.mk > span:before { background-position: -4225px 0 !important; }
&.mg > a:before, &.mg > span:before { background-position: -4257px 0 !important; }
&.ms > a:before, &.ms > span:before { background-position: -4321px 0 !important; }
&.ml > a:before, &.ml > span:before { background-position: -3329px 0 !important; }
&.mt > a:before, &.mt > span:before { background-position: -4417px 0 !important; }
&.mi > a:before, &.mi > span:before { background-position: -5217px 0 !important; }
&.mr > a:before, &.mr > span:before { background-position: -3329px 0 !important; }
&.mn > a:before, &.mn > span:before { background-position: -4769px 0 !important; }
&.ne > a:before, &.ne > span:before { background-position: -5091px 0 !important; }
&.no > a:before, &.no > span:before { background-position: -5505px 0 !important; }
&.ps > a:before, &.ps > span:before { background-position: -33px 0 !important; }
&.fa > a:before, &.fa > span:before { background-position: -3393px 0 !important; }
&.pl > a:before, &.pl > span:before { background-position: -5889px 0 !important; }
&.pt > a:before, &.pt > span:before { background-position: -5921px 0 !important; }
&.pa > a:before, &.pa > span:before { background-position: -3329px 0 !important; }
&.ro > a:before, &.ro > span:before { background-position: -6081px 0 !important; }
&.ru > a:before, &.ru > span:before { background-position: -6113px 0 !important; }
&.sm > a:before, &.sm > span:before { background-position: -6369px 0 !important; }
&.gd > a:before, &.gd > span:before { background-position: -6497px 0 !important; }
&.sr > a:before, &.sr > span:before { background-position: -6561px 0 !important; }
&.sn > a:before, &.sn > span:before { background-position: -8287px 0 !important; }
&.sd > a:before, &.sd > span:before { background-position: -5601px 0 !important; }
&.si > a:before, &.si > span:before { background-position: -7039px 0 !important; }
&.sk > a:before, &.sk > span:before { background-position: -6689px 0 !important; }
&.sl > a:before, &.sl > span:before { background-position: -6721px 0 !important; }
&.so > a:before, &.so > span:before { background-position: -6785px 0 !important; }
&.st > a:before, &.st > span:before { background-position: -4001px 0 !important; }
&.es > a:before, &.es > span:before { background-position: -7009px 0 !important; }
&.su > a:before, &.su > span:before { background-position: -7073px 0 !important; }
&.sw > a:before, &.sw > span:before { background-position: -3745px 0 !important; }
&.sv > a:before, &.sv > span:before { background-position: -7169px 0 !important; }
&.tl > a:before, &.tl > span:before { background-position: -5823px 0 !important; }
&.ty > a:before, &.ty > span:before { background-position: -2593px 0 !important; }
&.tg > a:before, &.tg > span:before { background-position: -7297px 0 !important; }
&.ta > a:before, &.ta > span:before { background-position: -3329px 0 !important; }
&.tt > a:before, &.tt > span:before { background-position: -6113px 0 !important; }
&.te > a:before, &.te > span:before { background-position: -3329px 0 !important; }
&.th > a:before, &.th > span:before { background-position: -7361px 0 !important; }
&.to > a:before, &.to > span:before { background-position: -7456px 0 !important; }
&.tr > a:before, &.tr > span:before { background-position: -7553px 0 !important; }
&.uk > a:before, &.uk > span:before { background-position: -7713px 0 !important; }
&.ur > a:before, &.ur > span:before { background-position: -5600px 0 !important; }
&.uz > a:before, &.uz > span:before { background-position: -7969px 0 !important; }
&.vi > a:before, &.vi > span:before { background-position: -8097px 0 !important; }
&.cy > a:before, &.cy > span:before { background-position: -8129px 0 !important; }
&.fy > a:before, &.fy > span:before { background-position: -5121px 0 !important; }
&.xh > a:before, &.xh > span:before { background-position: -6848px 0 !important; }
&.yi > a:before, &.yi > span:before { background-position: -3521px 0 !important; }
&.yo > a:before, &.yo > span:before { background-position: -5313px 0 !important; }
&.zu > a:before, &.zu > span:before { background-position: -6848px 0 !important; }
}
&.flag-2 {
&.hw > a:before, &.hw > span:before { background-position: -5448px 0 !important; }
&.fl > a:before, &.fl > span:before { background-position: -1008px 0 !important; }
&.af > a:before, &.af > span:before { background-position: -4968px 0 !important; }
&.sq > a:before, &.sq > span:before { background-position: -2976px 0 !important; }
&.am > a:before, &.am > span:before { background-position: -3816px 0 !important; }
&.ar > a:before, &.ar > span:before { background-position: -768px 0 !important; }
&.hy > a:before, &.hy > span:before { background-position: 0 0 !important; }
&.az > a:before, &.az > span:before { background-position: -5136px 0 !important; }
&.ba > a:before, &.ba > span:before { background-position: -936px 0 !important; }
&.eu > a:before, &.eu > span:before { background-position: -5376px 0 !important; }
&.be > a:before, &.be > span:before { background-position: -4224px 0 !important; }
&.bn > a:before, &.bn > span:before { background-position: -4056px 0 !important; }
&.bs > a:before, &.bs > span:before { background-position: -3984px 0 !important; }
&.bg > a:before, &.bg > span:before { background-position: -5040px 0 !important; }
&.br > a:before, &.br > span:before { background-position: -2784px 0 !important; }
&.my > a:before, &.my > span:before { background-position: -1248px 0 !important; }
&.ca > a:before, &.ca > span:before { background-position: -5352px 0 !important; }
&.zh > a:before, &.zh > span:before { background-position: -2592px 0 !important; }
&.tw > a:before, &.tw > span:before { background-position: -3408px 0 !important; }
&.km > a:before, &.km > span:before { background-position: -5160px 0 !important; }
&.ny > a:before, &.ny > span:before { background-position: -1392px 0 !important; }
&.co > a:before, &.co > span:before { background-position: -2304px 0 !important; }
&.hr > a:before, &.hr > span:before { background-position: -4416px 0 !important; }
&.cs > a:before, &.cs > span:before { background-position: -2472px 0 !important; }
&.da > a:before, &.da > span:before { background-position: -2448px 0 !important; }
&.nl > a:before, &.nl > span:before { background-position: -1296px 0 !important; }
&.en > a:before, &.en > span:before { background-position: -312px 0 !important; }
&.eo > a:before, &.eo > span:before { background-position: -312px 0 !important; } /* TODO */
&.et > a:before, &.et > span:before { background-position: -2424px 0 !important; }
&.fj > a:before, &.fj > span:before { background-position: -576px 0 !important; }
&.fi > a:before, &.fi > span:before { background-position: -2328px 0 !important; }
&.fr > a:before, &.fr > span:before { background-position: -2304px 0 !important; }
&.gl > a:before, &.gl > span:before { background-position: -5400px 0 !important; }
&.ka > a:before, &.ka > span:before { background-position: -3744px 0 !important; }
&.de > a:before, &.de > span:before { background-position: -2256px 0 !important; }
&.el > a:before, &.el > span:before { background-position: -2208px 0 !important; }
&.gu > a:before, &.gu > span:before { background-position: -1728px 0 !important; }
&.ht > a:before, &.ht > span:before { background-position: -3528px 0 !important; }
&.ha > a:before, &.ha > span:before { background-position: -1176px 0 !important; }
&.he > a:before, &.he > span:before { background-position: -1992px 0 !important; }
&.hi > a:before, &.hi > span:before { background-position: -1728px 0 !important; }
&.hu > a:before, &.hu > span:before { background-position: -2088px 0 !important; }
&.is > a:before, &.is > span:before { background-position: -2064px 0 !important; }
&.ig > a:before, &.ig > span:before { background-position: -1103px 0 !important; }
&.id > a:before, &.id > span:before { background-position: -2040px 0 !important; }
&.ga > a:before, &.ga > span:before { background-position: -2016px 0 !important; }
&.it > a:before, &.it > span:before { background-position: -1968px 0 !important; }
&.ja > a:before, &.ja > span:before { background-position: -1920px 0 !important; }
&.jv > a:before, &.jv > span:before { background-position: -1536px 0 !important; }
&.kn > a:before, &.kn > span:before { background-position: -1728px 0 !important; }
&.kk > a:before, &.kk > span:before { background-position: -1704px 0 !important; }
&.ko > a:before, &.ko > span:before { background-position: -1848px 0 !important; }
&.ku > a:before, &.ku > span:before { background-position: -2088px 0 !important; }
&.ky > a:before, &.ky > span:before { background-position: -1800px 0 !important; }
&.lo > a:before, &.lo > span:before { background-position: -1776px 0 !important; }
&.la > a:before, &.la > span:before { background-position: -1968px 0 !important; }
&.lv > a:before, &.lv > span:before { background-position: -1752px 0 !important; }
&.lt > a:before, &.lt > span:before { background-position: -1656px 0 !important; }
&.lb > a:before, &.lb > span:before { background-position: -1632px 0 !important; }
&.mk > a:before, &.mk > span:before { background-position: -1440px 0 !important; }
&.mg > a:before, &.mg > span:before { background-position: -1560px 0 !important; }
&.ms > a:before, &.ms > span:before { background-position: -1536px 0 !important; }
&.ml > a:before, &.ml > span:before { background-position: -1728px 0 !important; }
&.mt > a:before, &.mt > span:before { background-position: -1200px 0 !important; }
&.mi > a:before, &.mi > span:before { background-position: -1224px 0 !important; }
&.mr > a:before, &.mr > span:before { background-position: -1728px 0 !important; }
&.mn > a:before, &.mn > span:before { background-position: -4800px 0 !important; }
&.ne > a:before, &.ne > span:before { background-position: -1320px 0 !important; }
&.no > a:before, &.no > span:before { background-position: -4776px 0 !important; }
&.ps > a:before, &.ps > span:before { background-position: -4008px 0 !important; }
&.fa > a:before, &.fa > span:before { background-position: -5088px 0 !important; }
&.pl > a:before, &.pl > span:before { background-position: -984px 0 !important; }
&.pt > a:before, &.pt > span:before { background-position: -528px 0 !important; }
&.pa > a:before, &.pa > span:before { background-position: -1728px 0 !important; }
&.ro > a:before, &.ro > span:before { background-position: -960px 0 !important; }
&.ru > a:before, &.ru > span:before { background-position: -936px 0 !important; }
&.sm > a:before, &.sm > span:before { background-position: -3408px 0 !important; }
&.gd > a:before, &.gd > span:before { background-position: -4872px 0 !important; }
&.sr > a:before, &.sr > span:before { background-position: -3120px 0 !important; }
&.sn > a:before, &.sn > span:before { background-position: -72px 0 !important; }
&.sd > a:before, &.sd > span:before { background-position: -1128px 0 !important; }
&.si > a:before, &.si > span:before { background-position: -480px 0 !important; }
&.sk > a:before, &.sk > span:before { background-position: -4152px 0 !important; }
&.sl > a:before, &.sl > span:before { background-position: -696px 0 !important; }
&.so > a:before, &.so > span:before { background-position: -3336px 0 !important; }
&.st > a:before, &.st > span:before { background-position: -3552px 0 !important; }
&.es > a:before, &.es > span:before { background-position: -96px 0 !important; }
&.su > a:before, &.su > span:before { background-position: -3312px 0 !important; }
&.sw > a:before, &.sw > span:before { background-position: -1872px 0 !important; }
&.sv > a:before, &.sv > span:before { background-position: -552px 0 !important; }
&.tl > a:before, &.tl > span:before { background-position: -1008px 0 !important; }
&.ty > a:before, &.ty > span:before { background-position: -4512px 0 !important; }
&.tg > a:before, &.tg > span:before { background-position: -264px 0 !important; }
&.ta > a:before, &.ta > span:before { background-position: -1728px 0 !important; }
&.tt > a:before, &.tt > span:before { background-position: -936px 0 !important; }
&.te > a:before, &.te > span:before { background-position: -1728px 0 !important; }
&.th > a:before, &.th > span:before { background-position: -456px 0 !important; }
&.to > a:before, &.to > span:before { background-position: -3264px 0 !important; }
&.tr > a:before, &.tr > span:before { background-position: -360px 0 !important; }
&.uk > a:before, &.uk > span:before { background-position: -288px 0 !important; }
&.ur > a:before, &.ur > span:before { background-position: -1128px 0 !important; }
&.uz > a:before, &.uz > span:before { background-position: -240px 0 !important; }
&.vi > a:before, &.vi > span:before { background-position: -144px 0 !important; }
&.cy > a:before, &.cy > span:before { background-position: -4848px 0 !important; }
&.fy > a:before, &.fy > span:before { background-position: -1296px 0 !important; }
&.xh > a:before, &.xh > span:before { background-position: -4968px 0 !important; }
&.yi > a:before, &.yi > span:before { background-position: -1992px 0 !important; }
&.yo > a:before, &.yo > span:before { background-position: -1103px 0 !important; }
&.zu > a:before, &.zu > span:before { background-position: -4968px 0 !important; }
}
&.flag-3 {
&.hw > a:before, &.hw > span:before { background-position: -2711px 0 !important; }
&.fl > a:before, &.fl > span:before { background-position: -5232px 0 !important; }
&.af > a:before, &.af > span:before { background-position: -5496px 0 !important; }
&.sq > a:before, &.sq > span:before { background-position: -4776px 0 !important; }
&.am > a:before, &.am > span:before { background-position: -192px 0 !important; }
&.ar > a:before, &.ar > span:before { background-position: -3336px 0 !important; }
&.hy > a:before, &.hy > span:before { background-position: -4632px 0 !important; }
&.az > a:before, &.az > span:before { background-position: -4536px 0 !important; }
&.ba > a:before, &.ba > span:before { background-position: -2664px 0 !important; }
&.eu > a:before, &.eu > span:before { background-position: -5808px 0 !important; }
&.be > a:before, &.be > span:before { background-position: -144px 0 !important; }
&.bn > a:before, &.bn > span:before { background-position: -4488px 0 !important; }
&.bs > a:before, &.bs > span:before { background-position: -4392px 0 !important; }
&.bg > a:before, &.bg > span:before { background-position: -4296px 0 !important; }
&.br > a:before, &.br > span:before { background-position: -4344px 0 !important; }
&.my > a:before, &.my > span:before { background-position: -3769px 0 !important; }
&.ca > a:before, &.ca > span:before { background-position: -5784px 0 !important; }
&.zh > a:before, &.zh > span:before { background-position: -3240px 0 !important; }
&.tw > a:before, &.tw > span:before { background-position: -4008px 0 !important; }
&.km > a:before, &.km > span:before { background-position: -4201px 0 !important; }
&.ny > a:before, &.ny > span:before { background-position: -384px 0 !important; }
&.co > a:before, &.co > span:before { background-position: -2760px 0 !important; } /* TODO */
&.hr > a:before, &.hr > span:before { background-position: -3048px 0 !important; }
&.cs > a:before, &.cs > span:before { background-position: -5280px 0 !important; }
&.da > a:before, &.da > span:before { background-position: -3024px 0 !important; }
&.nl > a:before, &.nl > span:before { background-position: -3360px 0 !important; }
&.en > a:before, &.en > span:before { background-position: -2520px 0 !important; }
&.eo > a:before, &.eo > span:before { background-position: -2520px 0 !important; } /* TODO */
&.et > a:before, &.et > span:before { background-position: -2856px 0 !important; }
&.fj > a:before, &.fj > span:before { background-position: -0px 0 !important; }
&.fi > a:before, &.fi > span:before { background-position: -2784px 0 !important; }
&.fr > a:before, &.fr > span:before { background-position: -2760px 0 !important; }
&.gl > a:before, &.gl > span:before { background-position: -5832px 0 !important; }
&.ka > a:before, &.ka > span:before { background-position: -1536px 0 !important; }
&.de > a:before, &.de > span:before { background-position: -1488px 0 !important; }
&.el > a:before, &.el > span:before { background-position: -1416px 0 !important; }
&.gu > a:before, &.gu > span:before { background-position: -2304px 0 !important; }
&.ht > a:before, &.ht > span:before { background-position: -5160px 0 !important; }
&.ha > a:before, &.ha > span:before { background-position: -361px 0 !important; }
&.he > a:before, &.he > span:before { background-position: -1608px 0 !important; }
&.hi > a:before, &.hi > span:before { background-position: -2304px 0 !important; }
&.hu > a:before, &.hu > span:before { background-position: -1920px 0 !important; }
&.is > a:before, &.is > span:before { background-position: -840px 0 !important; }
&.ig > a:before, &.ig > span:before { background-position: -3457px 0 !important; }
&.id > a:before, &.id > span:before { background-position: -4992px 0 !important; }
&.ga > a:before, &.ga > span:before { background-position: -2016px 0 !important; }
&.it > a:before, &.it > span:before { background-position: -336px 0 !important; }
&.ja > a:before, &.ja > span:before { background-position: -2448px 0 !important; }
&.jv > a:before, &.jv > span:before { background-position: -864px 0 !important; }
&.kn > a:before, &.kn > span:before { background-position: -2304px 0 !important; }
&.kk > a:before, &.kk > span:before { background-position: -3912px 0 !important; }
&.ko > a:before, &.ko > span:before { background-position: -2256px 0 !important; }
&.ku > a:before, &.ku > span:before { background-position: -1920px 0 !important; }
&.ky > a:before, &.ky > span:before { background-position: -744px 0 !important; }
&.lo > a:before, &.lo > span:before { background-position: -3816px 0 !important; }
&.la > a:before, &.la > span:before { background-position: -336px 0 !important; }
&.lv > a:before, &.lv > span:before { background-position: -216px 0 !important; }
&.lt > a:before, &.lt > span:before { background-position: -1776px 0 !important; }
&.lb > a:before, &.lb > span:before { background-position: -1945px 0 !important; }
&.mk > a:before, &.mk > span:before { background-position: -2208px 0 !important; }
&.mg > a:before, &.mg > span:before { background-position: -5064px 0 !important; }
&.ms > a:before, &.ms > span:before { background-position: -864px 0 !important; }
&.ml > a:before, &.ml > span:before { background-position: -2304px 0 !important; }
&.mt > a:before, &.mt > span:before { background-position: -4920px 0 !important; }
&.mi > a:before, &.mi > span:before { background-position: -2113px 0 !important; }
&.mr > a:before, &.mr > span:before { background-position: -2304px 0 !important; }
&.mn > a:before, &.mn > span:before { background-position: -24px 0 !important; }
&.ne > a:before, &.ne > span:before { background-position: -5642px 0 !important; }
&.no > a:before, &.no > span:before { background-position: -984px 0 !important; }
&.ps > a:before, &.ps > span:before { background-position: -4753px 0 !important; }
&.fa > a:before, &.fa > span:before { background-position: -816px 0 !important; }
&.pl > a:before, &.pl > span:before { background-position: -4944px 0 !important; }
&.pt > a:before, &.pt > span:before { background-position: -3504px 0 !important; }
&.pa > a:before, &.pa > span:before { background-position: -2304px 0 !important; }
&.ro > a:before, &.ro > span:before { background-position: -3744px 0 !important; }
&.ru > a:before, &.ru > span:before { background-position: -2664px 0 !important; }
&.sm > a:before, &.sm > span:before { background-position: -1248px 0 !important; }
&.gd > a:before, &.gd > span:before { background-position: -3841px 0 !important; }
&.sr > a:before, &.sr > span:before { background-position: -3312px 0 !important; }
&.sn > a:before, &.sn > span:before { background-position: -5521px 0 !important; }
&.sd > a:before, &.sd > span:before { background-position: -1993px 0 !important; }
&.si > a:before, &.si > span:before { background-position: -2833px 0 !important; } /* TODO */
&.sk > a:before, &.sk > span:before { background-position: -552px 0 !important; }
&.sl > a:before, &.sl > span:before { background-position: -936px 0 !important; }
&.so > a:before, &.so > span:before { background-position: -4032px 0 !important; }
&.st > a:before, &.st > span:before { background-position: -3961px 0 !important; }
&.es > a:before, &.es > span:before { background-position: -3576px 0 !important; }
&.su > a:before, &.su > span:before { background-position: -3985px 0 !important; }
&.sw > a:before, &.sw > span:before { background-position: -912px 0 !important; }
&.sv > a:before, &.sv > span:before { background-position: -264px 0 !important; }
&.tl > a:before, &.tl > span:before { background-position: -5232px 0 !important; }
&.ty > a:before, &.ty > span:before { background-position: -1512px 0 !important; }
&.tg > a:before, &.tg > span:before { background-position: -3720px 0 !important; }
&.ta > a:before, &.ta > span:before { background-position: -2304px 0 !important; }
&.tt > a:before, &.tt > span:before { background-position: -2664px 0 !important; }
&.te > a:before, &.te > span:before { background-position: -2304px 0 !important; }
&.th > a:before, &.th > span:before { background-position: -4848px 0 !important; }
&.to > a:before, &.to > span:before { background-position: -1680px 0 !important; }
&.tr > a:before, &.tr > span:before { background-position: -432px 0 !important; }
&.uk > a:before, &.uk > span:before { background-position: -5736px 0 !important; }
&.ur > a:before, &.ur > span:before { background-position: -1992px 0 !important; }
&.uz > a:before, &.uz > span:before { background-position: -2160px 0 !important; }
&.vi > a:before, &.vi > span:before { background-position: -3384px 0 !important; }
&.cy > a:before, &.cy > span:before { background-position: -5040px 0 !important; }
&.fy > a:before, &.fy > span:before { background-position: -3360px 0 !important; }
&.xh > a:before, &.xh > span:before { background-position: -5496px 0 !important; }
&.yi > a:before, &.yi > span:before { background-position: -1608px 0 !important; }
&.yo > a:before, &.yo > span:before { background-position: -3457px 0 !important; }
&.zu > a:before, &.zu > span:before { background-position: -5496px 0 !important; }
}
}

View File

@@ -0,0 +1,535 @@
@import "_colors.scss";
@import "selectize.css";
$wp-color-red: #dc3232; // RGB(220,50,50)
$wp-color-green: #46b450; // RGB(70, 180, 80)
#custom_flag_tips{
font-size: 12px;
}
#weglot-url-translate,
#wrap-weglot {
/* Code Editor */
.CodeMirror-placeholder {
color: #c0c0c0;
}
.CodeMirror-wrap {
border-radius: 4px;
border: 1px solid #c0c0c0;
width: 100%;
max-width: 550px;
height: 200px;
}
/* End Code Editor */
.weglot__choice__language {
border-bottom: 1px solid #eee;
margin: 5px 0;
&--local {
border-width: 50px;
color: #a6a6a6;
display: block;
}
}
p.weglot-keyres {
font-style: italic;
color: #ff6464;
}
.weglot_text_error {
color: $wp-color-red;
}
.weglot_reset {
text-decoration: underline;
font-style: italic;
&:hover {
cursor: pointer;
}
}
.btn {
background: $primary;
display: inline-block;
padding: 8px 10px;
border-radius: 4px;
transition: 0.2s background linear, 0.2s color linear,
0.2s border linear, 0.2s text-shadow linear;
outline: 0;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-weight: 700;
cursor: pointer;
text-align: center;
text-decoration: none;
box-shadow: none;
white-space: nowrap;
color: white;
border: 1px solid $primary;
&.btn-soft {
background-color: #fff;
color: $textColor;
border-radius: 4px;
border: 1px solid #7e8993;
line-height: 1.4em;
&.disable-btn{
background: #eaeaea;
opacity: 0.8;
}
}
&.btn-primary {
&:active,
&:focus,
&:hover {
border-color: $primaryHover;
background-color: $primaryHover;
}
}
}
.js-btn-remove {
border: none;
background-color: #e35b5b;
color: #fff;
display: inline-block;
width: 22px;
height: 22px;
border-radius: 50%;
cursor: pointer;
transform: translateY(-5%);
transition: opacity 175ms linear;
outline: 0;
padding: 0;
margin: 4px 0;
vertical-align: middle;
&:hover {
background-color: #c62d2d;
}
}
.item-exclude {
position: relative;
margin-bottom: 10px;
}
&::-webkit-input-placeholder,
&:-moz-placeholder,
&::-moz-placeholder,
&:-ms-input-placeholder {
color: #c0c0c0;
}
.sub-label {
font-size: 13px;
font-weight: normal;
margin: 2px 0 0;
color: #444;
opacity: 0.8;
}
.weglot-select-original {
height: 36px !important;
margin: 0;
}
.original-select,
#type_flags {
padding: 8px;
height: 36px !important;
width: 300px;
}
#type_flags {
width: 150px;
}
.selectize-control.multi .selectize-input {
border: 1px solid #7e8993;
border-radius: 4px;
box-shadow: unset;
& > div {
background-color: #eff0ff;
border: 1px solid #7e8993;
border-radius: 2px;
.remove {
border-left-color: #7e8993;
}
}
}
.wg-input-textarea {
padding: 8px;
&::placeholder {
color: #c0c0c0;
}
}
.weglot-select.weglot-select-original,
input[type="text"],
textarea,
select,
#type_flags {
padding: 0 8px;
border-radius: 4px;
border: 1px solid #7e8993;
&:focus {
border-color: $primaryHover !important;
box-shadow: none !important;
}
}
.weglot-info {
position: relative;
color: #3741cc;
font-weight: bold;
&:hover {
.wg-tooltip {
line-height: 1.4;
position: absolute;
top: 27px;
display: block !important;
background-color: #24292d;
width: 160px;
padding: 10px;
color: white;
font-weight: normal;
border: 1px solid #e0e0e0;
font-size: 12px;
}
}
}
.weglot-box-overlay {
position: fixed;
top: 0;
left: 0;
display: flex;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.85);
z-index: 9999;
justify-content: center;
align-items: center;
.weglot-box {
background-color: #fff;
padding: 25px;
text-align: center;
-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
&--title {
font-size: 24px;
line-height: 1.3;
}
&--text {
font-size: 18px;
}
&--subtext {
font-size: 12px;
font-style: italic;
}
}
.weglot-btn-close {
float: right;
cursor: pointer;
}
}
.flag-style-openclose {
display: inline-block;
font-size: 12px;
text-decoration: underline;
cursor: default;
margin: 12px 15px 0 10px;
color: $wp-color-green;
&:hover {
color: #399648;
cursor: pointer;
}
}
.flag-style-wrapper {
padding: 15px 0px;
p {
font-size: 12px !important;
}
select {
font-size: 12px;
margin: 0 2px 6px 0;
padding: 0 26px 0 8px;
}
}
#private_mode {
+ p + div {
display: none;
}
&:checked + p + div {
display: block;
}
}
#private-mode-detail {
margin-top: 20px;
.private-mode-detail-lang {
display: flex;
align-items: center;
margin-bottom: 10px;
margin-left: 25px;
input[type="checkbox"] {
margin-top: -1px;
}
}
}
}
#wrap-weglot {
display: flex;
margin-left: 15px;
.wrap {
flex: 4;
&.wrap-left{
flex: 2;
}
}
input[type="text"]:not(#destination_language-selectized),
input[type="url"] {
padding: 0 8px;
height: 36px;
}
select {
height: 36px;
vertical-align: top;
border-radius: 4px;
padding: 0 26px 0 8px;
}
input[type="checkbox"] {
margin-top: -4px;
}
.weglot-ckeckkey:before {
content: "";
display: inline-block;
color: #666;
padding: 0 6px 0 0;
font-size: 16px;
padding: 0 10px;
line-height: 1em;
-webkit-animation: spin 2s infinite linear;
}
@-webkit-keyframes spin {
0% {-webkit-transform: rotate(0deg);}
100% {-webkit-transform: rotate(360deg);}
}
.weglot-nokkey:before {
content: "\274C";
display: inline-block;
color: $wp-color-red;
padding: 0 6px 0 0;
font-size: 15px;
padding: 0 10px;
}
.weglot-okkey:before {
content: "\2713";
display: inline-block;
color: $wp-color-green;
padding: 0 10px;
font-size: 20px;
font-weight: bold;
padding: 0 10px;
}
.weglot-infobox {
&.weglot-info-translation-box{
position: sticky;
top: 275px;
}
&.weglot-wp-menu{
position: sticky;
top: 40px;
a{
text-decoration: none;
&:focus{
font-weight: bold;
text-decoration: underline;
outline: 0;
box-shadow: none;
}
}
blockquote{
text-align: center;
}
}
flex: 2;
align-self: start;
margin: 10px 20px 0 2px;
background-color: white;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow: hidden;
h3 {
color: rgb(24, 22, 76);
background-color: white;
padding: 30px 30px 0 30px;
margin: 0px;
font-size: 23px;
line-height: 1.3;
}
div {
padding: 15px 30px 5px 30px;
}
.weglot-editbtn {
box-shadow: 0 2px 4px 0 rgba(1, 1, 2, 0.05);
background-color: rgb(61, 70, 251);
color: #fff;
height: 45px;
border-radius: 23px;
line-height: 45px;
font-size: 14px !important;
text-decoration: none;
padding: 0 30px;
display: inline-block;
transition: all 0.2s ease-in;
&:hover {
color: white;
background: rgb(37, 46, 215);
}
}
}
input[type="text"],
.selectize-control,
.wg-input-textarea,
.weglot-select-original {
width: 100%;
max-width: 320px;
}
#submit {
height: 50px;
padding: 0 30px !important;
font-size: 16px;
}
.description {
display: inline;
}
.wg-tooltip {
position: absolute;
display: none;
}
#mainform {
margin-bottom: 50px;
}
.arrow-up {
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #24292d;
position: absolute;
top: -10px;
left: 36px;
}
.question-icon {
font-size: 17px;
}
.form-table {
margin-bottom: 50px;
}
.country-selector {
z-index: 1 !important;
}
}
#weglot-url-translate {
.weglot_custom_url {
border-bottom: 1px solid #ccc;
margin-bottom: 20px;
padding-bottom: 10px;
a {
margin: 5px 0px;
display: inline-block;
}
&--text_link {
margin-bottom: 4px;
}
.weglot_custom_url--text_link {
input[type="text"] {
min-height: 24px !important;
height: 24px;
}
button {
margin-top: -2px;
font-size: 11px;
padding: 0 8px;
&.button-weglot-lang {
.dashicons {
font-size: 14px;
line-height: 21px;
margin-right: -3px;
margin-left: -4px;
}
}
}
}
a.weglot_reset {
text-decoration: none;
&:link,
&:visited,
&:hover,
&:active {
text-decoration: none;
}
}
}
}

View File

@@ -0,0 +1,246 @@
@import "_colors.scss";
$heightSelector: 37px;
$lineHeight: 36px;
.country-selector {
z-index: 9999;
text-align: left;
position: relative;
display: inline-block;
width: auto;
a {
padding: 0 10px;
outline: none;
text-decoration: none;
float: none;
white-space: nowrap;
font-weight: normal;
cursor: pointer;
color: black;
-webkit-touch-callout: none; /* iOS Safari */
user-select: none;
&:focus {
outline: none;
}
}
ul {
padding: 0px;
z-index: 1010;
list-style: none;
margin: 0;
}
li {
margin: 0px;
padding: 0px;
}
&.weglot-dropdown {
background-color: white;
a,
span {
display: block;
height: $heightSelector;
line-height: $lineHeight;
font-size: 13px;
padding: 0 10px;
width: 100%;
box-sizing: border-box;
font-weight: normal;
&:hover {
cursor: pointer;
}
}
.wgcurrent {
border: 1px solid #e0e0e0;
list-style: none;
display: block;
margin: 0;
a,
span {
padding-right: 60px;
}
&:after {
display: inline-block;
position: absolute;
top: 17px;
right: 8px;
width: 13px;
height: 7px;
image-rendering: pixelated;
background: url("../images/wgarrowdown.png") no-repeat;
content: "";
transition: all 200ms;
transform: rotate(-90deg);
}
}
ul {
position: absolute;
min-width: 100%;
border: 1px solid #ebeef0;
background: white;
left: 0;
top: initial;
box-sizing: border-box;
display: none;
padding: 0;
}
input:checked ~ ul {
display: block;
}
input:checked ~ .wgcurrent:after {
transform: rotate(0deg);
}
li {
width: 100%;
}
&.weglot-invert {
ul {
bottom: 38px;
}
input:checked ~ .wgcurrent:after {
transform: rotate(-180deg);
}
}
}
&.weglot-default {
position: fixed;
bottom: 0px;
right: 40px;
}
&.weglot-inline {
a {
&:hover {
text-decoration: underline;
color: #00a0d2;
}
}
.wgcurrent {
a {
text-decoration: underline;
}
}
label {
margin-bottom: 0;
display: inline-block;
vertical-align: middle;
}
ul {
display: inline-block;
vertical-align: middle;
}
li {
line-height: 1;
display: inline-block;
margin: 2px 0px;
vertical-align: middle;
}
&.weglot-default {
bottom: 5px;
}
}
input {
display: none;
}
}
.navbar {
.navbar-nav {
li.weglot-flags {
a.weglot-lang {
&:before {
position: static;
transform: none;
transition: none;
}
}
}
}
}
html[dir="rtl"] {
.weglot-flags a:before,
.weglot-flags span:before {
margin-right: 0;
margin-left: 10px;
}
}
.weglot-flags {
a,
span.wglanguage-name {
&:before {
background-image: url("../images/rect_mate.png");
background-size: auto 20px;
border-radius: 0px;
width: 30px;
height: 20px;
content: "";
vertical-align: middle;
margin-right: 10px;
display: inline-block;
overflow: hidden;
}
}
&.flag-1 {
a,
span {
&:before {
background-image: url("../images/rect_bright.png");
}
}
}
&.flag-2 {
a,
span {
&:before {
background-image: url("../images/square_flag.png");
width: 24px;
height: 24px;
background-size: auto 24px;
}
}
}
&.flag-3 {
a,
span {
&:before {
background-image: url("../images/circular_flag.png");
width: 24px;
height: 24px;
background-size: auto 24px;
}
}
}
a {
span:before {
background-image: none;
display: none;
}
}
span {
a:before {
background-image: none;
display: none;
}
}
}

View File

@@ -0,0 +1,271 @@
@import "_colors.scss";
@import "_flags.scss";
$heightSelector: 37px;
$lineHeight: 36px;
#wp-admin-bar-weglot {
> .ab-item {
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZyBmaWxsPSIjYTBhNWFhIj48cGF0aCBkPSJNMjEuNzM5IDkyLjU2NWw1MS44MjggMTI5LjczMiAyMy42Ni02MC4yNzkgMjQuMTQ0IDYwLjI3OUwxNzMuMiA5Mi41NjVoLTI4LjAwN2wtMjMuODIyIDU4Ljc1LTIzLjkwMi01OC43NS0yMy45MDIgNTguNzUtMjMuOTAyLTU4Ljc1SDIxLjczOXoiLz48cGF0aCBkPSJNMjEwLjAwNiA5Mi43MWMtMTcuODY2IDAtMzMuMTU3IDYuMzU4LTQ1Ljg3MyAxOS4wNzQtMTIuNzE1IDEyLjcxNi0xOC45OTMgMjguMDA2LTE4Ljk5MyA0NS43OTIgMCAxNy44NjcgNi4yNzggMzMuMTU4IDE4Ljk5MyA0NS44NzMgMTIuNzE2IDEyLjcxNiAyOC4wMDcgMTguOTkzIDQ1Ljg3MyAxOC45OTMgMTcuNzg2IDAgMzMuMDc3LTYuMjc3IDQ1Ljc5My0xOC45OTMgMTIuNzE1LTEyLjcxNSAxOS4wNzMtMjguMDA2IDE5LjA3My00NS44NzMgMC00LjUwNy0uNDgzLTguODUyLTEuMjg4LTEyLjk1N2gtNjMuNTc4djI1LjkxNGgzNi42OTljLTIuNzM3IDcuNTY1LTcuNDg1IDEzLjg0My0xNC4wODQgMTguNjcxLTYuNjggNC44My0xNC4yNDUgNy4yNDQtMjIuNjE1IDcuMjQ0LTEwLjc4NCAwLTE5Ljk1OC0zLjc4My0yNy41MjMtMTEuMzQ4LTcuNTY2LTcuNTY1LTExLjM0OC0xNi43NC0xMS4zNDgtMjcuNTI0IDAtMTAuNjIzIDMuNzgyLTE5Ljc5OCAxMS4zNDgtMjcuNDQzIDcuNTY1LTcuNjQ1IDE2Ljc0LTExLjUwOCAyNy41MjMtMTEuNTA4IDEwLjYyMyAwIDE5Ljc5OCAzLjg2MyAyNy41MjQgMTEuNDI4bDE4LjM1LTE4LjM1YTY3Ljk2MyA2Ny45NjMgMCAwMC0yMC43NjQtMTMuODQyYy03Ljg4Ny0zLjM4LTE2LjI1Ny01LjE1LTI1LjExLTUuMTV6Ii8+PC9nPjwvc3ZnPg==") !important;
background-size: 22px auto !important;
background-repeat: no-repeat !important;
background-position: 4px 5px !important;
padding-left: 30px !important;
}
}
li.weglot-hide,
.weglot-hide {
display: none !important;
}
.country-selector {
z-index: 9999;
text-align: left;
position: relative;
display: inline-block;
width: auto;
a {
padding: 0 10px;
outline: none;
text-decoration: none;
float: none !important;
white-space: nowrap;
font-weight: normal;
cursor: pointer;
color: black;
-webkit-touch-callout: none; /* iOS Safari */
user-select: none;
&:focus {
outline: none;
}
}
ul {
padding: 0px;
z-index: 1010;
list-style: none;
margin: 0;
}
li {
margin: 0px;
padding: 0px;
}
&.weglot-custom-switcher-ajax{
display: none;
}
&.weglot-dropdown {
background-color: white;
a,
span {
display: block;
height: $heightSelector;
line-height: $lineHeight;
font-size: 13px;
padding: 0 10px;
width: 100%;
box-sizing: border-box;
font-weight: normal;
&:hover {
cursor: pointer;
}
}
.wgcurrent {
border: 1px solid #e0e0e0;
list-style: none;
display: block;
margin: 0;
a,
span {
padding-right: 60px;
}
&:after {
display: inline-block;
position: absolute;
top: 17px;
right: 8px;
width: 13px;
height: 7px;
image-rendering: pixelated;
background: url("../images/wgarrowdown.png") no-repeat;
content: "";
transition: all 200ms;
transform: rotate(-90deg);
}
}
ul {
position: absolute;
min-width: 100%;
border: 1px solid #ebeef0;
background: white;
left: 0;
top: initial;
box-sizing: border-box;
display: none;
padding: 0;
}
input:checked ~ ul {
display: block;
}
input:checked ~ .wgcurrent:after {
transform: rotate(0deg);
}
li {
width: 100%;
}
&.weglot-invert {
ul {
bottom: 38px;
}
input:checked ~ .wgcurrent:after {
transform: rotate(-180deg);
}
}
}
&.weglot-default {
position: fixed;
bottom: 0px;
right: 40px;
}
&.weglot-inline {
a {
&:hover {
text-decoration: underline;
color: #00a0d2;
}
}
.wgcurrent {
a {
text-decoration: underline;
}
}
label {
margin-bottom: 0;
display: inline-block;
vertical-align: middle;
}
ul {
display: inline-block;
vertical-align: middle;
}
li {
line-height: 1 !important;
display: inline-block;
margin: 2px 0px;
vertical-align: middle;
}
&.weglot-default {
bottom: 5px;
}
}
input {
display: none !important;
}
}
.navbar {
.navbar-nav {
li.weglot-flags {
a.weglot-lang {
&:before {
position: static;
transform: none;
transition: none;
}
}
}
}
}
.js .main-navigation .country-selector ul {
display: none;
}
html[dir="rtl"] {
.weglot-flags a:before,
.weglot-flags span:before {
margin-right: 0;
margin-left: 10px;
}
}
.weglot-flags {
> a,
> span.wglanguage-name {
&:before {
background-image: url("../images/rect_mate.png");
background-size: auto 20px !important;
border-radius: 0px !important;
width: 30px !important;
height: 20px !important;
content: "";
vertical-align: middle;
margin-right: 10px;
display: inline-block;
overflow: hidden;
}
}
&.flag-1 {
> a,
> span {
&:before {
background-image: url("../images/rect_bright.png");
}
}
}
&.flag-2 {
> a,
> span {
&:before {
background-image: url("../images/square_flag.png");
width: 24px !important;
height: 24px !important;
background-size: auto 24px !important;
}
}
}
&.flag-3 {
a,
span {
&:before {
background-image: url("../images/circular_flag.png");
width: 24px !important;
height: 24px !important;
background-size: auto 24px !important;
}
}
}
> a {
span:before {
background-image: none !important;
display: none !important;
}
}
> span {
a:before {
background-image: none !important;
display: none !important;
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,324 @@
/**
* selectize.css (v0.12.4)
* Copyright (c) 20132015 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
* ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*
* @author Brian Reavis <brian@thirdroute.com>
*/
.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
visibility: visible !important;
background: #f2f2f2 !important;
background: rgba(0, 0, 0, 0.06) !important;
border: 0 none !important;
-webkit-box-shadow: inset 0 0 12px 4px #ffffff;
box-shadow: inset 0 0 12px 4px #ffffff;
}
.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
content: '!';
visibility: hidden;
}
.selectize-control.plugin-drag_drop .ui-sortable-helper {
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.selectize-dropdown-header {
position: relative;
padding: 5px 8px;
border-bottom: 1px solid #d0d0d0;
background: #f8f8f8;
-webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
.selectize-dropdown-header-close {
position: absolute;
right: 8px;
top: 50%;
color: #303030;
opacity: 0.4;
margin-top: -12px;
line-height: 20px;
font-size: 20px !important;
}
.selectize-dropdown-header-close:hover {
color: #000000;
}
.selectize-dropdown.plugin-optgroup_columns .optgroup {
border-right: 1px solid #f2f2f2;
border-top: 0 none;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
border-right: 0 none;
}
.selectize-dropdown.plugin-optgroup_columns .optgroup:before {
display: none;
}
.selectize-dropdown.plugin-optgroup_columns .optgroup-header {
border-top: 0 none;
}
.selectize-control.plugin-remove_button [data-value] {
position: relative;
padding-right: 24px !important;
}
.selectize-control.plugin-remove_button [data-value] .remove {
z-index: 1;
/* fixes ie bug (see #392) */
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 17px;
text-align: center;
font-weight: bold;
font-size: 12px;
color: inherit;
text-decoration: none;
vertical-align: middle;
display: inline-block;
padding: 2px 0 0 0;
border-left: 1px solid #d0d0d0;
-webkit-border-radius: 0 2px 2px 0;
-moz-border-radius: 0 2px 2px 0;
border-radius: 0 2px 2px 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.selectize-control.plugin-remove_button [data-value] .remove:hover {
background: rgba(0, 0, 0, 0.05);
}
.selectize-control.plugin-remove_button [data-value].active .remove {
border-left-color: #cacaca;
}
.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
background: none;
}
.selectize-control.plugin-remove_button .disabled [data-value] .remove {
border-left-color: #ffffff;
}
.selectize-control.plugin-remove_button .remove-single {
position: absolute;
right: 28px;
top: 6px;
font-size: 23px;
}
.selectize-control {
position: relative;
}
.selectize-dropdown,
.selectize-input,
.selectize-input input {
color: #303030;
font-family: inherit;
font-size: 13px;
line-height: 18px;
-webkit-font-smoothing: inherit;
}
.selectize-input,
.selectize-control.single .selectize-input.input-active {
background: #ffffff;
cursor: text;
display: inline-block;
}
.selectize-input {
border: 1px solid #d0d0d0;
padding: 8px 8px;
display: inline-block;
width: 100%;
overflow: hidden;
position: relative;
z-index: 1;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.selectize-control.multi .selectize-input.has-items {
padding: 6px 8px 3px;
}
.selectize-input.full {
background-color: #ffffff;
}
.selectize-input.disabled,
.selectize-input.disabled * {
cursor: default !important;
}
.selectize-input.focus {
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.selectize-input.dropdown-active {
-webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
.selectize-input > * {
vertical-align: baseline;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
}
.selectize-control.multi .selectize-input > div {
cursor: pointer;
margin: 0 3px 3px 0;
padding: 2px 6px;
background: #f2f2f2;
color: #303030;
border: 0 solid #d0d0d0;
}
.selectize-control.multi .selectize-input > div.active {
background: #e8e8e8;
color: #303030;
border: 0 solid #cacaca;
}
.selectize-control.multi .selectize-input.disabled > div,
.selectize-control.multi .selectize-input.disabled > div.active {
color: #7d7d7d;
background: #ffffff;
border: 0 solid #ffffff;
}
.selectize-input > input {
display: inline-block !important;
padding: 0 !important;
min-height: 0 !important;
max-height: none !important;
max-width: 100% !important;
margin: 0 2px 0 0 !important;
text-indent: 0 !important;
border: 0 none !important;
background: none !important;
line-height: inherit !important;
-webkit-user-select: auto !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
.selectize-input > input::-ms-clear {
display: none;
}
.selectize-input > input:focus {
outline: none !important;
}
.selectize-input::after {
content: ' ';
display: block;
clear: left;
}
.selectize-input.dropdown-active::before {
content: ' ';
display: block;
position: absolute;
background: #f0f0f0;
height: 1px;
bottom: 0;
left: 0;
right: 0;
}
.selectize-dropdown {
position: absolute;
z-index: 10;
border: 1px solid #d0d0d0;
background: #ffffff;
margin: -1px 0 0 0;
border-top: 0 none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
}
.selectize-dropdown [data-selectable] {
cursor: pointer;
overflow: hidden;
}
.selectize-dropdown [data-selectable] .highlight {
background: rgba(125, 168, 208, 0.2);
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
}
.selectize-dropdown [data-selectable],
.selectize-dropdown .optgroup-header {
padding: 5px 8px;
}
.selectize-dropdown .optgroup:first-child .optgroup-header {
border-top: 0 none;
}
.selectize-dropdown .optgroup-header {
color: #303030;
background: #ffffff;
cursor: default;
}
.selectize-dropdown .active {
background-color: #f5fafd;
color: #495c68;
}
.selectize-dropdown .active.create {
color: #495c68;
}
.selectize-dropdown .create {
color: rgba(48, 48, 48, 0.5);
}
.selectize-dropdown-content {
overflow-y: auto;
overflow-x: hidden;
max-height: 200px;
-webkit-overflow-scrolling: touch;
}
.selectize-control.single .selectize-input,
.selectize-control.single .selectize-input input {
cursor: pointer;
}
.selectize-control.single .selectize-input.input-active,
.selectize-control.single .selectize-input.input-active input {
cursor: text;
}
.selectize-control.single .selectize-input:after {
content: ' ';
display: block;
position: absolute;
top: 50%;
right: 15px;
margin-top: -3px;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 5px 0 5px;
border-color: #808080 transparent transparent transparent;
}
.selectize-control.single .selectize-input.dropdown-active:after {
margin-top: -4px;
border-width: 0 5px 5px 5px;
border-color: transparent transparent #808080 transparent;
}
.selectize-control.rtl.single .selectize-input:after {
left: 15px;
right: auto;
}
.selectize-control.rtl .selectize-input > input {
margin: 0 4px 0 -2px !important;
}
.selectize-control .selectize-input.disabled {
opacity: 0.5;
background-color: #fafafa;
}

View File

@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Coverage directory used by tools like istanbul
coverage
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Output of `npm pack`
*.tgz
# Output of `wp-scripts plugin-zip`
*.zip
# dotenv environment variables file
.env

View File

@@ -0,0 +1,18 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/weglot-menu",
"version": "0.1.0",
"title": "Weglot Widget menu",
"category": "widgets",
"parent": ["core/navigation"],
"icon": "smiley",
"description": "Weglot switcher menu",
"supports": {
"html": true
},
"textdomain": "weglot-menu",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'c32346d2d7f9ab48d67c439f11567927');

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(){"use strict";var L={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return L.d(t,{a:t}),t},d:function(e,t){for(var n in t)L.o(t,n)&&!L.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(L,e){return Object.prototype.hasOwnProperty.call(L,e)}},e=window.wp.blocks,t=window.wp.element;const n={};n.weglot=(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.9831 0.0472697L13.4682 0.0945448L13.9462 0.164576L14.4172 0.250364L14.8829 0.355413L15.3417 0.477971L15.7916 0.618033L16.2346 0.775604L16.6706 0.950685L17.0961 1.14152L17.5146 1.34811L17.9208 1.56872L18.32 1.80508L18.7087 2.05719L19.0851 2.32331L19.4528 2.60344L19.803 2.89758L20.1532 3.20397L20.4859 3.52261L20.8046 3.85352L21.111 4.20368L21.4051 4.55384L21.6853 4.9215L21.9514 5.29793L22.2018 5.68661L22.4399 6.08404L22.6605 6.49197L22.8672 6.90867L23.0563 7.33586L23.2314 7.77006L23.3872 8.21302L23.529 8.66472L23.6516 9.12168L23.7566 9.5874L23.8424 10.0601L23.9107 10.5381L23.9597 11.0213L23.9895 11.5115L24 12.0053L23.9895 12.5007L23.9597 12.9892L23.9107 13.4724L23.8424 13.9521L23.7566 14.4231L23.6516 14.8888L23.529 15.3458L23.3872 15.7975L23.2314 16.2404L23.0563 16.6764L22.8672 17.1018L22.6605 17.5185L22.4399 17.9265L22.2018 18.3256L21.9514 18.7126L21.6853 19.089L21.4051 19.4567L21.111 19.8068L20.8046 20.157L20.4859 20.4896L20.1532 20.8083L19.803 21.1147L19.4528 21.4071L19.0851 21.6872L18.7087 21.9533L18.32 22.2037L17.9208 22.44L17.5146 22.6624L17.0961 22.8637L16.6706 23.0546L16.2346 23.2296L15.7916 23.3872L15.3417 23.5273L14.8829 23.6498L14.4172 23.7549L13.9462 23.8424L13.4682 23.9107L12.9831 23.9597L12.4946 23.9895L11.9991 24L11.5054 23.9895L11.0151 23.9597L10.5318 23.9142L10.0538 23.8459L9.58109 23.7584L9.1171 23.6533L8.65835 23.5308L8.20311 23.389L7.75837 23.2314L7.32415 23.0563L6.90392 22.8637L6.48545 22.6589L6.07748 22.4365L5.68002 22.2002L5.29306 21.9498L4.91486 21.6819L4.54717 21.4018L4.19698 21.1094L3.84679 20.803L3.51412 20.4844L3.19545 20.1517L2.88904 19.8016L2.59488 19.4514L2.31473 19.0837L2.04859 18.7056L1.79821 18.3186L1.56183 17.9195L1.33946 17.5115L1.13285 17.0948L0.943754 16.6694L0.768661 16.2334L0.612826 15.7905L0.472753 15.3388L0.348439 14.8818L0.243382 14.4161L0.157583 13.9451L0.0892992 13.4654L0.0402733 12.9822L0.0105052 12.4937L0 11.9983L0.0105052 11.5045L0.0402733 11.0143L0.0892992 10.5311L0.157583 10.0531L0.243382 9.58039L0.348439 9.11468L0.472753 8.65772L0.612826 8.20601L0.768661 7.76306L0.943754 7.32886L1.13285 6.90166L1.33946 6.48497L1.56183 6.07703L1.79821 5.6796L2.04859 5.29093L2.31473 4.9145L2.59488 4.54683L2.88904 4.19667L3.19545 3.84651L3.51412 3.51561L3.84679 3.19697L4.19698 2.89058L4.54717 2.59644L4.91486 2.31631L5.29306 2.05019L5.68002 1.79807L6.07748 1.56171L6.48545 1.34112L6.90392 1.13452L7.3294 0.94368L7.76363 0.7686L8.20836 0.611028L8.65835 0.470966L9.1171 0.348408L9.58109 0.243359L10.0538 0.157571L10.5318 0.0875401L11.0151 0.0402704L11.5054 0.00875188L11.9991 0L12.4946 0.00875188L12.9831 0.0472697Z",fill:"#18164C"}),(0,t.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1629 9.00676C14.0613 8.08877 15.1601 7.64917 16.4463 7.64917C17.6781 7.65415 18.8591 8.14147 19.7361 9.00676L18.424 10.3191C17.8617 9.77606 17.2089 9.49808 16.4592 9.49808C15.7171 9.48861 15.004 9.78563 14.4879 10.3191C13.945 10.8686 13.6735 11.528 13.6735 12.2908C13.6616 13.0323 13.9563 13.7457 14.4879 14.2626C15.1252 14.9082 16.0385 15.2003 16.9321 15.0442C17.8257 14.8881 18.5861 14.3038 18.967 13.4803H16.3558V11.7284H21.0546C21.2285 13.1474 20.7371 14.5672 19.7232 15.5749C18.8118 16.48 17.7131 16.939 16.4398 16.939C15.2057 16.9581 14.019 16.4641 13.1629 15.5749C12.2895 14.7137 11.8376 13.6744 11.8015 12.4513L9.9843 17.0943L8.26446 12.529L6.58987 17.0943L2.91095 7.71111H4.89589L6.58987 12.0563L8.29032 7.71111L9.9843 12.0563L11.6718 7.71111H13.6568L13.1415 9.02764C13.1486 9.02066 13.1557 9.0137 13.1629 9.00676Z",fill:"white"}));var o=n,r=(window.wp.i18n,window.wp.blockEditor),l=window.wp.serverSideRender,i=L.n(l);(0,e.registerBlockType)("create-block/weglot-menu",{icon:o.weglot,edit:function(L){const e=(0,r.useBlockProps)();return(0,t.createElement)("div",e,(0,t.createElement)(i(),{block:"create-block/weglot-widget",attributes:L.attributes}))},save:function(){return null}})}();

View File

@@ -0,0 +1,55 @@
=== Weglot Menu ===
Contributors: The WordPress Contributors
Tags: block
Tested up to: 5.9
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Example block written with ESNext standard and JSX support build step required.
== Description ==
This is the long description. No limit, and you can use Markdown (as well as in the following sections).
For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.
== Installation ==
This section describes how to install the plugin and get it working.
e.g.
1. Upload the plugin files to the `/wp-content/plugins/weglot-menu` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
== Frequently Asked Questions ==
= A question that someone might have =
An answer to that question.
= What about foo bar? =
Answer to foo bar dilemma.
== Screenshots ==
1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
2. This is the second screen shot
== Changelog ==
= 0.1.0 =
* Release
== Arbitrary section ==
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
"installation." Arbitrary sections will be shown below the built-in sections outlined above.

View File

@@ -0,0 +1,18 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/weglot-menu",
"version": "0.1.0",
"title": "Weglot Widget menu",
"category": "widgets",
"parent": ["core/navigation"],
"icon": "smiley",
"description": "Weglot switcher menu",
"supports": {
"html": true
},
"textdomain": "weglot-menu",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}

View File

@@ -0,0 +1,43 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import {__} from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#useBlockProps
*/
import {useBlockProps} from '@wordpress/block-editor';
import ServerSideRender from '@wordpress/server-side-render';
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* Those files can contain any CSS code that gets applied to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './editor.scss';
/**
* The edit function describes the structure of your block in the context of the
* editor. This represents what the editor will render when the block is used.
*
* @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
*
* @return {WPElement} Element to render.
*/
export default function Edit(props) {
const blockProps = useBlockProps();
return (
<div {...blockProps}>
<ServerSideRender
block="create-block/weglot-widget"
attributes={props.attributes}
/>
</div>
);
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
const icons = {};
icons.weglot = <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.9831 0.0472697L13.4682 0.0945448L13.9462 0.164576L14.4172 0.250364L14.8829 0.355413L15.3417 0.477971L15.7916 0.618033L16.2346 0.775604L16.6706 0.950685L17.0961 1.14152L17.5146 1.34811L17.9208 1.56872L18.32 1.80508L18.7087 2.05719L19.0851 2.32331L19.4528 2.60344L19.803 2.89758L20.1532 3.20397L20.4859 3.52261L20.8046 3.85352L21.111 4.20368L21.4051 4.55384L21.6853 4.9215L21.9514 5.29793L22.2018 5.68661L22.4399 6.08404L22.6605 6.49197L22.8672 6.90867L23.0563 7.33586L23.2314 7.77006L23.3872 8.21302L23.529 8.66472L23.6516 9.12168L23.7566 9.5874L23.8424 10.0601L23.9107 10.5381L23.9597 11.0213L23.9895 11.5115L24 12.0053L23.9895 12.5007L23.9597 12.9892L23.9107 13.4724L23.8424 13.9521L23.7566 14.4231L23.6516 14.8888L23.529 15.3458L23.3872 15.7975L23.2314 16.2404L23.0563 16.6764L22.8672 17.1018L22.6605 17.5185L22.4399 17.9265L22.2018 18.3256L21.9514 18.7126L21.6853 19.089L21.4051 19.4567L21.111 19.8068L20.8046 20.157L20.4859 20.4896L20.1532 20.8083L19.803 21.1147L19.4528 21.4071L19.0851 21.6872L18.7087 21.9533L18.32 22.2037L17.9208 22.44L17.5146 22.6624L17.0961 22.8637L16.6706 23.0546L16.2346 23.2296L15.7916 23.3872L15.3417 23.5273L14.8829 23.6498L14.4172 23.7549L13.9462 23.8424L13.4682 23.9107L12.9831 23.9597L12.4946 23.9895L11.9991 24L11.5054 23.9895L11.0151 23.9597L10.5318 23.9142L10.0538 23.8459L9.58109 23.7584L9.1171 23.6533L8.65835 23.5308L8.20311 23.389L7.75837 23.2314L7.32415 23.0563L6.90392 22.8637L6.48545 22.6589L6.07748 22.4365L5.68002 22.2002L5.29306 21.9498L4.91486 21.6819L4.54717 21.4018L4.19698 21.1094L3.84679 20.803L3.51412 20.4844L3.19545 20.1517L2.88904 19.8016L2.59488 19.4514L2.31473 19.0837L2.04859 18.7056L1.79821 18.3186L1.56183 17.9195L1.33946 17.5115L1.13285 17.0948L0.943754 16.6694L0.768661 16.2334L0.612826 15.7905L0.472753 15.3388L0.348439 14.8818L0.243382 14.4161L0.157583 13.9451L0.0892992 13.4654L0.0402733 12.9822L0.0105052 12.4937L0 11.9983L0.0105052 11.5045L0.0402733 11.0143L0.0892992 10.5311L0.157583 10.0531L0.243382 9.58039L0.348439 9.11468L0.472753 8.65772L0.612826 8.20601L0.768661 7.76306L0.943754 7.32886L1.13285 6.90166L1.33946 6.48497L1.56183 6.07703L1.79821 5.6796L2.04859 5.29093L2.31473 4.9145L2.59488 4.54683L2.88904 4.19667L3.19545 3.84651L3.51412 3.51561L3.84679 3.19697L4.19698 2.89058L4.54717 2.59644L4.91486 2.31631L5.29306 2.05019L5.68002 1.79807L6.07748 1.56171L6.48545 1.34112L6.90392 1.13452L7.3294 0.94368L7.76363 0.7686L8.20836 0.611028L8.65835 0.470966L9.1171 0.348408L9.58109 0.243359L10.0538 0.157571L10.5318 0.0875401L11.0151 0.0402704L11.5054 0.00875188L11.9991 0L12.4946 0.00875188L12.9831 0.0472697Z" fill="#18164C"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.1629 9.00676C14.0613 8.08877 15.1601 7.64917 16.4463 7.64917C17.6781 7.65415 18.8591 8.14147 19.7361 9.00676L18.424 10.3191C17.8617 9.77606 17.2089 9.49808 16.4592 9.49808C15.7171 9.48861 15.004 9.78563 14.4879 10.3191C13.945 10.8686 13.6735 11.528 13.6735 12.2908C13.6616 13.0323 13.9563 13.7457 14.4879 14.2626C15.1252 14.9082 16.0385 15.2003 16.9321 15.0442C17.8257 14.8881 18.5861 14.3038 18.967 13.4803H16.3558V11.7284H21.0546C21.2285 13.1474 20.7371 14.5672 19.7232 15.5749C18.8118 16.48 17.7131 16.939 16.4398 16.939C15.2057 16.9581 14.019 16.4641 13.1629 15.5749C12.2895 14.7137 11.8376 13.6744 11.8015 12.4513L9.9843 17.0943L8.26446 12.529L6.58987 17.0943L2.91095 7.71111H4.89589L6.58987 12.0563L8.29032 7.71111L9.9843 12.0563L11.6718 7.71111H13.6568L13.1415 9.02764C13.1486 9.02066 13.1557 9.0137 13.1629 9.00676Z" fill="white"/>
</svg>
export default icons;

View File

@@ -0,0 +1,39 @@
/**
* Registers a new block provided a unique name and an object defining its behavior.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
import { registerBlockType } from '@wordpress/blocks';
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* All files containing `style` keyword are bundled together. The code used
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import icons from './icons.js'
/**
* Internal dependencies
*/
import Edit from './edit';
import save from './save';
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
registerBlockType( 'create-block/weglot-menu', {
icon: icons.weglot, // The Weglot icon
/**
* @see ./edit.js
*/
edit: Edit,
/**
* @see ./save.js
*/
save,
} );

View File

@@ -0,0 +1,27 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import { __ } from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#useBlockProps
*/
import { useBlockProps } from '@wordpress/block-editor';
/**
* The save function defines the way in which the different attributes should
* be combined into the final markup, which is then serialized by the block
* editor into `post_content`.
*
* @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#save
*
* @return {WPElement} Element to render.
*/
export default function save() {
return null;
}

View File

@@ -0,0 +1,6 @@
/**
* The following styles get applied both on the front of your site
* and in the editor.
*
* Replace them with your own styles or remove the file completely.
*/

View File

@@ -0,0 +1,26 @@
<?php
/**
* Plugin Name: Weglot Menu
* Description: Example block written with ESNext standard and JSX support build step required.
* Requires at least: 5.8
* Requires PHP: 7.0
* Version: 0.1.0
* Author: The WordPress Contributors
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: weglot-menu
*
* @package create-block
*/
/**
* Registers the block using the metadata loaded from the `block.json` file.
* Behind the scenes, it registers also all assets so they can be enqueued
* through the block editor in the corresponding context.
*
* @see https://developer.wordpress.org/reference/functions/register_block_type/
*/
function create_block_weglot_menu_block_init() {
register_block_type( __DIR__ . '/build' );
}
add_action( 'init', 'create_block_weglot_menu_block_init' );

View File

@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Coverage directory used by tools like istanbul
coverage
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Output of `npm pack`
*.tgz
# Output of `wp-scripts plugin-zip`
*.zip
# dotenv environment variables file
.env

View File

@@ -0,0 +1,17 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/weglot-widget",
"version": "0.1.0",
"title": "Weglot Widget",
"category": "widgets",
"icon": "smiley",
"description": "Weglot switcher widget",
"supports": {
"html": true
},
"textdomain": "weglot-widget",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '250335267d04471980b70a2b0ba471d0');

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(){"use strict";var L={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return L.d(t,{a:t}),t},d:function(e,t){for(var n in t)L.o(t,n)&&!L.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(L,e){return Object.prototype.hasOwnProperty.call(L,e)}},e=window.wp.blocks,t=window.wp.element;const n={};n.weglot=(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.9831 0.0472697L13.4682 0.0945448L13.9462 0.164576L14.4172 0.250364L14.8829 0.355413L15.3417 0.477971L15.7916 0.618033L16.2346 0.775604L16.6706 0.950685L17.0961 1.14152L17.5146 1.34811L17.9208 1.56872L18.32 1.80508L18.7087 2.05719L19.0851 2.32331L19.4528 2.60344L19.803 2.89758L20.1532 3.20397L20.4859 3.52261L20.8046 3.85352L21.111 4.20368L21.4051 4.55384L21.6853 4.9215L21.9514 5.29793L22.2018 5.68661L22.4399 6.08404L22.6605 6.49197L22.8672 6.90867L23.0563 7.33586L23.2314 7.77006L23.3872 8.21302L23.529 8.66472L23.6516 9.12168L23.7566 9.5874L23.8424 10.0601L23.9107 10.5381L23.9597 11.0213L23.9895 11.5115L24 12.0053L23.9895 12.5007L23.9597 12.9892L23.9107 13.4724L23.8424 13.9521L23.7566 14.4231L23.6516 14.8888L23.529 15.3458L23.3872 15.7975L23.2314 16.2404L23.0563 16.6764L22.8672 17.1018L22.6605 17.5185L22.4399 17.9265L22.2018 18.3256L21.9514 18.7126L21.6853 19.089L21.4051 19.4567L21.111 19.8068L20.8046 20.157L20.4859 20.4896L20.1532 20.8083L19.803 21.1147L19.4528 21.4071L19.0851 21.6872L18.7087 21.9533L18.32 22.2037L17.9208 22.44L17.5146 22.6624L17.0961 22.8637L16.6706 23.0546L16.2346 23.2296L15.7916 23.3872L15.3417 23.5273L14.8829 23.6498L14.4172 23.7549L13.9462 23.8424L13.4682 23.9107L12.9831 23.9597L12.4946 23.9895L11.9991 24L11.5054 23.9895L11.0151 23.9597L10.5318 23.9142L10.0538 23.8459L9.58109 23.7584L9.1171 23.6533L8.65835 23.5308L8.20311 23.389L7.75837 23.2314L7.32415 23.0563L6.90392 22.8637L6.48545 22.6589L6.07748 22.4365L5.68002 22.2002L5.29306 21.9498L4.91486 21.6819L4.54717 21.4018L4.19698 21.1094L3.84679 20.803L3.51412 20.4844L3.19545 20.1517L2.88904 19.8016L2.59488 19.4514L2.31473 19.0837L2.04859 18.7056L1.79821 18.3186L1.56183 17.9195L1.33946 17.5115L1.13285 17.0948L0.943754 16.6694L0.768661 16.2334L0.612826 15.7905L0.472753 15.3388L0.348439 14.8818L0.243382 14.4161L0.157583 13.9451L0.0892992 13.4654L0.0402733 12.9822L0.0105052 12.4937L0 11.9983L0.0105052 11.5045L0.0402733 11.0143L0.0892992 10.5311L0.157583 10.0531L0.243382 9.58039L0.348439 9.11468L0.472753 8.65772L0.612826 8.20601L0.768661 7.76306L0.943754 7.32886L1.13285 6.90166L1.33946 6.48497L1.56183 6.07703L1.79821 5.6796L2.04859 5.29093L2.31473 4.9145L2.59488 4.54683L2.88904 4.19667L3.19545 3.84651L3.51412 3.51561L3.84679 3.19697L4.19698 2.89058L4.54717 2.59644L4.91486 2.31631L5.29306 2.05019L5.68002 1.79807L6.07748 1.56171L6.48545 1.34112L6.90392 1.13452L7.3294 0.94368L7.76363 0.7686L8.20836 0.611028L8.65835 0.470966L9.1171 0.348408L9.58109 0.243359L10.0538 0.157571L10.5318 0.0875401L11.0151 0.0402704L11.5054 0.00875188L11.9991 0L12.4946 0.00875188L12.9831 0.0472697Z",fill:"#18164C"}),(0,t.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1629 9.00676C14.0613 8.08877 15.1601 7.64917 16.4463 7.64917C17.6781 7.65415 18.8591 8.14147 19.7361 9.00676L18.424 10.3191C17.8617 9.77606 17.2089 9.49808 16.4592 9.49808C15.7171 9.48861 15.004 9.78563 14.4879 10.3191C13.945 10.8686 13.6735 11.528 13.6735 12.2908C13.6616 13.0323 13.9563 13.7457 14.4879 14.2626C15.1252 14.9082 16.0385 15.2003 16.9321 15.0442C17.8257 14.8881 18.5861 14.3038 18.967 13.4803H16.3558V11.7284H21.0546C21.2285 13.1474 20.7371 14.5672 19.7232 15.5749C18.8118 16.48 17.7131 16.939 16.4398 16.939C15.2057 16.9581 14.019 16.4641 13.1629 15.5749C12.2895 14.7137 11.8376 13.6744 11.8015 12.4513L9.9843 17.0943L8.26446 12.529L6.58987 17.0943L2.91095 7.71111H4.89589L6.58987 12.0563L8.29032 7.71111L9.9843 12.0563L11.6718 7.71111H13.6568L13.1415 9.02764C13.1486 9.02066 13.1557 9.0137 13.1629 9.00676Z",fill:"white"}));var o=n,r=(window.wp.i18n,window.wp.blockEditor),i=window.wp.serverSideRender,l=L.n(i);(0,e.registerBlockType)("create-block/weglot-widget",{icon:o.weglot,edit:function(L){const e=(0,r.useBlockProps)();return(0,t.createElement)("div",e,(0,t.createElement)(l(),{block:"create-block/weglot-widget",attributes:L.attributes}))},save:function(){return null}})}();

View File

@@ -0,0 +1,55 @@
=== Weglot Widget ===
Contributors: The WordPress Contributors
Tags: block
Tested up to: 5.9
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Example block written with ESNext standard and JSX support build step required.
== Description ==
This is the long description. No limit, and you can use Markdown (as well as in the following sections).
For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.
== Installation ==
This section describes how to install the plugin and get it working.
e.g.
1. Upload the plugin files to the `/wp-content/plugins/weglot-widget` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
== Frequently Asked Questions ==
= A question that someone might have =
An answer to that question.
= What about foo bar? =
Answer to foo bar dilemma.
== Screenshots ==
1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
2. This is the second screen shot
== Changelog ==
= 0.1.0 =
* Release
== Arbitrary section ==
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
"installation." Arbitrary sections will be shown below the built-in sections outlined above.

View File

@@ -0,0 +1,17 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/weglot-widget",
"version": "0.1.0",
"title": "Weglot Widget",
"category": "widgets",
"icon": "smiley",
"description": "Weglot switcher widget",
"supports": {
"html": true
},
"textdomain": "weglot-widget",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}

View File

@@ -0,0 +1,48 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import {__} from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#useBlockProps
*/
import {useBlockProps} from '@wordpress/block-editor';
import ServerSideRender from '@wordpress/server-side-render';
/**
* Internal dependencies
*/
import {blockStyle} from './index';
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* Those files can contain any CSS code that gets applied to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './editor.scss';
/**
* The edit function describes the structure of your block in the context of the
* editor. This represents what the editor will render when the block is used.
*
* @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
*
* @return {WPElement} Element to render.
*/
export default function Edit(props) {
const blockProps = useBlockProps();
return (
<div {...blockProps}>
<ServerSideRender
block="create-block/weglot-widget"
attributes={props.attributes}
/>
</div>
);
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
const icons = {};
icons.weglot = <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.9831 0.0472697L13.4682 0.0945448L13.9462 0.164576L14.4172 0.250364L14.8829 0.355413L15.3417 0.477971L15.7916 0.618033L16.2346 0.775604L16.6706 0.950685L17.0961 1.14152L17.5146 1.34811L17.9208 1.56872L18.32 1.80508L18.7087 2.05719L19.0851 2.32331L19.4528 2.60344L19.803 2.89758L20.1532 3.20397L20.4859 3.52261L20.8046 3.85352L21.111 4.20368L21.4051 4.55384L21.6853 4.9215L21.9514 5.29793L22.2018 5.68661L22.4399 6.08404L22.6605 6.49197L22.8672 6.90867L23.0563 7.33586L23.2314 7.77006L23.3872 8.21302L23.529 8.66472L23.6516 9.12168L23.7566 9.5874L23.8424 10.0601L23.9107 10.5381L23.9597 11.0213L23.9895 11.5115L24 12.0053L23.9895 12.5007L23.9597 12.9892L23.9107 13.4724L23.8424 13.9521L23.7566 14.4231L23.6516 14.8888L23.529 15.3458L23.3872 15.7975L23.2314 16.2404L23.0563 16.6764L22.8672 17.1018L22.6605 17.5185L22.4399 17.9265L22.2018 18.3256L21.9514 18.7126L21.6853 19.089L21.4051 19.4567L21.111 19.8068L20.8046 20.157L20.4859 20.4896L20.1532 20.8083L19.803 21.1147L19.4528 21.4071L19.0851 21.6872L18.7087 21.9533L18.32 22.2037L17.9208 22.44L17.5146 22.6624L17.0961 22.8637L16.6706 23.0546L16.2346 23.2296L15.7916 23.3872L15.3417 23.5273L14.8829 23.6498L14.4172 23.7549L13.9462 23.8424L13.4682 23.9107L12.9831 23.9597L12.4946 23.9895L11.9991 24L11.5054 23.9895L11.0151 23.9597L10.5318 23.9142L10.0538 23.8459L9.58109 23.7584L9.1171 23.6533L8.65835 23.5308L8.20311 23.389L7.75837 23.2314L7.32415 23.0563L6.90392 22.8637L6.48545 22.6589L6.07748 22.4365L5.68002 22.2002L5.29306 21.9498L4.91486 21.6819L4.54717 21.4018L4.19698 21.1094L3.84679 20.803L3.51412 20.4844L3.19545 20.1517L2.88904 19.8016L2.59488 19.4514L2.31473 19.0837L2.04859 18.7056L1.79821 18.3186L1.56183 17.9195L1.33946 17.5115L1.13285 17.0948L0.943754 16.6694L0.768661 16.2334L0.612826 15.7905L0.472753 15.3388L0.348439 14.8818L0.243382 14.4161L0.157583 13.9451L0.0892992 13.4654L0.0402733 12.9822L0.0105052 12.4937L0 11.9983L0.0105052 11.5045L0.0402733 11.0143L0.0892992 10.5311L0.157583 10.0531L0.243382 9.58039L0.348439 9.11468L0.472753 8.65772L0.612826 8.20601L0.768661 7.76306L0.943754 7.32886L1.13285 6.90166L1.33946 6.48497L1.56183 6.07703L1.79821 5.6796L2.04859 5.29093L2.31473 4.9145L2.59488 4.54683L2.88904 4.19667L3.19545 3.84651L3.51412 3.51561L3.84679 3.19697L4.19698 2.89058L4.54717 2.59644L4.91486 2.31631L5.29306 2.05019L5.68002 1.79807L6.07748 1.56171L6.48545 1.34112L6.90392 1.13452L7.3294 0.94368L7.76363 0.7686L8.20836 0.611028L8.65835 0.470966L9.1171 0.348408L9.58109 0.243359L10.0538 0.157571L10.5318 0.0875401L11.0151 0.0402704L11.5054 0.00875188L11.9991 0L12.4946 0.00875188L12.9831 0.0472697Z" fill="#18164C"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.1629 9.00676C14.0613 8.08877 15.1601 7.64917 16.4463 7.64917C17.6781 7.65415 18.8591 8.14147 19.7361 9.00676L18.424 10.3191C17.8617 9.77606 17.2089 9.49808 16.4592 9.49808C15.7171 9.48861 15.004 9.78563 14.4879 10.3191C13.945 10.8686 13.6735 11.528 13.6735 12.2908C13.6616 13.0323 13.9563 13.7457 14.4879 14.2626C15.1252 14.9082 16.0385 15.2003 16.9321 15.0442C17.8257 14.8881 18.5861 14.3038 18.967 13.4803H16.3558V11.7284H21.0546C21.2285 13.1474 20.7371 14.5672 19.7232 15.5749C18.8118 16.48 17.7131 16.939 16.4398 16.939C15.2057 16.9581 14.019 16.4641 13.1629 15.5749C12.2895 14.7137 11.8376 13.6744 11.8015 12.4513L9.9843 17.0943L8.26446 12.529L6.58987 17.0943L2.91095 7.71111H4.89589L6.58987 12.0563L8.29032 7.71111L9.9843 12.0563L11.6718 7.71111H13.6568L13.1415 9.02764C13.1486 9.02066 13.1557 9.0137 13.1629 9.00676Z" fill="white"/>
</svg>
export default icons;

View File

@@ -0,0 +1,45 @@
/**
* Registers a new block provided a unique name and an object defining its behavior.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
import { registerBlockType } from '@wordpress/blocks';
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* All files containing `style` keyword are bundled together. The code used
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import icons from './icons.js'
export const blockStyle = {
backgroundColor: '#900',
color: '#fff',
padding: '20px',
};
/**
* Internal dependencies
*/
import Edit from './edit';
import save from './save';
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
registerBlockType( 'create-block/weglot-widget', {
icon: icons.weglot, // The Weglot icon
/**
* @see ./edit.js
*/
edit: Edit,
/**
* @see ./save.js
*/
save,
} );

View File

@@ -0,0 +1,27 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import { __ } from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#useBlockProps
*/
import { useBlockProps } from '@wordpress/block-editor';
/**
* The save function defines the way in which the different attributes should
* be combined into the final markup, which is then serialized by the block
* editor into `post_content`.
*
* @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#save
*
* @return {WPElement} Element to render.
*/
export default function save() {
return null;
}

View File

@@ -0,0 +1,7 @@
/**
* The following styles get applied both on the front of your site
* and in the editor.
*
* Replace them with your own styles or remove the file completely.
*/

View File

@@ -0,0 +1,26 @@
<?php
/**
* Plugin Name: Weglot Widget
* Description: Example block written with ESNext standard and JSX support build step required.
* Requires at least: 5.8
* Requires PHP: 7.0
* Version: 0.1.0
* Author: The WordPress Contributors
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: weglot-widget
*
* @package create-block
*/
/**
* Registers the block using the metadata loaded from the `block.json` file.
* Behind the scenes, it registers also all assets so they can be enqueued
* through the block editor in the corresponding context.
*
* @see https://developer.wordpress.org/reference/functions/register_block_type/
*/
function create_block_weglot_widget_block_init() {
register_block_type( __DIR__ . '/build' );
}
add_action( 'init', 'create_block_weglot_widget_block_init' );

View File

@@ -0,0 +1,157 @@
<?php // phpcs:ignore
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use WeglotWP\Bootstrap_Weglot;
/**
* Only use for get one context
*
* @since 2.0
*/
abstract class Context_Weglot {
/**
* @static
* @since 2.0
* @var Bootstrap_Weglot|null
*/
protected static $context;
/**
* Create context if not exist
*
* @static
* @return object
* @since 2.0
*/
public static function weglot_get_context() {
if ( null !== self::$context ) {
return self::$context;
}
self::$context = new Bootstrap_Weglot();
// If PHP > 5.6, it will be possible to autoload the classes without listing them.
$services = array(
'\WeglotWP\Services\Button_Service_Weglot',
'\WeglotWP\Services\Request_Url_Service_Weglot',
'\WeglotWP\Services\Option_Service_Weglot',
'\WeglotWP\Services\Redirect_Service_Weglot',
'\WeglotWP\Services\Language_Service_Weglot',
'\WeglotWP\Services\Replace_Url_Service_Weglot',
'\WeglotWP\Services\Multisite_Service_Weglot',
'\WeglotWP\Services\Replace_Link_Service_Weglot',
'\WeglotWP\Services\Parser_Service_Weglot',
'\WeglotWP\Services\User_Api_Service_Weglot',
'\WeglotWP\Services\Dom_Checkers_Service_Weglot',
'\WeglotWP\Services\Regex_Checkers_Service_Weglot',
'\WeglotWP\Services\Generate_Switcher_Service_Weglot',
'\WeglotWP\Services\Email_Translate_Service_Weglot',
'\WeglotWP\Services\Pdf_Translate_Service_Weglot',
'\WeglotWP\Services\Translate_Service_Weglot',
'\WeglotWP\Services\Private_Language_Service_Weglot',
'\WeglotWP\Services\Href_Lang_Service_Weglot',
'\WeglotWP\Services\Feature_Flags_Service_Weglot',
'\WeglotWP\Services\Menu_Options_Service_Weglot',
'\WeglotWP\Third\Amp\Amp_Service_Weglot',
'\WeglotWP\Third\Calderaforms\Caldera_Active',
'\WeglotWP\Third\Edd\Edd_Active',
'\WeglotWP\Third\Gravityforms\Gf_Active',
'\WeglotWP\Third\NinjaForms\Ninja_Active',
'\WeglotWP\Third\Woocommerce\Wc_Active',
'\WeglotWP\Third\Woocommercepdf\Wcpdf_Active',
'\WeglotWP\Third\WPForms\Wpforms_Active',
'\WeglotWP\Third\UnderConstructionPage\Ucp_Active',
'\WeglotWP\Third\Maintenance\Maintenance_Active',
'\WeglotWP\Third\TheEventsCalendar\Theeventscalendar_Active',
'\WeglotWP\Third\MailOptin\Mailoptin_Active',
'\WeglotWP\Third\ContactForm7\Contactform7_Active',
'\WeglotWP\Third\WpOptimize\Wp_Optimize_Active',
'\WeglotWP\Third\CacheEnabler\Cache_Enabler_Active',
'\WeglotWP\Third\Wprocket\Wprocket_Active',
'\WeglotWP\Third\Wprentals\Wprentals_Active',
'\WeglotWP\Third\Stackable\Stackable_Active',
);
self::$context->set_services( $services );
// If PHP > 5.6, it will be possible to autoload the classes without listing them.
$actions = array(
'\WeglotWP\Actions\Email_Translate_Weglot',
'\WeglotWP\Actions\Register_Widget_Weglot',
'\WeglotWP\Actions\Admin\Pages_Weglot',
'\WeglotWP\Actions\Admin\Plugin_Links_Weglot',
'\WeglotWP\Actions\Admin\Options_Weglot',
'\WeglotWP\Actions\Admin\Admin_Enqueue_Weglot',
'\WeglotWP\Actions\Admin\Customize_Menu_Weglot',
'\WeglotWP\Actions\Admin\Permalink_Weglot',
'\WeglotWP\Actions\Admin\Metabox_Url_Translate_Weglot',
'\WeglotWP\Actions\Admin\Metabox_Visual_Editor_Weglot',
'\WeglotWP\Actions\Front\Translate_Page_Weglot',
'\WeglotWP\Actions\Front\Front_Enqueue_Weglot',
'\WeglotWP\Actions\Front\Shortcode_Weglot',
'\WeglotWP\Actions\Front\Redirect_Log_User_Weglot',
'\WeglotWP\Actions\Migration_Weglot',
'\WeglotWP\Actions\Front\Front_Menu_Weglot',
'\WeglotWP\Actions\Front\Search_Weglot',
'\WeglotWP\Actions\Front\Redirect_Comment',
'\WeglotWP\Actions\Admin\Ajax_User_Info',
'\WeglotWP\Actions\Front\Clean_Options',
'\WeglotWP\Third\Amp\Amp_Enqueue_Weglot',
'\WeglotWP\Third\Calderaforms\Caldera_I18n_Inline',
'\WeglotWP\Third\Edd\Edd_Filter_Urls',
'\WeglotWP\Third\Gravityforms\GF_Filter_Urls',
'\WeglotWP\Third\Woocommerce\WC_Filter_Urls_Weglot',
'\WeglotWP\Third\Woocommerce\WC_Cart_Reload_Weglot',
'\WeglotWP\Third\Woocommerce\WC_Mail_Weglot',
'\WeglotWP\Third\Woocommerce\WC_Mail_Weglot',
'\WeglotWP\Third\Woocommercepdf\WCPDF_Weglot',
'\WeglotWP\Third\UnderConstructionPage\Ucp_Tracking',
'\WeglotWP\Third\Maintenance\Maintenance_Tracking',
'\WeglotWP\Third\TheEventsCalendar\Theeventscalendar_Words',
'\WeglotWP\Third\Contactform7\Contactform7_Json_Keys',
'\WeglotWP\Third\WpOptimize\Wp_Optimize_Cache',
'\WeglotWP\Third\CacheEnabler\Cache_Enabler_Cache',
'\WeglotWP\Third\Wprocket\Wprocket_Cache',
'\WeglotWP\Third\Wprentals\Wprentals_translate_calendar',
'\WeglotWP\Third\Stackable\Stackable_Translate',
);
self::$context->set_actions( $actions );
return self::$context;
}
}
/**
* Init plugin
* @return void
* @version 2.0.1
* @since 2.0
*/
function weglot_init() {
// add filter to prevent load weglot if not needed.
$cancel_init = apply_filters( 'weglot_cancel_init', false );
if ( $cancel_init ) {
return;
}
if ( ! function_exists( 'curl_version' ) || ! function_exists( 'curl_exec' ) ) {
add_action( 'admin_notices', array( '\WeglotWP\Notices\Curl_Weglot', 'admin_notice' ) );
}
if ( ! function_exists( 'json_last_error' ) ) {
add_action( 'admin_notices', array( '\WeglotWP\Notices\Json_Function_Weglot', 'admin_notice' ) );
}
load_plugin_textdomain( 'weglot', false, WEGLOT_DIR_LANGUAGES );
Context_Weglot::weglot_get_context()->init_plugin();
}

View File

@@ -0,0 +1,759 @@
<!-- logo -->
<img src="https://cdn.weglot.com/logo/logo-hor.png" height="40" />
# Change Log
##4.2.5 (12/03/2024) =
* Bug: Fixed slug translation warning on first install
* Bug: Fixed link to switcher editor on BO
* Bug: Fixed save language on WooCommerce Meta
* Quality: Fixed missing escaped text
##4.2.4 (25/01/2024) =
* Bug: Fixed slug translation update
* Bug: Fixed issue using block menu or widget
* Bug: Fixed bug deleting body tag
##4.2.3 (16/01/2024) =
* Bug: Fixed WooCommerce cart translations
* Bug: Fixed issue with custom flags when using the switcher template
* Improvement: Added filter to enable translation links into multisite config
* Improvement: Reworked switcher editor location
* Improvement: Removed page settings custom-urls
* Improvement: Added filter to increase wp_remote_get timeout
* Quality: Improved regex performance for translation links
* Quality: Improved JavaScript organization and appearance
* Quality: Achieved PHPStan level 2
##4.2.2 (31/10/2023) =
* Bug: Fix deprecated issue on PHP 8.2 due to creation of dynamic property
* Bug: Fix issue with email defer option from woocommerce
* Improvement: Add quote about autoredirect fallback
* Improvement: Install via wp-packagist works
* Improvement: Add plugin version to our Weglot settings
* Improvement: Update pageviews endpoint to enable more country stats
##4.2.1 (10/10/2023) =
* Bug: Fix deprecated issue on PHP 8.2 due to creation of dynamic property
* Improvement: Add Negative excludedPath implementation
* Improvement: Add feature flag
* Improvement: Load settings on dom only if we have switchers weglot-data)
* Bug: Get classname option from gutenberg block
* Bug: Fix on proxify_url filter to get the domain and the path
* Bug: Add wg choose original param on switcher links for switcher template
##4.2 (04/09/2023) =
* Improvement: API calls using sslverify setting to true by default
* Improvement: Implement Responsive switcher option
* Improvement: Add filter to proxify URL
* Improvement: Add Weglot plugin version on wp admin directly
* Bug: don't check the wordlimit during first settings on wordpress
* Bug: Add wg choose original param on switcher links for switcher template
##4.1.1 (26/07/2023) =
* Improvement: Add access button to the visual exclusion
* Improvement: Add option to open custom switcher on hover
* Improvement: Add message when Word limit is reached
* Bug: Fix a bug on JSON key translation
##4.1 (18/07/2023) =
* Update: Rework wp-admin page of weglot
* Update: Replace sa language code by sr-lt
* Update: Fix add_admin_bar_menu from PHP_INT_SIZE to 200
* Update: On fetch if we can have lang from the referer we get lang from the current url
* Update: Manage switcher location if not found. Now we place it on our default location (bottom - right)
* Update: Translate emails sent with WP Mail SMTP : https://developers.weglot.com/wordpress/use-cases/how-to-translate-email-sending-by-plugin-wp-mail-smtp
* Update: Improve accessibility switcher
* Update: Add exclude block links instead
* Update: implementation of pageviews script
* Add: weglot_get_current_language_custom() to get custom_code from custom language
* Bug: Fix url redirect to visual editor
* Bug: aria-expanded not working as expected
* Fix: Warning for exclusion_behavior and language_button_displayed
* Fix: Fix error when url contain more than 1 parameter
## 4.0.2 (30/05/2023) =
* Update: Change PHP_INT_MAX to 200 in class-pages-weglot.php
* Bug: Add esc_url to $_SERVER['REQUEST_URI'] on class-translate-paghe-weglot.com
* Bug: Aria-expanded label remains true when it should say false on switcher
## 4.0.1 (02/05/2023) =
* Bug: Fix call to undefined revert_callback value on class RegexCheckerProvider
* Update: Update message about translated url option (available with Pro plan and more)
## 4.0 (25/04/2023) =
* Add: Add switcher gallery implementation
* Add: Add PHP 8 compatibility fix deprecated (PHPStan)
* Add: Add external_enabled to translate external links
* Add: Add language subdirectory to the rel=”prev” and rel=”next” links on WordPress
* Add: Add filter to manage hreflang
* Add: Manage media_enabled and external_enabled options
* Add: Add compatibility with wp rentals plugin and theme
* Add: Add mPDF Engine for translate pdf (WP Overnight)
* Add: Don't translate link when the target is excluded
* Update: Improve filter active translation
* Update: Hide Language Switcher when all language pairs are set to private
* Bug: Fix call to .json call to prevent create empty settings
* Bug: Fix empty slug issue : prevent (do not save empty slug on transient)
* Bug: Fix issue with Klaviyo plugin
* Bug: Don't hide custom css block when custom switcher is added
* Bug: getInternalCode() is called on an element that is null
* Bug: Duplicate ID when multiple language switchers are present on the same page
* Fix: PHP Notice on third party cache enabler
* Fix: PHP Notice Undefined array key “SERVER_PROTOCOL” when running Cron
* Fix: Fix accessibility issue on the switcher
* Fix: Fix issue from wp vip go standard
* Fix: PHP Notice Undefined property: stdClass::$post_name
##3.9.2 (30/01/2023) =
* Bug: hotfix js file
##3.9.1 (30/01/2023) =
* Bug: add english in destination language list during installation if original language is different
* Update: Prevent using empty .json settings file during install
##3.9 (17/01/2023) =
* Update: Add whitelist mode
* Update: Add notices messages if other translate plugin is active
* Update: Add index text for translate ldjson
* Update: Translate pdf from Germanized pdf plugins
* Bug: Fix cookie issue with WP Rocket (mandatory cookies)
* Bug: Check if index query exist before use it
* Update: Fix wp vip code issue (wp parse url instead of native parse_url)
* Update: Check WPLANG on first install instead of put 'en' by default
* Bug: Add filter to prevent issue with Gform upload input ajax
* Bug: Fix issue with FluentCRM, WP social Ninja and Fluent Support
##3.8.3 (15/11/2022) =
* Bug: Prevent Ajax call from original lang to original lang
* Bug: Fix PHP Warning on class-replace-url-service line 192
* Update: Add index 'text' to ld+json translated value
##3.8.2 (08/11/2022) =
* Bug: Update cdn url for pageviews replace cdn-api-weglot.com by cdn-api.weglot.com
##3.8.1 (18/10/2022) =
* Bug: Default is_rtl value for custom_languages
* Bug: Update render button for gutenberg editor
* Bug: Improve UI for adding excluded block
* Add: Update assets for wordpress.org
##3.8 (11/10/2022) =
* Add: Add ajax checker for woocommerce variations cart popin
* Add: Rework switcher. Generate it direclty on render method
* Add: Add vary header accept language on redirect
* Bug: Fix rtl issue
* Bug: Add missing ; on pageviews script
* Bug: Send code lang instead of name for wp search query
* Bug: Don't translate pdf on original language (woocommerce PDF invoice plugin)
* Bug: Prevent add twice weglot_language post meta on woocommerce order
* Bug: Prevent block translate if ajax referer are not exclude
##3.7.4 (19/09/2022) =
* Bugfix: Update CA Root Certificates from Mozilla
##3.7.3 (05/07/2022) =
* Bugfix: Remove mod_rewrite check with apache_get_module()
* Bugfix: Fix problem with empty switcher from switcher editor
* Bugfix: Compatibility with gravitform upload input
##3.7.2 (20/06/2022) =
* Bugfix: Fix bug between apache_get_module() and wpengine.com
* Add: Add changelog file into plugin directory
##3.7.1 (15/06/2022) =
* Add: Disable translate pdf and add filter to activate ite
##3.7 (08/06/2022)
* Add: Translate pdf service
* Add: Optimize button accessibility
* Add: Pageviews integration
* Add: Add switcher editor integration
* Add: Woocommerce translate all mail
* Add: Do not translate .eps or .txt
* Add: Detect if switcher is child of an iframe and if so, don't display it
* Add: Reduce api call on wp-admin
##3.6.1 (02/03/2022)
* Bugfix: Fix hide button option on switcher menu
* Bugfix: Fix bug VE not translated
* Bugfix: Fix bug add Custom full name for orginal language
##3.6 (23/02/2022)
* Add: Advance exclude url option
* Add: Add blocks for gutenberg (wp 5.9)
* Add: Disable autoswitch for weglot visual editor
* Add: Add Forminator (plugin de WPMUDEV) compatibility
* Add: Disable weglot on rankmath sitemap
* Add: Add hook filter to replace_url method
* Bugfix: php8 parameters order
* Bugfix: Refresh destination language list
* Bugfix: Display hreflang even url have parameters
##3.5 (07/12/2021)
* Add: Autoswitch work on all page not only on homepage
* Add: Exclude url doesn't generate redirection
* Add: Add switcher from switcher editor
* Add: Call API from cdn to translate
* Add: Limited call API for deactivate account
* Bugfix: Problem with gform and multisite
* Bugfix: Fix hreflang generation with Cyrillic url
* Bugfix: Weglot search option now works even if we're not on a main_query
##3.4 (15/09/2021)
* Add: All 404 pages are excluded from translation if you exclude /404 in the Weglot dashboard
* Improved performance: Files for multilingual compatibility with other plugins are only called when necessary
* Bugfix: Autoswitch feature now works with custom languages
* Bugfix: Password reset link in translated emails now works
* Bugfix: WooCommerce emails are now translated when using custom languages
* Bugfix: Fixed warning in 404 styles.css.map
* Bugfix: Autoswitch doesn't redirect when visitor comes from an external link from now on
##3.3.6 (15/06/2021)
* Add new flag from dashboard
* Improve hreflang display
* Dynamise limit languages check
* Fix bug when excluded URL /cart gives empty URL
* Fix small bug on multisite where we translated links from / website when located on /subsite
* Better handle 301 redirect
##3.3.5 (12/04/2021)
* Add url from canonical if existing
* Add vip code review
* Increase timeout when updating setting and disable submit button
* Adding message to tell user to purge cache from cache plugin after editing translation
##3.3.4 (22/03/2021)
* Check if curl_exec is enable
* Fix js problem on admin on preview
* Optimize plugin size
* Change screenshot on store
##3.3.3 (08/03/2021)
* Language repo
* drag and drop
* bug greek url
* bug parsing empty node
##3.3.2 (15/02/2021)
* Update settings dropdown
* Fix rare bug when root equal slug page
##3.3.1 (01/02/2021)
* Small fixes following major release
##3.3.0 (18/01/2021)
* Full refacto of the code
* Add: custom language
##3.2.0 (15/10/2020)
* Add translate slug option
* Fix: auto redirect on traditional chinese and brazilian portuguese
* Fix: admin-ajax bug containing language code in some case
##3.1.9 (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 / trailing slash)
* Fix: Remove "!important" CSS properties on AMP
##3.1.8 (02/07/2020)
* Exclude URL by languages
* Translate by default all Woocommerce mails with customer language
* Update URLs translation, possibility to use custom URLs for hierarchical pages
* Translate External URLs
* Add SVG files to media translation
* Exclude wp-cron.php from translation
* Fix links translation with custom URLS
##3.1.7 (04/05/2020)
* Add a Weglot Menu to admin bar
* Add Woocommerce feature : Translate following mail
* Better text escaping in Back Office (thanks to @joehoyle and @drvy for contribution)
* Add attribute to HTML tag if custom code is used for current language
* Optimize CSS size for AMP
* Fix: Add compatibility with AMP plugin +1.5
* Fix: No load Weglot CSS in AMP if option is set to false
* Fix error on JS script loading (thanks to @joehoyle for contribution)
##3.1.6 (06/02/2020)
* Add: Use WP core code editor for Weglot custom CSS
* Add: Add weglot_translate_email filter to control when mail are translated
* Bugfix: Fixes small minor bugs
##3.1.5 (08/01/2020)
* Add: weglot_language_code_replace filter to use custom language code
* Bugfix: Formatter on JSON source for untranslated WooComerce fields
##3.1.4 (12/12/2019)
* Update back office style for WordPress 5.3
* Fix: Flags SRC attribute with AMP
* Fix: Custom URL feature - Revisions
* Improve compatibility: WP Optimize
* Improve compatibility: Cache Enabler
* Add default exclude block for SecuPress plugin and SQLI protect
* Add default exclude block for plugin query monitor > 3.3.0
* Remove the "Not allowed" mechanism.
##3.1.3 (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
##3.1.2 (24/09/2019)
* Bugfix: Custom URL with GET parameters
* Bugfix: Ninja Forms JSON translate
* Bugfix: Prevent errors due to call protected method
##3.1.1 (11/09/2019)
* Add: IE 11 compatibility with languages switcher
* Add: WP-CLI compatibility
* Bugfix: admin api call
* Bugfix: double language when WC + multisite with subdomains
* Bugfix: do not add language on external links also in JSON
##3.1.0 (29/08/2019)
* Add: Better JSON compatiblity
* Bugfix: WC password reset mechanism
##3.0.6 (28/05/2019)
* Add: Compatibility with WP Forms
* Add: Reset postdata filter for custom URLs
* Bugfix: Auto switch fallback
* Bugfix: Custom url on is_front_page
##3.0.5 (22/05/2019)
* Bugfix: Prevent array key exists for Gravity Form
* Bugfix: Save menu Weglot Switcher
* Bugfix: Check DOM on json-ld and inactive by default
##3.0.4 (10/05/2019)
* Bugfix: Prevent errors due to the parser of the JSON-LD
##3.0.3 (09/05/2019)
* Bugfix: Weglot switcher on menu
* Add : Translate all JSON-LD
##3.0.2 (24/04/2019)
* Bugfix: Fixed saving custom CSS
* Bugfix: Auto detection of a bot (google, bing,...)
* Bugfix: Compatibility with caldera forms
##3.0.1 (17/04/2019)
* Bugfix: API key check only if it does not exist
* Bugfix: prevent array_key_exists on private languages for older installations
##3.0.0 (16/04/2019)
* New major version
* Link between WordPress options and Weglot dashboard options
* Bugfix: Fixed an error on the JSON translation
##2.7.0 (18/03/2019)
* Changed : Improve Compatibility with Caldera Forms
##2.6.0 (06/03/2019)
* Add : Prevent elementor ajax action on 2.5
* Add : Compatibility with Caldera Forms
* Add : Prevent ajax MMP Map
* Changed: Improved AJAX translation performance
* Bugfix: No translate link on weglot menu item
* Bugfix: meta og facebook
* Bugfix: prevent undefined index on widget
##2.5.0 (07/02/2019)
* Add : Compatibility with Ninja Forms
* Add : DOM Checker on input type reset
* Bugfix : have the same menu switcher on the same page several times
* Bugfix : Remove no redirect on hreflang
* Improve DOM Checker meta content image
##2.4.1 (09/01/2019)
* Bugfix: undefined function if there is no antislash before the function ( \is_rest )
##2.4.0 (09/01/2019)
* Compatibility PHP 7.3
* Changed : the language selector for menus
* Add : Compatibility with the REST API of Contact Form 7
* Add [BETA] : Be able to translate the keywords of a search
* Bugfix : translation of the empty cart on WooCommerce
* Bugfix: correction of options on a multisite
##2.3.1 (05/12/2018)
* Bugfix : Button preview fail on migration for private mode
##2.3.0 (05/12/2018)
* Bugfix : Custom URL on archive page
* Bugfix : Prevent error on translate AJAX
* Bugfix : Href lang on custom URLs
* Improve code quality
* Compatibility SEOPress : exclude sitemap
* Improve private languages
* Add two DOM checkers
##2.2.2 (05/11/2018)
* Fix bug on change country flag
* Change load custom css inline
##2.2.1 (01/11/2018)
* Fix bug when language was not passed on navigation
##2.2.0 (31/10/2018)
* Added private mode for administrators
* Addition apply_filters
* Bugfix : an ajax request
* Improved compatibility with wpestate
* Compatibility with mega max menu
##2.1.0 (25/09/2018)
* New feature: Custom URL
* Bugfix : Translate AJAX with return JSON on error
* Bugfix : Backslash on function PHP
* Bugfix : Replace links href on JSON translate
* Bugfix : Compatibility with theme use ob_start
##2.0.7 (31/08/2018)
* Bugfix: Ajax load media library
* Improve choice original and destination language
##2.0.6 (29/08/2018)
* Add DOM checker to translate button value and data-value attribute
* Update Weglot Translate setting page
* Bugfix : email translation
* Bugfix : external link with quickpay
* Prevent auto redirect on homepage translate
##2.0.5 (09/08/2018)
* Bugfix : Fatal error if use weglot menu custom
##2.0.4 (09/08/2018)
* Bugfix : lost password email on WooCommerce
* Bugfix : translate custom login page
* Bugfix : uniq id on each button selector
* Bugfix : no translate image on a href html tag with wp-content/uploads src
* Bugfix : admin-ajax url
##2.0.3 (27/07/2018)
* Bugfix : Hide shortcode on non translatable URL
* Bugfix : filter nav_menu_css_class
* Bugfix : Redirect URL on checkout WooCommerce
* Bugfix : CSS Flag on dropdown menu
* Improve AMP compatibility
##2.0.2 (24/07/2018)
* Bugfix : Hide menu on non translatable URL
* Bugfix : Hide widget on non translatable URL
* Improve max file size HTML
##2.0.1 (19/07/2018)
* Improve flag style
* Prevent cURL function
* Solved nav_class warning
##2.0 (18/07/2018)
* Major changes on the plugin architecture
* Adding developer functions & filters
* Refactoring
##1.13.1 (01/06/2018)
* Bugfix: Error on the encoding of ignored nodes
##1.13 (31/05/2018)
* Bugfix : Improve filter words_translate to prevent matching part of words
* BugFix : Bug in parser when ignored node had an attribute
* BugFix : character limit on chinese paragraphs
* Add : Update message for version 2.0
##1.12.2 (04/05/2018)
* Bugfix : Limitation on the number of characters translated at the same time
##1.12.1 (03/05/2018)
* Bugfix : error for users with a version lower than PHP 5.4 . []> array()
##1.12 (03/05/2018)
* Bugfix : undefined index on ajax call
* Bugfix : Redirection checkout payment on WooCommerce
* Bugfix : Register widget
* Add option for AMP compatibility
* Add filter for dynamic string
##1.11 (05/04/2018)
* Add new languages
* Add new filters
* Add Yoast Premium compatibility on redirect
* Bugfix : Exclusion AMP
* Bugfix : Redirection checkout order on WooCommerce
##1.10
* Add new languages + add Oman flag
* Can potentially translate email sent from admin
* Add tags to inline elements to ignore when parsing
##1.9.3
* Remove Freemius
##1.9.2
* Fix Freemius assets
##1.9.1
* Fix Freemius error when changing base dir
* Fix wc translations when special characters.
##1.9
* Fix login redirection
* Add translation for Town, cities and other dynamic fields in WC checkout
* exclude URL now accepts full URL and any blank separator
##1.8.2
* Fix pb when permalinks has no ending slash
* Add notif when plugin is not congigured
##1.8.1
* Fix redirection on woocommerce
##1.8
* Add new banner and icon
* improve wc redirection
* can now translate email
##1.7.1
* Fix redirection bug on cart
##1.7
* Add 6 languages
* Translate microdata
* New element translated
##1.6.1
* Fix url when non standard characters
* change freemius image
##1.6
* Add Freemius
* Refactor code
* Replace api ur
* Add several attributes to translations
##1.5
* Add data-value, data-title, title attribute support
* Add links in readme
##1.4.6
* Add pretty selection of languages
* Improve flags quality
##1.4.5
* Add more i18n luv. Now we speak WordPress
* Add Dutch, English_UK, German, Italian, Portuguese_BR, Russian and Spanish languages
##1.4.4
* Update i18n and improve strings
##1.4.3
* Compat with WP Fastest cache, improve RTL translations
##1.4.2
* PHP 7 compat, add auto redirect feature, no more FA, no more id on switcher
##1.4.1
* compat AMP, fix url bug on same language code than URL.
##1.4.0
* compat precaching, URLs
##1.3.3
* increase compatibility with other plugins and themes.
##1.3.2
* change support email
* exclude /amp, admin bar
* language on starter plan
##1.3.1
* Fix invalid links
* Handles multiple weglot_here
##1.3.0
* rollbackink parsing lib
* fix srcset, dslash link
##1.2.8
* parsing lib changed
* fix several small bugs
##1.2.7
* Adding Traditional Chinese
* Fix og:url
* scrybs
##1.2.6
* Fix jpeg translated version
* Fix moreclass and wg-notranslate on list button in menu
* Fix ajax json with html in it
##1.2.5
* Add other flags for english, spanish & portugese translations
* Review style for translation button in menu
* Add translation exclusion blocks by CSS selectors
##1.2.4
* Adding Hindi & Urdu translation languages.
* Adding version number on scripts.
##1.2.3
* Code review and optimization
##1.2.2
* WP Compliance
##1.2.1
* Fix style on dropdown list
* Fix link containing "admin" word
##1.2
* New choice of flags made by professional designers for your translation switch button. Rectangle mat, rectangle bright, square and circle. Enjoy!
* Add a "Settings" link under Weglot Translate in pugin list.
##1.1
* Add naviguation menu hook to let user display button in menu.
* Add possibility to show only flags
* Show warnings if PHP version is under 5.2 or rewrite rules not activated
* Rename simple html dom constant and handle no php-mbstring case
* Fix front page show box when home dir
##1.0
* Change portugese flag to brazilian, change limit message, starting 1.0 versioning as we reach viable product.
##Older versions
##0.1
* First version
##0.2
* Fix label and languages parameters
##0.3
* SEO now completly taken into account.
##0.4
* small fix on links
##0.5
* Fix rules + add url
##0.6
* Fix rules + new button design
##0.7
* Add meta translation, + regex eclusion
##0.8
* Add input button, fix small bug on link
##0.9
* Check rewrite rules are always here
##0.10
* Quick fix for PHP 5.3
##0.11
* Fix ajax, FB compat
##0.12
* Handle WP_HOME
##0.13
* General review
##0.14
* Prepare for localization
##0.15
* Change link to weglot
##0.16
* Place button by default
##0.17
* Fix vc_
##0.18
* Fix cdata
##0.19
* Http api integration
##0.20
* Fix PHP 5.2 compat with anonymous function
##0.21
* Change ob order for compatibility
##0.22
* More flexibility in destination language
##0.23
* Can have multiple youtube video for different languages
##0.24
* Fix some links that had multiple lang tag
##0.25
* Fix CSS style + subdirectory WP
##0.26
* Now support images
##0.27
* Adding 40+ languages + fix homepage bug
##0.28
* Change button to customizable widget, also fix bug https+wp_home
##0.29
* Fix is_html, add US flag possibility, fix link beginning with coutry code.
##0.30
* Fix style, add on-boarding to help users, add link to dashboard translations.
##0.31
* Adding ajax support for full html, fix style, fix link with wp_home
##0.32
* Quick fix on links
##0.33
* Add ajax for json-html
##0.34
* Adding chat support to help user set up the plugin
##0.35
* Rework classes + add search support (form tag)
##0.36
* Remove trial period, replace by free plan
##0.37
* More info on errors, translation limit from api
##0.38
* Fix canonical transated link, support RTL & LTR customization, WG logo to meet Wp standard, translate alt attribute, add possibility to drop button anywhere
##0.39
* Fix LTR CSS, api v2 transmit strings type, fix regex escaping
##0.40
* Add PDF translate, fix simple dom limit, uninstall hook, no &lt;/body&gt; case.

View File

@@ -0,0 +1,68 @@
{
"name": "weglot/translate-wordpress",
"description": "Translate your WordPress website easily.",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Thomas DENEULIN",
"email": "thomas@weglot.com"
},
{
"name": "Remy BERDA",
"email": "remy@weglot.com"
},
{
"name": "Julien JACOB",
"email": "julien@weglot.com"
},
{
"name": "Edson GALINA FORTES",
"email": "edson@weglot.com"
}
],
"require": {
"weglot/weglot-php": "^1.7.1",
"gmulti/morphism-php": "dev-dev-bugfix"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:weglot/weglot-php.git"
},
{
"type": "vcs",
"url": "git@github.com:weglot/simple_html_dom.git"
},
{
"type": "vcs",
"url": "git@github.com:glx77/morphism-php.git"
}
],
"require-dev": {
"squizlabs/php_codesniffer": "^3.2.2",
"wp-coding-standards/wpcs": "^2.3.0",
"phpunit/phpunit": "^4 || ^6",
"roave/security-advisories": "dev-master",
"phpseclib/phpseclib": "^2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"automattic/vipwpcs": "^2.2",
"yoast/phpunit-polyfills": "^1.0",
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1"
},
"scripts": {
"post-install-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
],
"post-update-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

View File

@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=10)}({10:function(e,t){}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.country-selector{z-index:9999;text-align:left;position:relative;display:inline-block;width:auto}.country-selector a{padding:0 10px;outline:none;text-decoration:none;float:none;white-space:nowrap;font-weight:normal;cursor:pointer;color:black;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.country-selector a:focus{outline:none}.country-selector ul{padding:0px;z-index:1010;list-style:none;margin:0}.country-selector li{margin:0px;padding:0px}.country-selector.weglot-dropdown{background-color:white}.country-selector.weglot-dropdown a,.country-selector.weglot-dropdown span{display:block;height:37px;line-height:36px;font-size:13px;padding:0 10px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:normal}.country-selector.weglot-dropdown a:hover,.country-selector.weglot-dropdown span:hover{cursor:pointer}.country-selector.weglot-dropdown .wgcurrent{border:1px solid #e0e0e0;list-style:none;display:block;margin:0}.country-selector.weglot-dropdown .wgcurrent a,.country-selector.weglot-dropdown .wgcurrent span{padding-right:60px}.country-selector.weglot-dropdown .wgcurrent:after{display:inline-block;position:absolute;top:17px;right:8px;width:13px;height:7px;-ms-interpolation-mode:nearest-neighbor;image-rendering:-webkit-optimize-contrast;image-rendering:-o-pixelated;image-rendering:pixelated;background:url("../images/wgarrowdown.png") no-repeat;content:"";-webkit-transition:all 200ms;-o-transition:all 200ms;transition:all 200ms;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.country-selector.weglot-dropdown ul{position:absolute;min-width:100%;border:1px solid #ebeef0;background:white;left:0;top:initial;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;padding:0}.country-selector.weglot-dropdown input:checked ~ ul{display:block}.country-selector.weglot-dropdown input:checked ~ .wgcurrent:after{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg)}.country-selector.weglot-dropdown li{width:100%}.country-selector.weglot-dropdown.weglot-invert ul{bottom:38px}.country-selector.weglot-dropdown.weglot-invert input:checked ~ .wgcurrent:after{-webkit-transform:rotate(-180deg);-ms-transform:rotate(-180deg);transform:rotate(-180deg)}.country-selector.weglot-default{position:fixed;bottom:0px;right:40px}.country-selector.weglot-inline a:hover{text-decoration:underline;color:#00a0d2}.country-selector.weglot-inline .wgcurrent a{text-decoration:underline}.country-selector.weglot-inline label{margin-bottom:0;display:inline-block;vertical-align:middle}.country-selector.weglot-inline ul{display:inline-block;vertical-align:middle}.country-selector.weglot-inline li{line-height:1;display:inline-block;margin:2px 0px;vertical-align:middle}.country-selector.weglot-inline.weglot-default{bottom:5px}.country-selector input{display:none}.navbar .navbar-nav li.weglot-flags a.weglot-lang:before{position:static;-webkit-transform:none;-ms-transform:none;transform:none;-webkit-transition:none;-o-transition:none;transition:none}html[dir="rtl"] .weglot-flags a:before,html[dir="rtl"] .weglot-flags span:before{margin-right:0;margin-left:10px}.weglot-flags a:before,.weglot-flags span.wglanguage-name:before{background-image:url("../images/rect_mate.png");-webkit-background-size:auto 20px;background-size:auto 20px;border-radius:0px;width:30px;height:20px;content:"";vertical-align:middle;margin-right:10px;display:inline-block;overflow:hidden}.weglot-flags.flag-1 a:before,.weglot-flags.flag-1 span:before{background-image:url("../images/rect_bright.png")}.weglot-flags.flag-2 a:before,.weglot-flags.flag-2 span:before{background-image:url("../images/square_flag.png");width:24px;height:24px;-webkit-background-size:auto 24px;background-size:auto 24px}.weglot-flags.flag-3 a:before,.weglot-flags.flag-3 span:before{background-image:url("../images/circular_flag.png");width:24px;height:24px;-webkit-background-size:auto 24px;background-size:auto 24px}.weglot-flags a span:before{background-image:none;display:none}.weglot-flags span a:before{background-image:none;display:none}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=13)}({13:function(e,t){}});

View File

@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=5)}({5:function(e,t){}});

View File

@@ -0,0 +1 @@
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},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=0)}([function(e,t){function o(){const e=document.querySelectorAll(".weglot-custom-switcher-ajax");Array.prototype.forEach.call(e,(function(e,t){let o=null,n=null,r=null,l=null;""!==e.getAttribute("data-wg-target")&&(r=e.getAttribute("data-wg-target")),""!==e.getAttribute("data-wg-sibling")&&(l=e.getAttribute("data-wg-sibling")),r&&(n=document.querySelector(r)),l&&(o=document.querySelector(l)),null!=n&&null!=o?(n.insertBefore(e,o),e.classList.remove("weglot-custom-switcher-ajax")):n&&null==o?(n.insertBefore(e,n.firstChild),e.classList.remove("weglot-custom-switcher-ajax")):o&&null==n&&(o.parentNode.insertBefore(e,o),e.classList.remove("weglot-custom-switcher-ajax"))}))}setTimeout(()=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>o()):o()},1500),document.addEventListener("DOMContentLoaded",(function(e){const t=document.querySelector(".country-selector");if(!t)return;const o=function(e){let t=0,o=0;do{t+=e.offsetTop||0,o+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:o}}(t).top,n=document.body,r=document.documentElement,l=Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight),c=window.getComputedStyle(t).getPropertyValue("position");window.getComputedStyle(t).getPropertyValue("bottom"),window.getComputedStyle(t).getPropertyValue("top");if(("fixed"!==c&&o>l/2||"fixed"===c&&o>100)&&(t.className+=" weglot-invert"),function(){try{return window.frameElement||window.self!==window.top}catch(e){return!1}}()){const e=document.querySelectorAll(".weglot-dropdown");null!==e&&[].forEach.call(e,(function(e){e.style.display="none"}))}document.addEventListener("click",e=>{null==e.target.closest(".country-selector.close_outside_click")&&document.querySelectorAll(".country-selector.close_outside_click.weglot-dropdown input").forEach(e=>{e.checked=!1})});const s=document.getElementsByClassName("country-selector"),u=e=>!e.className.includes("closed");let i;if(s.length>0){const e=document.getElementsByClassName("wgcurrent");for(let t of s){const o={ENTER:13,ESCAPE:27,ARROWUP:38,ARROWDOWN:40},n=()=>{const{bottom:e=0}=t.getBoundingClientRect();return e>window.innerHeight/2},r=()=>{t.classList.remove("closed"),document.querySelectorAll(".country-selector.weglot-dropdown input").checked=!0,t.setAttribute("aria-expanded","true")},l=()=>{t.classList.add("closed"),document.querySelectorAll(".country-selector.weglot-dropdown input").checked=!1,t.setAttribute("aria-expanded","false"),i&&(i.classList.remove("focus"),i=null)},c=e=>{getLangNameFromCode(e);t.setAttribute("aria-label","Language selected: "+e)},s=()=>{t.classList.contains("closed")?r():l(),i&&i.classList.remove("focus"),i=null};t.addEventListener("keydown",n=>{if(n.keyCode!==o.ENTER){if(n.keyCode===o.ARROWDOWN||n.keyCode===o.ARROWUP)return n.preventDefault(),void d(n.keyCode);n.keyCode===o.ESCAPE&&u(t)&&(n.preventDefault(),l(),t.focus())}else{for(var r=0;r<e.length;r++)e[r].click();if(i){const e=i.getAttribute("data-l");c(e),t.focus()}s()}}),t.addEventListener("mousedown",e=>{if(i){const e=i.getAttribute("data-l");c(e),t.focus()}s()}),t.className.includes("open_hover")&&(t.addEventListener("mouseenter",e=>{if(i){const e=i.getAttribute("data-l");c(e),t.focus()}s(),t.querySelector("input.weglot_choice").checked=!0}),t.addEventListener("mouseleave",e=>{if(i){const e=i.getAttribute("data-l");c(e),t.focus()}s(),t.querySelector("input.weglot_choice").checked=!1}));const d=c=>{const s=c===o.ARROWDOWN?"nextSibling":"previousSibling",d=n();if(i&&u(t))i[s]?(i.classList.remove("focus"),i=i[s],i.classList.add("focus"),i.childNodes[0].focus(),i.scrollIntoView({block:"center"})):(c===o.ARROWUP&&!d||c===o.ARROWDOWN&&d)&&(l(),t.focus());else{const n=d?"ul li.wg-li:last-child":"ul li.wg-li";for(var a=0;a<e.length;a++)i=e[a].parentNode.querySelector(n);if(!i)return;i.classList.add("focus"),i.childNodes[0].focus(),i.scrollIntoView({block:"center"});const l=c===o.ARROWUP&&d||c===o.ARROWDOWN&&!d;!u(t)&&l&&r()}}}}return!1}))}]);

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="74px" height="15px" viewBox="0 0 74 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
<title>Logo</title>
<desc>Created with Sketch.</desc>
<g id="Symbols-💎💎💎" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Menu/Color" transform="translate(0.000000, -13.000000)" fill="#0A1A42" fill-rule="nonzero">
<g id="Logo">
<path d="M1.36779477e-13,13.1099109 L3.04612497,13.1099109 L5.64574953,19.767728 L8.25529633,13.1099109 L10.8549209,19.767728 L13.4446232,13.1099109 L16.4907482,13.1099109 L10.8549209,27.4872238 L8.2156074,20.4920509 L5.64574953,27.4872238 L1.36779477e-13,13.1099109 Z M17.7111826,13.0801442 L26.1946903,13.0801442 L26.1946903,15.8980578 L20.5390185,15.8980578 L20.5390185,18.7258937 L24.7758112,18.7258937 L24.7758112,21.5438074 L20.5390185,21.5438074 L20.5390185,24.3815655 L26.1946903,24.3815655 L26.1946903,27.1895569 L17.7111826,27.1895569 L17.7111826,13.0801442 Z M34.0134084,13.0007663 L34.0233307,13.0206108 C35.9144598,13.0282468 37.7273913,13.7762146 39.0737463,15.1042793 L37.0595334,17.1184923 C36.1962993,16.2850249 35.1941539,15.8583689 34.0431751,15.8583689 C32.9039452,15.8438363 31.8091366,16.2997074 31.0168946,17.1184923 C30.1834272,17.9618819 29.7666935,18.9739495 29.7666935,20.1447728 C29.7483829,21.2827529 30.2007607,22.3777944 31.0168946,23.1710533 C31.9953198,24.1619883 33.3974068,24.6102573 34.769229,24.3707328 C36.1410512,24.1312083 37.3082712,23.2343301 37.8930008,21.9704633 L33.8844194,21.9704633 L33.8844194,19.2815387 L41.0978815,19.2815387 C41.3648386,21.459504 40.6103912,23.6386118 39.0539019,25.1852662 C37.6548673,26.5743786 35.968088,27.278857 34.0134084,27.278857 C32.1188803,27.3082746 30.2971133,26.5501033 28.9828372,25.1852662 C27.5838026,23.8060761 26.8892464,22.129219 26.8892464,20.1447728 C26.8618436,18.2477292 27.6194772,16.4236635 28.9828372,15.1042793 C30.3620274,13.6953225 32.0388844,13.0007663 34.0134084,13.0007663 Z M42.3480826,13.1099109 L45.1759185,13.1099109 L45.1759185,24.361721 L50.821668,24.361721 L50.821668,27.1697124 L42.3480826,27.1697124 L42.3480826,13.1099109 Z M57.7870743,13.0007663 C59.6862899,12.9723695 61.5119444,13.7342568 62.8275677,15.1042793 C64.2266023,16.5033139 64.9310807,18.180171 64.9310807,20.1447728 C64.9594776,22.0439884 64.1975903,23.8696429 62.8275677,25.1852662 C61.4285331,26.5743786 59.7516761,27.2689347 57.7870743,27.2689347 C55.8930787,27.2907296 54.0723402,26.5380621 52.7465809,25.1852662 C51.3475463,23.7961538 50.6529901,22.1093745 50.6529901,20.1447728 C50.6255872,18.2477292 51.3832208,16.4236635 52.7465809,15.1042793 C54.1456154,13.6953225 55.8224725,13.0007663 57.7870743,13.0007663 Z M57.7870743,15.8484467 C56.6462295,15.8254741 55.5481833,16.2826933 54.7607938,17.10857 C53.9174041,17.9519597 53.5006704,18.9640273 53.5006704,20.1348505 C53.4837607,21.2745385 53.9400092,22.3702534 54.7607938,23.161131 C55.5942612,23.9846762 56.5964065,24.4014099 57.7870743,24.4014099 C58.919269,24.414927 60.0082246,23.9671657 60.8034326,23.161131 C61.6468222,22.3276636 62.0635559,21.315596 62.0635559,20.1348505 C62.0804656,18.9951625 61.6242171,17.8994477 60.8034326,17.10857 C59.9699651,16.2651804 58.9578976,15.8484467 57.7870743,15.8484467 Z M64.2464468,13.1099109 L74,13.1099109 L74,15.9079801 L70.5470636,15.9079801 L70.5470636,27.1697124 L67.7093054,27.1697124 L67.7093054,15.9079801 L64.2464468,15.9079801 L64.2464468,13.1099109 Z"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

View File

@@ -0,0 +1 @@
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=3)}({3:function(e,t){jQuery(document).ready((function(e){e("#update-nav-menu").bind("click",(function(t){t.target&&t.target.className&&-1!=t.target.className.indexOf("item-edit")&&e("input[value='#weglot_switcher'][type=text]").parents(".menu-item-settings").each((function(){const t=e(this).attr("id").substring(19);e(this).children("p:not( .field-move )").remove(),e(this).append(e("<input>").attr({type:"hidden",id:"edit-menu-item-title-"+t,name:"menu-item-title["+t+"]",value:weglot_data.title})),e(this).append(e("<input>").attr({type:"hidden",id:"edit-menu-item-url-"+t,name:"menu-item-url["+t+"]",value:"#weglot_switcher"})),e(this).append(e("<input>").attr({type:"hidden",id:"edit-menu-item-weglot-detect-"+t,name:"menu-item-weglot-detect["+t+"]",value:1})),e.each(weglot_data.list_options,(n,i)=>{const r=e("<p>").attr("class","description"),o=e("<label>").attr("for",`edit-menu-item-${i.key}-${t}`).text(" "+i.title);e(this).prepend(r),r.append(o);const u=e("<input>").attr({type:"checkbox",id:`edit-menu-item-${i.key}-${t}`,name:`menu-item-weglot-${i.key}[${t}]`,value:1});weglot_data.options&&weglot_data.options["menu-item-"+t]&&1===weglot_data.options["menu-item-"+t][i.key]&&u.prop("checked",!0),o.prepend(u)})}))}))}))}});

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1,895 @@
# Copyright (C) 2017 Remy B
# This file is distributed under the same license as the Weglot Translate package.
# Translators:
# Benjamin Sponagel <roanoked@gmail.com>, 2017
# FX Bénard <fxb@wp-translations.org>, 2017
# Dirk Weise <code@dirk-weise.de>, 2017
# Derek Ashauer <derek@ashwebstudio.com>, 2017
# Gregory Karpinsky <gregory@tiv.net>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Weglot Translate 1.4.3\n"
"Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
"POT-Creation-Date: 2020-04-27 15:55+0000\n"
"PO-Revision-Date: 2020-04-27 16:02+0000\n"
"Last-Translator: Weglot\n"
"Language-Team: German\n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
"esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Version: 2.3.3; wp-5.4"
#: weglot.php:164
#, php-format
msgid "%s Update Rollback"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:37
msgid "URL starts with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:39
msgid "URL ends with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:41
msgid "URL contains substring"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:43
msgid "URL is exactly"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:45
msgid "URL matches regex"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:33
msgid "Hide the current language"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:37
msgid "Show as dropdown (By default it's a list)"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:63
#: src/actions/admin/class-plugin-links-weglot.php:38
msgid "Settings"
msgstr "Einstellungen"
#: src/helpers/class-helper-tabs-admin-weglot.php:67
#: templates/admin/pages/tabs/status.php:11
msgid "Status"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:71
#: templates/admin/pages/tabs/custom-urls.php:10
msgid "Custom URLs"
msgstr ""
#. Plugin Name of the plugin/theme
#: src/widgets/class-widget-selector-weglot.php:16
msgid "Weglot Translate"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:18
msgid "Display Weglot selector in widget"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:60
msgid "Title:"
msgstr "Titel:"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-configuration.php:16
#, php-format
msgid ""
"Weglot Translate is installed but not yet configured, you need to configure "
"Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
"only 1 minute! "
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/json-function.php:12
msgid ""
"Weglot Translate: You need to activate package php-json. If you need help, "
"please contact your host or just ask us directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-curl.php:12
msgid ""
"Weglot Translate: You need to activate cURL. If you need help, just ask us "
"directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/rewrite-module.php:12
#, php-format
msgid ""
"Weglot Translate: You need to activate the mod_rewrite module. You can find "
"more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
"us directly at support@weglot.com."
msgstr ""
#. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
#: templates/admin/notices/php-min.php:12
#, php-format
msgid ""
"%1$s requires PHP %2$s minimum, your website is actually running version "
"%3$s."
msgstr ""
#: templates/admin/notices/php-min.php:17
msgid ""
"If you are not able to upgrade, you can rollback to the previous version by "
"using the button below."
msgstr ""
#: templates/admin/notices/php-min.php:22
msgid "Re-install version 1.13.1"
msgstr ""
#: templates/admin/pages/settings.php:59
msgid "Love Weglot? Give us 5 stars on WordPress.org"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:64
#, php-format
msgid ""
"If you need any help, you can contact us via email us at %1$ssupport@weglot."
"com%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:67
#, php-format
msgid "You can also check our %1$sFAQ%2$s."
msgstr ""
#: templates/admin/pages/settings.php:76
msgid "Where are my translations?"
msgstr ""
#: templates/admin/pages/settings.php:78
msgid "You can find all your translations in your Weglot account:"
msgstr ""
#: templates/admin/pages/settings.php:80
msgid "Edit my translations"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:13
msgid ""
"You must first create the page a first time before you can benefit from "
"custom URLs"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:54
msgid "Edit"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:56
msgid "Ok"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:58
msgid "The permalink is not available."
msgstr ""
#: templates/admin/metaboxes/url-translate.php:60
msgid "Reset custom url"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:114
msgid "Weglot switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:129
msgid "Weglot Switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:140
msgid "Add to menu"
msgstr ""
#: src/actions/admin/class-metabox-url-translate-weglot.php:223
msgid "Weglot URL Translate"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:72
msgid "Edit with visual editor"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:84
msgid "Weglot dashboard"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:96
msgid "Plugin settings"
msgstr ""
#: src/actions/front/class-front-menu-weglot.php:112
msgid "Choose your language"
msgstr ""
#: templates/admin/pages/tabs/support.php:10
#: templates/admin/pages/tabs/advanced.php:51
msgid "[WooCommerce] : Prevent reload cart"
msgstr ""
#: templates/admin/pages/tabs/support.php:11
#: templates/admin/pages/tabs/advanced.php:52
msgid ""
"You should only enable this option if you have translation errors on your "
"cart widget."
msgstr ""
#: templates/admin/pages/tabs/support.php:18
msgid "Options for support"
msgstr ""
#: templates/admin/pages/tabs/settings.php:11
msgid "API Key"
msgstr "API-Schlüssel"
#: templates/admin/pages/tabs/settings.php:12
#, php-format
msgid "Log in to %1$sWeglot%2$s to get your API key."
msgstr ""
#: templates/admin/pages/tabs/settings.php:16
msgid "Original language"
msgstr ""
#: templates/admin/pages/tabs/settings.php:21
msgid "Destination languages"
msgstr ""
#: templates/admin/pages/tabs/settings.php:22
#, php-format
msgid ""
"Choose languages you want to translate into. Supported languages can be "
"found %1$shere%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:34
msgid "Main configuration"
msgstr ""
#: templates/admin/pages/tabs/settings.php:57
msgid "If you don't have an account, you can create one in 20 seconds !"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:133
#, php-format
msgid ""
"On the free plan, you can choose one language and use a maximum of 2000 "
"words. If you need more, please %1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:140
#, php-format
msgid ""
"On the Starter plan, you can choose one language. If you need more, please "
"%1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:147
#, php-format
msgid ""
"On the Business plan, you can choose 3 languages. If you need more, "
"please %1$supgrade your plan%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:162
msgid "Close"
msgstr "Schließen"
#: templates/admin/pages/tabs/settings.php:163
msgid "Well done! Your website is now multilingual."
msgstr ""
#: templates/admin/pages/tabs/settings.php:164
msgid ""
"Go on your website, there is a language switcher bottom right. Try it :)"
msgstr ""
#: templates/admin/pages/tabs/settings.php:166
msgid "Go on my front page."
msgstr ""
#: templates/admin/pages/tabs/settings.php:168
msgid ""
"Next step, customize the language button as you want and manually edit your "
"translations directly in your Weglot account."
msgstr ""
#: templates/admin/pages/tabs/status.php:42
msgid "Home URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:46
msgid "Site URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:50
msgid "Weglot version"
msgstr ""
#: templates/admin/pages/tabs/status.php:54
msgid "WordPress version"
msgstr ""
#: templates/admin/pages/tabs/status.php:58
msgid "Is multisite"
msgstr ""
#: templates/admin/pages/tabs/status.php:64
msgid "WordPress Debug mode"
msgstr ""
#: templates/admin/pages/tabs/status.php:72
msgid "Permalink Structure"
msgstr ""
#: templates/admin/pages/tabs/status.php:76
msgid "Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:85
msgid "Server environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:90
msgid "Server info"
msgstr ""
#: templates/admin/pages/tabs/status.php:94
msgid "PHP Version"
msgstr ""
#: templates/admin/pages/tabs/status.php:100
msgid "We need a minimum PHP version : 5.4."
msgstr ""
#: templates/admin/pages/tabs/status.php:106
msgid "Module mod_rewrite"
msgstr ""
#: templates/admin/pages/tabs/status.php:117
msgid "Weglot environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:122
msgid "Original Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:126
msgid "Destination Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:134
msgid "Exclude URLs"
msgstr ""
#: templates/admin/pages/tabs/status.php:146
msgid "Empty"
msgstr ""
#: templates/admin/pages/tabs/status.php:152
msgid "Exclude Blocks"
msgstr ""
#: templates/admin/pages/tabs/status.php:159
msgid "Custom URLS"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:16
msgid "Exclusion URL"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:17
msgid ""
"Add URL that you want to exclude from translations. You can use regular "
"expression to match multiple URLs. "
msgstr ""
#: templates/admin/pages/tabs/advanced.php:21
msgid "Exclusion Blocks"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:22
msgid ""
"Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
" a menu, a paragraph etc..."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:26
msgid "Auto redirection"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:27
msgid "Check if you want to redirect users based on their browser language."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:31
msgid "Translate email"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:32
msgid "Check to translate all emails who use function wp_mail"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:36
msgid "Translate AMP"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:37
msgid "Translate AMP page"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:41
msgid "Search WordPress"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:42
msgid "Allow your users to search in the language they use."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:46
msgid "Private mode"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:47
msgid "Check if your only want admin users to see the translations"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:67
msgid "Translation Exclusion (Optional)"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:69
msgid ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:119
msgid "Add an URL to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:151
msgid "Add a block to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:157
msgid "Other options (Optional)"
msgstr ""
#. 1 Local name language
#: templates/admin/pages/tabs/advanced.php:264
#, php-format
msgid "Make \"%s\" a private language"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:21
msgid "All customs URLs was reseted."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:37
msgid "Lang : "
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:41
msgid "Base URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:44
msgid "Custom URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:101
msgid "Reset all Weglot custom URLs"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:105
msgid "No custom URL found."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:115
msgid "Are you sure to reset all custom URLs?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:12
msgid "Type of flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:17
msgid "Is fullname"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:18
msgid ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:22
msgid "With name"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:23
msgid "Check if you want to display the name of languages."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:27
msgid "Is dropdown"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:28
msgid "Check if you want the button to be a dropdown box."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:32
msgid "With flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:33
msgid "Check if you want flags in the language button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:37
msgid "Override CSS"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:38
msgid "Don't change it unless you want a specific style for your button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
msgid "Language button design"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
#: templates/admin/pages/tabs/appearance.php:266
msgid "(Optional)"
msgstr "(optional)"
#: templates/admin/pages/tabs/appearance.php:59
msgid "Button preview"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:115
msgid "Rectangle mat"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:122
msgid "Rectangle shiny"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:129
msgid "Square"
msgstr "Quadrat"
#: templates/admin/pages/tabs/appearance.php:136
msgid "Circle"
msgstr "Kreis"
#: templates/admin/pages/tabs/appearance.php:139
msgid "Change country flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:142
msgid "Choose English flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:143
msgid "United Kingdom (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:144
msgid "United States"
msgstr "Vereinigte Staaten von Amerika"
#: templates/admin/pages/tabs/appearance.php:145
msgid "Australia"
msgstr "Australien"
#: templates/admin/pages/tabs/appearance.php:146
#: templates/admin/pages/tabs/appearance.php:183
msgid "Canada"
msgstr "Kanada"
#: templates/admin/pages/tabs/appearance.php:147
msgid "New Zealand"
msgstr "Neuseeland"
#: templates/admin/pages/tabs/appearance.php:148
msgid "Jamaica"
msgstr "Jamaika"
#: templates/admin/pages/tabs/appearance.php:149
msgid "Ireland"
msgstr "Irland"
#: templates/admin/pages/tabs/appearance.php:152
msgid "Choose Spanish flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:153
msgid "Spain (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:154
msgid "Mexico"
msgstr "Mexiko"
#: templates/admin/pages/tabs/appearance.php:155
msgid "Argentina"
msgstr "Agentinien"
#: templates/admin/pages/tabs/appearance.php:156
msgid "Colombia"
msgstr "Colombia"
#: templates/admin/pages/tabs/appearance.php:157
msgid "Peru"
msgstr "Peru"
#: templates/admin/pages/tabs/appearance.php:158
msgid "Bolivia"
msgstr "Bolivien"
#: templates/admin/pages/tabs/appearance.php:159
msgid "Uruguay"
msgstr "Uruguay"
#: templates/admin/pages/tabs/appearance.php:160
msgid "Venezuela"
msgstr "Venezuela"
#: templates/admin/pages/tabs/appearance.php:161
msgid "Chile"
msgstr "Chile"
#: templates/admin/pages/tabs/appearance.php:162
msgid "Ecuador"
msgstr "Ekuador"
#: templates/admin/pages/tabs/appearance.php:163
msgid "Guatemala"
msgstr "Guatemala"
#: templates/admin/pages/tabs/appearance.php:164
msgid "Cuba"
msgstr "Kuba"
#: templates/admin/pages/tabs/appearance.php:165
msgid "Dominican Republic"
msgstr "Dominikanische Republik"
#: templates/admin/pages/tabs/appearance.php:166
msgid "Honduras"
msgstr "Honduras"
#: templates/admin/pages/tabs/appearance.php:167
msgid "Paraguay"
msgstr "Paraguay"
#: templates/admin/pages/tabs/appearance.php:168
msgid "El Salvador"
msgstr "El Salvador"
#: templates/admin/pages/tabs/appearance.php:169
msgid "Nicaragua"
msgstr "Nicaragua"
#: templates/admin/pages/tabs/appearance.php:170
msgid "Costa Rica"
msgstr "Costa Rica"
#: templates/admin/pages/tabs/appearance.php:171
msgid "Puerto Rico"
msgstr "Puerto Rico"
#: templates/admin/pages/tabs/appearance.php:172
msgid "Panama"
msgstr "Panama"
#: templates/admin/pages/tabs/appearance.php:175
msgid "Choose Portuguese flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:176
msgid "Brazil (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:177
msgid "Portugal"
msgstr "Portugal"
#: templates/admin/pages/tabs/appearance.php:180
msgid "Choose French flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:181
msgid "France (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:182
msgid "Belgium"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:184
msgid "Switzerland"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:185
msgid "Luxemburg"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:188
msgid "Choose Arabic flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:189
msgid "Saudi Arabia (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:190
msgid "Algeria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:191
msgid "Egypt"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:192
msgid "Iraq"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:193
msgid "Jordan"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:194
msgid "Kuwait"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:195
msgid "Lebanon"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:196
msgid "Libya"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:197
msgid "Morocco"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:198
msgid "Oman"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:199
msgid "Qatar"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:200
msgid "Syria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:201
msgid "Tunisia"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:202
msgid "United Arab Emirates"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:203
msgid "Yemen"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:205
msgid "If you want to use a different flag, just ask us."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:266
msgid "Language button position"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:270
msgid ""
"Where will the language button be on my website? By default, bottom right."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:277
msgid "In menu (Weglot translate V1) ?"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/appearance.php:292
msgid ""
"Warning, this feature will be depreciated. We strongly advise you to uncheck "
"the option and use and use the functionality: \"In menu\"."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:300
msgid "In menu?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:302
#, php-format
msgid ""
"You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
"and drag and drop the Weglot Translate Custom link where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:306
msgid "As a widget?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:308
#, php-format
msgid ""
"You can place the button in a widget area. Go to %1$sAppearance → "
"Widgets%2$s and drag and drop the Weglot Translate widget where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:312
msgid "With a shortcode?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:314
msgid ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:318
msgid "In the source code?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:320
msgid ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
msgstr ""
#. Description of the plugin/theme
msgid ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
msgstr ""
#. URI of the plugin
msgid "http://wordpress.org/plugins/weglot/"
msgstr ""
#. Author of the plugin
msgid "Weglot Translate team"
msgstr ""
#. Author URI of the plugin
msgid "https://weglot.com/"
msgstr ""

Binary file not shown.

View File

@@ -0,0 +1,904 @@
# Copyright (C) 2017 Remy B
# This file is distributed under the same license as the Weglot Translate package.
# Translators:
# Damian Barnett <barnez@gmx.com>, 2017
# FX Bénard <fxb@wp-translations.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Weglot Translate 1.4.3\n"
"Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
"POT-Creation-Date: 2020-04-27 15:55+0000\n"
"PO-Revision-Date: 2020-04-27 16:01+0000\n"
"Last-Translator: Weglot\n"
"Language-Team: English (UK)\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
"esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Version: 2.3.3; wp-5.4"
#: weglot.php:164
#, php-format
msgid "%s Update Rollback"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:37
msgid "URL starts with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:39
msgid "URL ends with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:41
msgid "URL contains substring"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:43
msgid "URL is exactly"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:45
msgid "URL matches regex"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:33
msgid "Hide the current language"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:37
msgid "Show as dropdown (By default it's a list)"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:63
#: src/actions/admin/class-plugin-links-weglot.php:38
msgid "Settings"
msgstr "Settings"
#: src/helpers/class-helper-tabs-admin-weglot.php:67
#: templates/admin/pages/tabs/status.php:11
msgid "Status"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:71
#: templates/admin/pages/tabs/custom-urls.php:10
msgid "Custom URLs"
msgstr ""
#. Plugin Name of the plugin/theme
#: src/widgets/class-widget-selector-weglot.php:16
msgid "Weglot Translate"
msgstr "Weglot Translate"
#: src/widgets/class-widget-selector-weglot.php:18
msgid "Display Weglot selector in widget"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:60
msgid "Title:"
msgstr "Title:"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-configuration.php:16
#, php-format
msgid ""
"Weglot Translate is installed but not yet configured, you need to configure "
"Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
"only 1 minute! "
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/json-function.php:12
msgid ""
"Weglot Translate: You need to activate package php-json. If you need help, "
"please contact your host or just ask us directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-curl.php:12
msgid ""
"Weglot Translate: You need to activate cURL. If you need help, just ask us "
"directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/rewrite-module.php:12
#, php-format
msgid ""
"Weglot Translate: You need to activate the mod_rewrite module. You can find "
"more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
"us directly at support@weglot.com."
msgstr ""
#. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
#: templates/admin/notices/php-min.php:12
#, php-format
msgid ""
"%1$s requires PHP %2$s minimum, your website is actually running version "
"%3$s."
msgstr ""
#: templates/admin/notices/php-min.php:17
msgid ""
"If you are not able to upgrade, you can rollback to the previous version by "
"using the button below."
msgstr ""
#: templates/admin/notices/php-min.php:22
msgid "Re-install version 1.13.1"
msgstr ""
#: templates/admin/pages/settings.php:59
msgid "Love Weglot? Give us 5 stars on WordPress.org"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:64
#, php-format
msgid ""
"If you need any help, you can contact us via email us at %1$ssupport@weglot."
"com%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:67
#, php-format
msgid "You can also check our %1$sFAQ%2$s."
msgstr ""
#: templates/admin/pages/settings.php:76
msgid "Where are my translations?"
msgstr "Where are my translations?"
#: templates/admin/pages/settings.php:78
msgid "You can find all your translations in your Weglot account:"
msgstr "You can find all your translations in your Weglot account:"
#: templates/admin/pages/settings.php:80
msgid "Edit my translations"
msgstr "Edit my translations"
#: templates/admin/metaboxes/url-translate.php:13
msgid ""
"You must first create the page a first time before you can benefit from "
"custom URLs"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:54
msgid "Edit"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:56
msgid "Ok"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:58
msgid "The permalink is not available."
msgstr ""
#: templates/admin/metaboxes/url-translate.php:60
msgid "Reset custom url"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:114
msgid "Weglot switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:129
msgid "Weglot Switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:140
msgid "Add to menu"
msgstr ""
#: src/actions/admin/class-metabox-url-translate-weglot.php:223
msgid "Weglot URL Translate"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:72
msgid "Edit with visual editor"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:84
msgid "Weglot dashboard"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:96
msgid "Plugin settings"
msgstr ""
#: src/actions/front/class-front-menu-weglot.php:112
msgid "Choose your language"
msgstr ""
#: templates/admin/pages/tabs/support.php:10
#: templates/admin/pages/tabs/advanced.php:51
msgid "[WooCommerce] : Prevent reload cart"
msgstr ""
#: templates/admin/pages/tabs/support.php:11
#: templates/admin/pages/tabs/advanced.php:52
msgid ""
"You should only enable this option if you have translation errors on your "
"cart widget."
msgstr ""
#: templates/admin/pages/tabs/support.php:18
msgid "Options for support"
msgstr ""
#: templates/admin/pages/tabs/settings.php:11
msgid "API Key"
msgstr "API Key"
#: templates/admin/pages/tabs/settings.php:12
#, php-format
msgid "Log in to %1$sWeglot%2$s to get your API key."
msgstr ""
#: templates/admin/pages/tabs/settings.php:16
msgid "Original language"
msgstr ""
#: templates/admin/pages/tabs/settings.php:21
msgid "Destination languages"
msgstr ""
#: templates/admin/pages/tabs/settings.php:22
#, php-format
msgid ""
"Choose languages you want to translate into. Supported languages can be "
"found %1$shere%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:34
msgid "Main configuration"
msgstr "Main configuration"
#: templates/admin/pages/tabs/settings.php:57
msgid "If you don't have an account, you can create one in 20 seconds !"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:133
#, php-format
msgid ""
"On the free plan, you can choose one language and use a maximum of 2000 "
"words. If you need more, please %1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:140
#, php-format
msgid ""
"On the Starter plan, you can choose one language. If you need more, please "
"%1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:147
#, php-format
msgid ""
"On the Business plan, you can choose 3 languages. If you need more, "
"please %1$supgrade your plan%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:162
msgid "Close"
msgstr "Close"
#: templates/admin/pages/tabs/settings.php:163
msgid "Well done! Your website is now multilingual."
msgstr "Well done! Your website is now multilingual."
#: templates/admin/pages/tabs/settings.php:164
msgid ""
"Go on your website, there is a language switcher bottom right. Try it :)"
msgstr ""
#: templates/admin/pages/tabs/settings.php:166
msgid "Go on my front page."
msgstr "Go on my front page."
#: templates/admin/pages/tabs/settings.php:168
msgid ""
"Next step, customize the language button as you want and manually edit your "
"translations directly in your Weglot account."
msgstr ""
#: templates/admin/pages/tabs/status.php:42
msgid "Home URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:46
msgid "Site URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:50
msgid "Weglot version"
msgstr ""
#: templates/admin/pages/tabs/status.php:54
msgid "WordPress version"
msgstr ""
#: templates/admin/pages/tabs/status.php:58
msgid "Is multisite"
msgstr ""
#: templates/admin/pages/tabs/status.php:64
msgid "WordPress Debug mode"
msgstr ""
#: templates/admin/pages/tabs/status.php:72
msgid "Permalink Structure"
msgstr ""
#: templates/admin/pages/tabs/status.php:76
msgid "Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:85
msgid "Server environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:90
msgid "Server info"
msgstr ""
#: templates/admin/pages/tabs/status.php:94
msgid "PHP Version"
msgstr ""
#: templates/admin/pages/tabs/status.php:100
msgid "We need a minimum PHP version : 5.4."
msgstr ""
#: templates/admin/pages/tabs/status.php:106
msgid "Module mod_rewrite"
msgstr ""
#: templates/admin/pages/tabs/status.php:117
msgid "Weglot environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:122
msgid "Original Language"
msgstr "Original Language"
#: templates/admin/pages/tabs/status.php:126
msgid "Destination Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:134
msgid "Exclude URLs"
msgstr ""
#: templates/admin/pages/tabs/status.php:146
msgid "Empty"
msgstr ""
#: templates/admin/pages/tabs/status.php:152
msgid "Exclude Blocks"
msgstr ""
#: templates/admin/pages/tabs/status.php:159
msgid "Custom URLS"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:16
msgid "Exclusion URL"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:17
msgid ""
"Add URL that you want to exclude from translations. You can use regular "
"expression to match multiple URLs. "
msgstr ""
#: templates/admin/pages/tabs/advanced.php:21
msgid "Exclusion Blocks"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:22
msgid ""
"Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
" a menu, a paragraph etc..."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:26
msgid "Auto redirection"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:27
msgid "Check if you want to redirect users based on their browser language."
msgstr "Check if you want to redirect users based on their browser language."
#: templates/admin/pages/tabs/advanced.php:31
msgid "Translate email"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:32
msgid "Check to translate all emails who use function wp_mail"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:36
msgid "Translate AMP"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:37
msgid "Translate AMP page"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:41
msgid "Search WordPress"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:42
msgid "Allow your users to search in the language they use."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:46
msgid "Private mode"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:47
msgid "Check if your only want admin users to see the translations"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:67
msgid "Translation Exclusion (Optional)"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:69
msgid ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
msgstr ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
#: templates/admin/pages/tabs/advanced.php:119
msgid "Add an URL to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:151
msgid "Add a block to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:157
msgid "Other options (Optional)"
msgstr ""
#. 1 Local name language
#: templates/admin/pages/tabs/advanced.php:264
#, php-format
msgid "Make \"%s\" a private language"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:21
msgid "All customs URLs was reseted."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:37
msgid "Lang : "
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:41
msgid "Base URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:44
msgid "Custom URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:101
msgid "Reset all Weglot custom URLs"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:105
msgid "No custom URL found."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:115
msgid "Are you sure to reset all custom URLs?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:12
msgid "Type of flags"
msgstr "Type of flags"
#: templates/admin/pages/tabs/appearance.php:17
msgid "Is fullname"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:18
msgid ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
msgstr ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
#: templates/admin/pages/tabs/appearance.php:22
msgid "With name"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:23
msgid "Check if you want to display the name of languages."
msgstr "Check if you want to display the name of languages."
#: templates/admin/pages/tabs/appearance.php:27
msgid "Is dropdown"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:28
msgid "Check if you want the button to be a dropdown box."
msgstr "Check if you want the button to be a dropdown box."
#: templates/admin/pages/tabs/appearance.php:32
msgid "With flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:33
msgid "Check if you want flags in the language button."
msgstr "Check if you want flags in the language button."
#: templates/admin/pages/tabs/appearance.php:37
msgid "Override CSS"
msgstr "Override CSS"
#: templates/admin/pages/tabs/appearance.php:38
msgid "Don't change it unless you want a specific style for your button."
msgstr "Don't change it unless you want a specific style for your button."
#: templates/admin/pages/tabs/appearance.php:51
msgid "Language button design"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
#: templates/admin/pages/tabs/appearance.php:266
msgid "(Optional)"
msgstr "(Optional)"
#: templates/admin/pages/tabs/appearance.php:59
msgid "Button preview"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:115
msgid "Rectangle mat"
msgstr "Rectangle mat"
#: templates/admin/pages/tabs/appearance.php:122
msgid "Rectangle shiny"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:129
msgid "Square"
msgstr "Square"
#: templates/admin/pages/tabs/appearance.php:136
msgid "Circle"
msgstr "Circle"
#: templates/admin/pages/tabs/appearance.php:139
msgid "Change country flags"
msgstr "Change country flags"
#: templates/admin/pages/tabs/appearance.php:142
msgid "Choose English flag:"
msgstr "Choose English flag:"
#: templates/admin/pages/tabs/appearance.php:143
msgid "United Kingdom (default)"
msgstr "United Kingdom (default)"
#: templates/admin/pages/tabs/appearance.php:144
msgid "United States"
msgstr "United States"
#: templates/admin/pages/tabs/appearance.php:145
msgid "Australia"
msgstr "Australia"
#: templates/admin/pages/tabs/appearance.php:146
#: templates/admin/pages/tabs/appearance.php:183
msgid "Canada"
msgstr "Canada"
#: templates/admin/pages/tabs/appearance.php:147
msgid "New Zealand"
msgstr "New Zealand"
#: templates/admin/pages/tabs/appearance.php:148
msgid "Jamaica"
msgstr "Jamaica"
#: templates/admin/pages/tabs/appearance.php:149
msgid "Ireland"
msgstr "Ireland"
#: templates/admin/pages/tabs/appearance.php:152
msgid "Choose Spanish flag:"
msgstr "Choose Spanish flag:"
#: templates/admin/pages/tabs/appearance.php:153
msgid "Spain (default)"
msgstr "Spain (default)"
#: templates/admin/pages/tabs/appearance.php:154
msgid "Mexico"
msgstr "Mexico"
#: templates/admin/pages/tabs/appearance.php:155
msgid "Argentina"
msgstr "Argentina"
#: templates/admin/pages/tabs/appearance.php:156
msgid "Colombia"
msgstr "Colombia"
#: templates/admin/pages/tabs/appearance.php:157
msgid "Peru"
msgstr "Peru"
#: templates/admin/pages/tabs/appearance.php:158
msgid "Bolivia"
msgstr "Bolivia"
#: templates/admin/pages/tabs/appearance.php:159
msgid "Uruguay"
msgstr "Uruguay"
#: templates/admin/pages/tabs/appearance.php:160
msgid "Venezuela"
msgstr "Venezuela"
#: templates/admin/pages/tabs/appearance.php:161
msgid "Chile"
msgstr "Chile"
#: templates/admin/pages/tabs/appearance.php:162
msgid "Ecuador"
msgstr "Ecuador"
#: templates/admin/pages/tabs/appearance.php:163
msgid "Guatemala"
msgstr "Guatemala"
#: templates/admin/pages/tabs/appearance.php:164
msgid "Cuba"
msgstr "Cuba"
#: templates/admin/pages/tabs/appearance.php:165
msgid "Dominican Republic"
msgstr "Dominican Republic"
#: templates/admin/pages/tabs/appearance.php:166
msgid "Honduras"
msgstr "Honduras"
#: templates/admin/pages/tabs/appearance.php:167
msgid "Paraguay"
msgstr "Paraguay"
#: templates/admin/pages/tabs/appearance.php:168
msgid "El Salvador"
msgstr "El Salvador"
#: templates/admin/pages/tabs/appearance.php:169
msgid "Nicaragua"
msgstr "Nicaragua"
#: templates/admin/pages/tabs/appearance.php:170
msgid "Costa Rica"
msgstr "Costa Rica"
#: templates/admin/pages/tabs/appearance.php:171
msgid "Puerto Rico"
msgstr "Puerto Rico"
#: templates/admin/pages/tabs/appearance.php:172
msgid "Panama"
msgstr "Panama"
#: templates/admin/pages/tabs/appearance.php:175
msgid "Choose Portuguese flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:176
msgid "Brazil (default)"
msgstr "Brazil (default)"
#: templates/admin/pages/tabs/appearance.php:177
msgid "Portugal"
msgstr "Portugal"
#: templates/admin/pages/tabs/appearance.php:180
msgid "Choose French flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:181
msgid "France (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:182
msgid "Belgium"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:184
msgid "Switzerland"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:185
msgid "Luxemburg"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:188
msgid "Choose Arabic flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:189
msgid "Saudi Arabia (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:190
msgid "Algeria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:191
msgid "Egypt"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:192
msgid "Iraq"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:193
msgid "Jordan"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:194
msgid "Kuwait"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:195
msgid "Lebanon"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:196
msgid "Libya"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:197
msgid "Morocco"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:198
msgid "Oman"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:199
msgid "Qatar"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:200
msgid "Syria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:201
msgid "Tunisia"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:202
msgid "United Arab Emirates"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:203
msgid "Yemen"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:205
msgid "If you want to use a different flag, just ask us."
msgstr "If you want to use a different flag, just ask us."
#: templates/admin/pages/tabs/appearance.php:266
msgid "Language button position"
msgstr "Language button position"
#: templates/admin/pages/tabs/appearance.php:270
msgid ""
"Where will the language button be on my website? By default, bottom right."
msgstr ""
"Where will the language button be on my website? By default, bottom right."
#: templates/admin/pages/tabs/appearance.php:277
msgid "In menu (Weglot translate V1) ?"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/appearance.php:292
msgid ""
"Warning, this feature will be depreciated. We strongly advise you to uncheck "
"the option and use and use the functionality: \"In menu\"."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:300
msgid "In menu?"
msgstr "In menu?"
#: templates/admin/pages/tabs/appearance.php:302
#, php-format
msgid ""
"You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
"and drag and drop the Weglot Translate Custom link where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:306
msgid "As a widget?"
msgstr "As a widget?"
#: templates/admin/pages/tabs/appearance.php:308
#, php-format
msgid ""
"You can place the button in a widget area. Go to %1$sAppearance → "
"Widgets%2$s and drag and drop the Weglot Translate widget where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:312
msgid "With a shortcode?"
msgstr "With a shortcode?"
#: templates/admin/pages/tabs/appearance.php:314
msgid ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
msgstr ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
#: templates/admin/pages/tabs/appearance.php:318
msgid "In the source code?"
msgstr "In the source code?"
#: templates/admin/pages/tabs/appearance.php:320
msgid ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
msgstr ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
#. Description of the plugin/theme
msgid ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
msgstr ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
#. URI of the plugin
msgid "http://wordpress.org/plugins/weglot/"
msgstr ""
#. Author of the plugin
msgid "Weglot Translate team"
msgstr ""
#. Author URI of the plugin
msgid "https://weglot.com/"
msgstr ""

Binary file not shown.

View File

@@ -0,0 +1,893 @@
# Copyright (C) 2017 Remy B
# This file is distributed under the same license as the Weglot Translate package.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Derek Ashauer <derek@ashwebstudio.com>, 2017
# Robert Bruun <robert@cacplus.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Weglot Translate 1.4.3\n"
"Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
"POT-Creation-Date: 2020-04-27 15:55+0000\n"
"PO-Revision-Date: 2020-04-27 16:02+0000\n"
"Last-Translator: Weglot\n"
"Language-Team: Spanish (Spain)\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
"esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Version: 2.3.3; wp-5.4"
#: weglot.php:164
#, php-format
msgid "%s Update Rollback"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:37
msgid "URL starts with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:39
msgid "URL ends with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:41
msgid "URL contains substring"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:43
msgid "URL is exactly"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:45
msgid "URL matches regex"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:33
msgid "Hide the current language"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:37
msgid "Show as dropdown (By default it's a list)"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:63
#: src/actions/admin/class-plugin-links-weglot.php:38
msgid "Settings"
msgstr "Configurar"
#: src/helpers/class-helper-tabs-admin-weglot.php:67
#: templates/admin/pages/tabs/status.php:11
msgid "Status"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:71
#: templates/admin/pages/tabs/custom-urls.php:10
msgid "Custom URLs"
msgstr ""
#. Plugin Name of the plugin/theme
#: src/widgets/class-widget-selector-weglot.php:16
msgid "Weglot Translate"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:18
msgid "Display Weglot selector in widget"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:60
msgid "Title:"
msgstr "Titulo:"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-configuration.php:16
#, php-format
msgid ""
"Weglot Translate is installed but not yet configured, you need to configure "
"Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
"only 1 minute! "
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/json-function.php:12
msgid ""
"Weglot Translate: You need to activate package php-json. If you need help, "
"please contact your host or just ask us directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-curl.php:12
msgid ""
"Weglot Translate: You need to activate cURL. If you need help, just ask us "
"directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/rewrite-module.php:12
#, php-format
msgid ""
"Weglot Translate: You need to activate the mod_rewrite module. You can find "
"more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
"us directly at support@weglot.com."
msgstr ""
#. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
#: templates/admin/notices/php-min.php:12
#, php-format
msgid ""
"%1$s requires PHP %2$s minimum, your website is actually running version "
"%3$s."
msgstr ""
#: templates/admin/notices/php-min.php:17
msgid ""
"If you are not able to upgrade, you can rollback to the previous version by "
"using the button below."
msgstr ""
#: templates/admin/notices/php-min.php:22
msgid "Re-install version 1.13.1"
msgstr ""
#: templates/admin/pages/settings.php:59
msgid "Love Weglot? Give us 5 stars on WordPress.org"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:64
#, php-format
msgid ""
"If you need any help, you can contact us via email us at %1$ssupport@weglot."
"com%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:67
#, php-format
msgid "You can also check our %1$sFAQ%2$s."
msgstr ""
#: templates/admin/pages/settings.php:76
msgid "Where are my translations?"
msgstr ""
#: templates/admin/pages/settings.php:78
msgid "You can find all your translations in your Weglot account:"
msgstr ""
#: templates/admin/pages/settings.php:80
msgid "Edit my translations"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:13
msgid ""
"You must first create the page a first time before you can benefit from "
"custom URLs"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:54
msgid "Edit"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:56
msgid "Ok"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:58
msgid "The permalink is not available."
msgstr ""
#: templates/admin/metaboxes/url-translate.php:60
msgid "Reset custom url"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:114
msgid "Weglot switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:129
msgid "Weglot Switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:140
msgid "Add to menu"
msgstr ""
#: src/actions/admin/class-metabox-url-translate-weglot.php:223
msgid "Weglot URL Translate"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:72
msgid "Edit with visual editor"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:84
msgid "Weglot dashboard"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:96
msgid "Plugin settings"
msgstr ""
#: src/actions/front/class-front-menu-weglot.php:112
msgid "Choose your language"
msgstr ""
#: templates/admin/pages/tabs/support.php:10
#: templates/admin/pages/tabs/advanced.php:51
msgid "[WooCommerce] : Prevent reload cart"
msgstr ""
#: templates/admin/pages/tabs/support.php:11
#: templates/admin/pages/tabs/advanced.php:52
msgid ""
"You should only enable this option if you have translation errors on your "
"cart widget."
msgstr ""
#: templates/admin/pages/tabs/support.php:18
msgid "Options for support"
msgstr ""
#: templates/admin/pages/tabs/settings.php:11
msgid "API Key"
msgstr "Clave de la API"
#: templates/admin/pages/tabs/settings.php:12
#, php-format
msgid "Log in to %1$sWeglot%2$s to get your API key."
msgstr ""
#: templates/admin/pages/tabs/settings.php:16
msgid "Original language"
msgstr ""
#: templates/admin/pages/tabs/settings.php:21
msgid "Destination languages"
msgstr ""
#: templates/admin/pages/tabs/settings.php:22
#, php-format
msgid ""
"Choose languages you want to translate into. Supported languages can be "
"found %1$shere%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:34
msgid "Main configuration"
msgstr ""
#: templates/admin/pages/tabs/settings.php:57
msgid "If you don't have an account, you can create one in 20 seconds !"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:133
#, php-format
msgid ""
"On the free plan, you can choose one language and use a maximum of 2000 "
"words. If you need more, please %1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:140
#, php-format
msgid ""
"On the Starter plan, you can choose one language. If you need more, please "
"%1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:147
#, php-format
msgid ""
"On the Business plan, you can choose 3 languages. If you need more, "
"please %1$supgrade your plan%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:162
msgid "Close"
msgstr "Cerrado"
#: templates/admin/pages/tabs/settings.php:163
msgid "Well done! Your website is now multilingual."
msgstr ""
#: templates/admin/pages/tabs/settings.php:164
msgid ""
"Go on your website, there is a language switcher bottom right. Try it :)"
msgstr ""
#: templates/admin/pages/tabs/settings.php:166
msgid "Go on my front page."
msgstr ""
#: templates/admin/pages/tabs/settings.php:168
msgid ""
"Next step, customize the language button as you want and manually edit your "
"translations directly in your Weglot account."
msgstr ""
#: templates/admin/pages/tabs/status.php:42
msgid "Home URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:46
msgid "Site URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:50
msgid "Weglot version"
msgstr ""
#: templates/admin/pages/tabs/status.php:54
msgid "WordPress version"
msgstr ""
#: templates/admin/pages/tabs/status.php:58
msgid "Is multisite"
msgstr ""
#: templates/admin/pages/tabs/status.php:64
msgid "WordPress Debug mode"
msgstr ""
#: templates/admin/pages/tabs/status.php:72
msgid "Permalink Structure"
msgstr ""
#: templates/admin/pages/tabs/status.php:76
msgid "Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:85
msgid "Server environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:90
msgid "Server info"
msgstr ""
#: templates/admin/pages/tabs/status.php:94
msgid "PHP Version"
msgstr ""
#: templates/admin/pages/tabs/status.php:100
msgid "We need a minimum PHP version : 5.4."
msgstr ""
#: templates/admin/pages/tabs/status.php:106
msgid "Module mod_rewrite"
msgstr ""
#: templates/admin/pages/tabs/status.php:117
msgid "Weglot environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:122
msgid "Original Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:126
msgid "Destination Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:134
msgid "Exclude URLs"
msgstr ""
#: templates/admin/pages/tabs/status.php:146
msgid "Empty"
msgstr ""
#: templates/admin/pages/tabs/status.php:152
msgid "Exclude Blocks"
msgstr ""
#: templates/admin/pages/tabs/status.php:159
msgid "Custom URLS"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:16
msgid "Exclusion URL"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:17
msgid ""
"Add URL that you want to exclude from translations. You can use regular "
"expression to match multiple URLs. "
msgstr ""
#: templates/admin/pages/tabs/advanced.php:21
msgid "Exclusion Blocks"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:22
msgid ""
"Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
" a menu, a paragraph etc..."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:26
msgid "Auto redirection"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:27
msgid "Check if you want to redirect users based on their browser language."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:31
msgid "Translate email"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:32
msgid "Check to translate all emails who use function wp_mail"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:36
msgid "Translate AMP"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:37
msgid "Translate AMP page"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:41
msgid "Search WordPress"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:42
msgid "Allow your users to search in the language they use."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:46
msgid "Private mode"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:47
msgid "Check if your only want admin users to see the translations"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:67
msgid "Translation Exclusion (Optional)"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:69
msgid ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:119
msgid "Add an URL to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:151
msgid "Add a block to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:157
msgid "Other options (Optional)"
msgstr ""
#. 1 Local name language
#: templates/admin/pages/tabs/advanced.php:264
#, php-format
msgid "Make \"%s\" a private language"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:21
msgid "All customs URLs was reseted."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:37
msgid "Lang : "
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:41
msgid "Base URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:44
msgid "Custom URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:101
msgid "Reset all Weglot custom URLs"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:105
msgid "No custom URL found."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:115
msgid "Are you sure to reset all custom URLs?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:12
msgid "Type of flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:17
msgid "Is fullname"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:18
msgid ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:22
msgid "With name"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:23
msgid "Check if you want to display the name of languages."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:27
msgid "Is dropdown"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:28
msgid "Check if you want the button to be a dropdown box."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:32
msgid "With flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:33
msgid "Check if you want flags in the language button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:37
msgid "Override CSS"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:38
msgid "Don't change it unless you want a specific style for your button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
msgid "Language button design"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
#: templates/admin/pages/tabs/appearance.php:266
msgid "(Optional)"
msgstr "(Opcional)"
#: templates/admin/pages/tabs/appearance.php:59
msgid "Button preview"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:115
msgid "Rectangle mat"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:122
msgid "Rectangle shiny"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:129
msgid "Square"
msgstr "Square"
#: templates/admin/pages/tabs/appearance.php:136
msgid "Circle"
msgstr "Ciclo"
#: templates/admin/pages/tabs/appearance.php:139
msgid "Change country flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:142
msgid "Choose English flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:143
msgid "United Kingdom (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:144
msgid "United States"
msgstr "Estados Unidos"
#: templates/admin/pages/tabs/appearance.php:145
msgid "Australia"
msgstr "Australia"
#: templates/admin/pages/tabs/appearance.php:146
#: templates/admin/pages/tabs/appearance.php:183
msgid "Canada"
msgstr "Canadá"
#: templates/admin/pages/tabs/appearance.php:147
msgid "New Zealand"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:148
msgid "Jamaica"
msgstr "Jamaica"
#: templates/admin/pages/tabs/appearance.php:149
msgid "Ireland"
msgstr "Irlanda"
#: templates/admin/pages/tabs/appearance.php:152
msgid "Choose Spanish flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:153
msgid "Spain (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:154
msgid "Mexico"
msgstr "México"
#: templates/admin/pages/tabs/appearance.php:155
msgid "Argentina"
msgstr "Argentina"
#: templates/admin/pages/tabs/appearance.php:156
msgid "Colombia"
msgstr "Colombia"
#: templates/admin/pages/tabs/appearance.php:157
msgid "Peru"
msgstr "Perú"
#: templates/admin/pages/tabs/appearance.php:158
msgid "Bolivia"
msgstr "Bolivia"
#: templates/admin/pages/tabs/appearance.php:159
msgid "Uruguay"
msgstr "Uruguay"
#: templates/admin/pages/tabs/appearance.php:160
msgid "Venezuela"
msgstr "Venezuela"
#: templates/admin/pages/tabs/appearance.php:161
msgid "Chile"
msgstr "Chile"
#: templates/admin/pages/tabs/appearance.php:162
msgid "Ecuador"
msgstr "Ecuador"
#: templates/admin/pages/tabs/appearance.php:163
msgid "Guatemala"
msgstr "Guatemala"
#: templates/admin/pages/tabs/appearance.php:164
msgid "Cuba"
msgstr "Cuba"
#: templates/admin/pages/tabs/appearance.php:165
msgid "Dominican Republic"
msgstr "República Dominicana"
#: templates/admin/pages/tabs/appearance.php:166
msgid "Honduras"
msgstr " Honduras"
#: templates/admin/pages/tabs/appearance.php:167
msgid "Paraguay"
msgstr "Paraguay"
#: templates/admin/pages/tabs/appearance.php:168
msgid "El Salvador"
msgstr "El-Salvador"
#: templates/admin/pages/tabs/appearance.php:169
msgid "Nicaragua"
msgstr "Nicaragua"
#: templates/admin/pages/tabs/appearance.php:170
msgid "Costa Rica"
msgstr "Costa Rica"
#: templates/admin/pages/tabs/appearance.php:171
msgid "Puerto Rico"
msgstr "Puerto Rico"
#: templates/admin/pages/tabs/appearance.php:172
msgid "Panama"
msgstr "Panamá"
#: templates/admin/pages/tabs/appearance.php:175
msgid "Choose Portuguese flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:176
msgid "Brazil (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:177
msgid "Portugal"
msgstr "Portugal"
#: templates/admin/pages/tabs/appearance.php:180
msgid "Choose French flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:181
msgid "France (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:182
msgid "Belgium"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:184
msgid "Switzerland"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:185
msgid "Luxemburg"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:188
msgid "Choose Arabic flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:189
msgid "Saudi Arabia (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:190
msgid "Algeria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:191
msgid "Egypt"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:192
msgid "Iraq"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:193
msgid "Jordan"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:194
msgid "Kuwait"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:195
msgid "Lebanon"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:196
msgid "Libya"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:197
msgid "Morocco"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:198
msgid "Oman"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:199
msgid "Qatar"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:200
msgid "Syria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:201
msgid "Tunisia"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:202
msgid "United Arab Emirates"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:203
msgid "Yemen"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:205
msgid "If you want to use a different flag, just ask us."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:266
msgid "Language button position"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:270
msgid ""
"Where will the language button be on my website? By default, bottom right."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:277
msgid "In menu (Weglot translate V1) ?"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/appearance.php:292
msgid ""
"Warning, this feature will be depreciated. We strongly advise you to uncheck "
"the option and use and use the functionality: \"In menu\"."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:300
msgid "In menu?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:302
#, php-format
msgid ""
"You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
"and drag and drop the Weglot Translate Custom link where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:306
msgid "As a widget?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:308
#, php-format
msgid ""
"You can place the button in a widget area. Go to %1$sAppearance → "
"Widgets%2$s and drag and drop the Weglot Translate widget where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:312
msgid "With a shortcode?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:314
msgid ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:318
msgid "In the source code?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:320
msgid ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
msgstr ""
#. Description of the plugin/theme
msgid ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
msgstr ""
#. URI of the plugin
msgid "http://wordpress.org/plugins/weglot/"
msgstr ""
#. Author of the plugin
msgid "Weglot Translate team"
msgstr ""
#. Author URI of the plugin
msgid "https://weglot.com/"
msgstr ""

Binary file not shown.

View File

@@ -0,0 +1,988 @@
# Copyright (C) 2017 Remy B
# This file is distributed under the same license as the Weglot Translate package.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Franck <franckgervais@hotmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Weglot Translate 1.4.3\n"
"Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
"POT-Creation-Date: 2020-07-29 08:51+0000\n"
"PO-Revision-Date: 2020-07-29 08:58+0000\n"
"Last-Translator: Weglot\n"
"Language-Team: Français\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
"esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Version: 2.3.3; wp-5.4.2"
#: weglot.php:162
#, php-format
msgid "%s Update Rollback"
msgstr "Mode Debug WordPress"
#: src/helpers/class-helper-excluded-type.php:38
msgid "URL starts with"
msgstr "L'URL commence par"
#: src/helpers/class-helper-excluded-type.php:40
msgid "URL ends with"
msgstr "L'URL finit par"
#: src/helpers/class-helper-excluded-type.php:42
msgid "URL contains substring"
msgstr "L'URL contient la chaîne"
#: src/helpers/class-helper-excluded-type.php:44
msgid "URL is exactly"
msgstr "L'URL est exactement"
#: src/helpers/class-helper-excluded-type.php:46
msgid "URL matches regex"
msgstr "L'URL valide la regex"
#: src/helpers/class-helper-menu-options-weglot.php:36
msgid "Hide the current language"
msgstr "Cacher la langue courrente"
#: src/helpers/class-helper-menu-options-weglot.php:40
msgid "Show as dropdown (By default it's a list)"
msgstr "Afficher comme liste déroulante (liste par défaut)"
#: src/helpers/class-helper-tabs-admin-weglot.php:64
#: src/actions/admin/class-plugin-links-weglot.php:38
msgid "Settings"
msgstr "Réglages"
#: src/helpers/class-helper-tabs-admin-weglot.php:68
#: templates/admin/pages/tabs/status.php:11
msgid "Status"
msgstr "Statut"
#: src/helpers/class-helper-tabs-admin-weglot.php:72
#: templates/admin/pages/tabs/custom-urls.php:10
msgid "Custom URLs"
msgstr "URL personnalisées"
#. Plugin Name of the plugin/theme
#: src/widgets/class-widget-selector-weglot.php:18
msgid "Weglot Translate"
msgstr "Weglot Translate"
#: src/widgets/class-widget-selector-weglot.php:20
msgid "Display Weglot selector in widget"
msgstr "Afficher le sélecteur Weglot dans le widget"
#: src/widgets/class-widget-selector-weglot.php:62
msgid "Title:"
msgstr "Titre :"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-configuration.php:17
#, php-format
msgid ""
"Weglot Translate is installed but not yet configured, you need to configure "
"Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
"only 1 minute! "
msgstr ""
"Weglot est installé mais n'est pas encore configuré, Vous devez de "
"configurer ici : %1$sPage de configuration Weglot%2$s. Cela ne prends qu'une "
"minute !"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/json-function.php:12
msgid ""
"Weglot Translate: You need to activate package php-json. If you need help, "
"please contact your host or just ask us directly at support@weglot.com."
msgstr ""
"Weglot : Vous devez activer le package php-json. Si vous avez besoin d'aide, "
"veuillez contacter votre hôte ou simplement nous demander directement à "
"support@weglot.com."
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-curl.php:12
msgid ""
"Weglot Translate: You need to activate cURL. If you need help, just ask us "
"directly at support@weglot.com."
msgstr ""
"Weglot : Vous devez activer cURL. Si vous avez besoin d'aide, demandez-nous "
"directement à support@weglot.com."
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/rewrite-module.php:12
#, php-format
msgid ""
"Weglot Translate: You need to activate the mod_rewrite module. You can find "
"more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
"us directly at support@weglot.com."
msgstr ""
"Weglot : Vous devez activer le module mod_rewrite. Vous pouvez trouver plus "
"d'informations ici: %1$sUtilisation des permaliens%2$s. Si vous avez besoin "
"d'aide, demandez directement à support@weglot.com."
#. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
#: templates/admin/notices/php-min.php:12
#, php-format
msgid ""
"%1$s requires PHP %2$s minimum, your website is actually running version "
"%3$s."
msgstr ""
"%1$s nécessite PHP %2$s minimum, votre site utilise actuellement la version "
"%3$s."
#: templates/admin/notices/php-min.php:17
msgid ""
"If you are not able to upgrade, you can rollback to the previous version by "
"using the button below."
msgstr ""
"Si vous ne parvenez pas à effectuer la mise à jour, vous pouvez revenir à la "
"version précédente en utilisant le bouton ci-dessous."
#: templates/admin/notices/php-min.php:22
msgid "Re-install version 1.13.1"
msgstr "Re-installer la version 1.13.1"
#: templates/admin/pages/settings.php:59
msgid "Love Weglot? Give us 5 stars on WordPress.org"
msgstr "Vous aimez Weglot ? Donnez-nous 5 étoiles sur WordPress.org"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:64
#, php-format
msgid ""
"If you need any help, you can contact us via email us at %1$ssupport@weglot."
"com%2$s."
msgstr ""
"Si vous avez besoin d'aide, vous pouvez nous contacter par e-mail à "
"%1$ssupport@weglot.com%2$s."
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:67
#, php-format
msgid "You can also check our %1$sFAQ%2$s."
msgstr "Vous pouvez aussi regarder notre %1$sFAQ%2$s."
#: templates/admin/pages/settings.php:76
msgid "Where are my translations?"
msgstr "Où trouver mes traductions ?"
#: templates/admin/pages/settings.php:78
msgid "You can find all your translations in your Weglot account:"
msgstr "Vous pouvez trouver toutes vos traductions dans votre compte Weglot :"
#: templates/admin/pages/settings.php:80
msgid "Edit my translations"
msgstr "Modifier mes traductions"
#: templates/admin/metaboxes/url-translate.php:13
msgid ""
"You must first create the page a first time before you can benefit from "
"custom URLs"
msgstr ""
"Vous devez créer la page dans un premier temps pour bénéficier des URLs "
"personnalisées"
#: templates/admin/metaboxes/url-translate.php:68
msgid "Edit"
msgstr "Éditer "
#: templates/admin/metaboxes/url-translate.php:70
msgid "Ok"
msgstr "OK"
#: templates/admin/metaboxes/url-translate.php:72
msgid "The permalink is not available."
msgstr "Le permalien n'est pas valide"
#: templates/admin/metaboxes/url-translate.php:74
msgid "Reset custom url"
msgstr "Réinitialiser l'URL personnalisée"
#: src/actions/admin/class-customize-menu-weglot.php:114
msgid "Weglot switcher"
msgstr "Sélecteur Weglot"
#: src/actions/admin/class-customize-menu-weglot.php:129
msgid "Weglot Switcher"
msgstr "Sélecteur Weglot"
#: src/actions/admin/class-customize-menu-weglot.php:140
msgid "Add to menu"
msgstr "Ajouter au menu"
#: src/actions/admin/class-metabox-url-translate-weglot.php:246
msgid "Weglot URL Translate"
msgstr "URL Weglot traduite"
#: src/actions/admin/class-pages-weglot.php:71
msgid "Plugin settings"
msgstr "Paramètres de l'extension"
#: src/actions/admin/class-pages-weglot.php:80
msgid "Weglot dashboard"
msgstr "Tableau de bord Weglot"
#: src/actions/admin/class-pages-weglot.php:92
msgid "Edit with visual editor"
msgstr "Éditer avec l'éditeur visuel"
#: src/actions/front/class-front-menu-weglot.php:112
msgid "Choose your language"
msgstr "Choisissez votre langue"
#: templates/admin/pages/tabs/support.php:10
#: templates/admin/pages/tabs/advanced.php:51
msgid "[WooCommerce] : Prevent reload cart"
msgstr "[WooCommerce] : Empêcher le rechargement du panier"
#: templates/admin/pages/tabs/support.php:11
#: templates/admin/pages/tabs/advanced.php:52
msgid ""
"You should only enable this option if you have translation errors on your "
"cart widget."
msgstr ""
"Vous ne devez activer cette option que si vous rencontrez des erreurs de "
"traduction sur votre widget panier."
#: templates/admin/pages/tabs/support.php:18
msgid "Options for support"
msgstr "Options d'assistance"
#: templates/admin/pages/tabs/settings.php:11
msgid "API Key"
msgstr "Clé API"
#: templates/admin/pages/tabs/settings.php:12
#, php-format
msgid "Log in to %1$sWeglot%2$s to get your API key."
msgstr "Connectez-vous à %1$sWeglot%2$s Pour obtenir votre clé API."
#: templates/admin/pages/tabs/settings.php:16
msgid "Original language"
msgstr "Langue dorigine"
#: templates/admin/pages/tabs/settings.php:21
msgid "Destination languages"
msgstr "Langues de destination"
#: templates/admin/pages/tabs/settings.php:22
#, php-format
msgid ""
"Choose languages you want to translate into. Supported languages can be "
"found %1$shere%2$s."
msgstr ""
"Choisissez les langues dans lesquelles vous souhaitez traduire. Les langues "
"prises en charge peuvent être trouvées %1$ici%2$s."
#: templates/admin/pages/tabs/settings.php:34
msgid "Main configuration"
msgstr "Configuration principale"
#: templates/admin/pages/tabs/settings.php:57
msgid "If you don't have an account, you can create one in 20 seconds !"
msgstr "Si vous n'avez pas de compte, vous pouvez en créer un en 20 secondes!"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:133
#, php-format
msgid ""
"On the free plan, you can choose one language and use a maximum of 2000 "
"words. If you need more, please %1$supgrade your plan%2$s."
msgstr ""
"Avec le plan gratuit, vous pouvez choisir une langue et utiliser un maximum "
"de 2000 mots. Si vous avez besoin de plus, veuillez %1$smettre à niveau "
"votre plan%2$s."
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:140
#, php-format
msgid ""
"On the Starter plan, you can choose one language. If you need more, please "
"%1$supgrade your plan%2$s."
msgstr ""
"Avec le plan Starter, vous pouvez choisir une langue. Si vous avez besoin de "
"plus, veuillez %1$smettre à niveau votre plan%2$s."
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:147
#, php-format
msgid ""
"On the Business plan, you can choose 3 languages. If you need more, "
"please %1$supgrade your plan%2$s."
msgstr ""
"Avec le plan Business, vous pouvez choisir trois langues. Si vous avez besoin "
"de plus, veuillez %1$smettre à niveau votre plan%2$s."
#: templates/admin/pages/tabs/settings.php:162
msgid "Close"
msgstr "Fermer"
#: templates/admin/pages/tabs/settings.php:163
msgid "Well done! Your website is now multilingual."
msgstr "Bien joué ! Votre site Web est maintenant multilingue."
#: templates/admin/pages/tabs/settings.php:164
msgid ""
"Go on your website, there is a language switcher bottom right. Try it :)"
msgstr ""
"Rendez-vous sur votre site, il y a un sélecteur de langue en bas à droite. "
"Essayez-le :)"
#: templates/admin/pages/tabs/settings.php:166
msgid "Go on my front page."
msgstr "Aller sur ma page d'accueil"
#: templates/admin/pages/tabs/settings.php:168
msgid ""
"Next step, customize the language button as you want and manually edit your "
"translations directly in your Weglot account."
msgstr ""
"Prochaine étape, personnalisez le bouton de langue comme vous le souhaitez "
"et modifiez manuellement vos traductions directement dans votre compte "
"Weglot."
#: templates/admin/pages/tabs/status.php:42
msgid "Home URL"
msgstr "URL de la page d'accueil"
#: templates/admin/pages/tabs/status.php:46
msgid "Site URL"
msgstr "URL du site"
#: templates/admin/pages/tabs/status.php:50
msgid "Weglot version"
msgstr "Version de Weglot"
#: templates/admin/pages/tabs/status.php:54
msgid "WordPress version"
msgstr "Version de WordPress"
#: templates/admin/pages/tabs/status.php:58
msgid "Is multisite"
msgstr "Est un multisite"
#: templates/admin/pages/tabs/status.php:64
msgid "WordPress Debug mode"
msgstr "Mode Debug WordPress"
#: templates/admin/pages/tabs/status.php:72
msgid "Permalink Structure"
msgstr "Structure des permaliens"
#: templates/admin/pages/tabs/status.php:76
msgid "Language"
msgstr "Langue"
#: templates/admin/pages/tabs/status.php:85
msgid "Server environment"
msgstr "Environnement serveur"
#: templates/admin/pages/tabs/status.php:90
msgid "Server info"
msgstr "Informations serveur"
#: templates/admin/pages/tabs/status.php:94
msgid "PHP Version"
msgstr "Version PHP"
#: templates/admin/pages/tabs/status.php:100
msgid "We need a minimum PHP version : 5.4."
msgstr "Nous avons besoin d'une version minimum de PHP 5.4."
#: templates/admin/pages/tabs/status.php:106
msgid "Module mod_rewrite"
msgstr "Module mod_rewrite"
#: templates/admin/pages/tabs/status.php:117
msgid "Weglot environment"
msgstr "Environnement Weglot"
#: templates/admin/pages/tabs/status.php:122
msgid "Original Language"
msgstr "Langue dorigine"
#: templates/admin/pages/tabs/status.php:126
msgid "Destination Language"
msgstr "Langue de destination"
#: templates/admin/pages/tabs/status.php:134
msgid "Exclude URLs"
msgstr "URLs exclues"
#: templates/admin/pages/tabs/status.php:146
msgid "Empty"
msgstr "Vide"
#: templates/admin/pages/tabs/status.php:152
msgid "Exclude Blocks"
msgstr "Blocs exclus"
#: templates/admin/pages/tabs/status.php:159
msgid "Custom URLS"
msgstr "URLs perssonnalisées"
#: templates/admin/pages/tabs/advanced.php:16
msgid "Exclusion URL"
msgstr "Exclusion d'URL"
#: templates/admin/pages/tabs/advanced.php:17
msgid ""
"Add URL that you want to exclude from translations. You can use regular "
"expression to match multiple URLs. "
msgstr ""
"Ajoutez l'URL que vous souhaitez exclure des traductions. Vous pouvez "
"utiliser une expression régulière pour faire correspondre plusieurs URL."
#: templates/admin/pages/tabs/advanced.php:21
msgid "Exclusion Blocks"
msgstr "Exclusion de blocs"
#: templates/admin/pages/tabs/advanced.php:22
msgid ""
"Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
" a menu, a paragraph, etc...)"
msgstr ""
"Entrez les sélecteurs CSS des blocs que vous ne voulez pas traduire (comme "
"une barre latérale, un menu, un paragraphe, etc.)"
#: templates/admin/pages/tabs/advanced.php:26
msgid "Auto redirection"
msgstr "Redirection automatique"
#: templates/admin/pages/tabs/advanced.php:27
msgid "Check if you want to redirect users based on their browser language."
msgstr ""
"Cochez si vous souhaitez rediriger les utilisateurs en fonction de la langue "
"de leur navigateur."
#: templates/admin/pages/tabs/advanced.php:31
msgid "Translate email"
msgstr "Traduction d'email"
#: templates/admin/pages/tabs/advanced.php:32
msgid "Check to translate all emails who use function wp_mail"
msgstr "Cochez pour traduire tous les emails qui utilisent la fonction wp_mail"
#: templates/admin/pages/tabs/advanced.php:36
msgid "Translate AMP"
msgstr "Traduction AMP"
#: templates/admin/pages/tabs/advanced.php:37
msgid "Translate AMP page"
msgstr "Traduire les pages AMP"
#: templates/admin/pages/tabs/advanced.php:41
msgid "Search WordPress"
msgstr "Recherche WordPress"
#: templates/admin/pages/tabs/advanced.php:42
msgid "Allow your users to search in the language they use."
msgstr ""
"Permettre à vos utilisateurs de faire des recherches dans la langue qu'ils "
"utilisent."
#: templates/admin/pages/tabs/advanced.php:46
msgid "Private mode"
msgstr "Mode privé"
#: templates/admin/pages/tabs/advanced.php:47
msgid "Check if your only want admin users to see the translations"
msgstr ""
"Cochez si vous souhaitez uniquement que les utilisateurs administrateurs "
"voient les traductions"
#: templates/admin/pages/tabs/advanced.php:67
msgid "Translation Exclusion (Optional)"
msgstr "Exclusion de traduction (facultatif)"
#: templates/admin/pages/tabs/advanced.php:69
msgid ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
msgstr ""
"Par défaut, chaque page est traduite. Vous pouvez exclure des parties d'une "
"page ou une page complète ici."
#: templates/admin/pages/tabs/advanced.php:80
msgid "Manage URL to exclude"
msgstr "Gérer les URLs à exclure"
#: templates/admin/pages/tabs/advanced.php:112
msgid "Add a block to exclude"
msgstr "Ajouter un bloc à exclure"
#: templates/admin/pages/tabs/advanced.php:118
msgid "Other options (Optional)"
msgstr "Autres options (facultatif)"
#. 1 Local name language
#: templates/admin/pages/tabs/advanced.php:225
#, php-format
msgid "Make \"%s\" a private language"
msgstr "Rendre la langue \"%s\" privée"
#: templates/admin/pages/tabs/custom-urls.php:21
msgid "All customs URLs was reseted."
msgstr "Toutes les URL personnalisées ont été réinitialisées."
#: templates/admin/pages/tabs/custom-urls.php:37
msgid "Lang : "
msgstr "Langue"
#: templates/admin/pages/tabs/custom-urls.php:41
msgid "Base URL :"
msgstr "Base de l'URL :"
#: templates/admin/pages/tabs/custom-urls.php:44
msgid "Custom URL :"
msgstr "URL personnalisées :"
#: templates/admin/pages/tabs/custom-urls.php:101
msgid "Reset all Weglot custom URLs"
msgstr "Réinitialiser toutes les URLs personnalisées Weglot"
#: templates/admin/pages/tabs/custom-urls.php:105
msgid "No custom URL found."
msgstr "Aucune URL personnalisée trouvée."
#: templates/admin/pages/tabs/custom-urls.php:115
msgid "Are you sure to reset all custom URLs?"
msgstr "Êtes-vous sûr de réinitialiser toutes les URLs personnalisées?"
#: templates/admin/pages/tabs/appearance.php:12
msgid "Type of flags"
msgstr "Type de drapeaux"
#: templates/admin/pages/tabs/appearance.php:17
msgid "Is fullname"
msgstr "Nom complet"
#: templates/admin/pages/tabs/appearance.php:18
msgid ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
msgstr ""
"Cochez si vous voulez le nom du language. Sinon ce sera le code du language."
#: templates/admin/pages/tabs/appearance.php:22
msgid "With name"
msgstr "Avec le nom"
#: templates/admin/pages/tabs/appearance.php:23
msgid "Check if you want to display the name of languages."
msgstr "Cochez si vous souhaitez afficher le nom des langues."
#: templates/admin/pages/tabs/appearance.php:27
msgid "Is dropdown"
msgstr "Est une liste déroulante"
#: templates/admin/pages/tabs/appearance.php:28
msgid "Check if you want the button to be a dropdown box."
msgstr "Cochez si vous voulez que le bouton soit une liste déroulante."
#: templates/admin/pages/tabs/appearance.php:32
msgid "With flags"
msgstr "Avec les drapeaux"
#: templates/admin/pages/tabs/appearance.php:33
msgid "Check if you want flags in the language button."
msgstr ""
"Cochez si vous souhaitez avoir des drapeaux dans votre bouton de choix de "
"langue"
#: templates/admin/pages/tabs/appearance.php:37
msgid "Override CSS"
msgstr "Remplacer le CSS"
#: templates/admin/pages/tabs/appearance.php:38
msgid "Don't change it unless you want a specific style for your button."
msgstr "Ne changez rien sauf si vous voulez un style de bouton spécifique."
#: templates/admin/pages/tabs/appearance.php:51
msgid "Language button design"
msgstr "Design du bouton de langues"
#: templates/admin/pages/tabs/appearance.php:51
#: templates/admin/pages/tabs/appearance.php:279
msgid "(Optional)"
msgstr "(facultatif)"
#: templates/admin/pages/tabs/appearance.php:59
msgid "Button preview"
msgstr "Aperçu du bouton"
#: templates/admin/pages/tabs/appearance.php:115
msgid "Rectangle mat"
msgstr "Rectangle mat"
#: templates/admin/pages/tabs/appearance.php:122
msgid "Rectangle shiny"
msgstr "Rectangle brillant"
#: templates/admin/pages/tabs/appearance.php:129
msgid "Square"
msgstr "Carré"
#: templates/admin/pages/tabs/appearance.php:136
msgid "Circle"
msgstr "Cercle"
#: templates/admin/pages/tabs/appearance.php:139
msgid "Change country flags"
msgstr "Changer les drapeaux de pays"
#: templates/admin/pages/tabs/appearance.php:142
msgid "Choose English flag:"
msgstr "Choisissez le drapeau pour l'anglais :"
#: templates/admin/pages/tabs/appearance.php:143
msgid "United Kingdom (default)"
msgstr "Royaume-Uni (par défaut)"
#: templates/admin/pages/tabs/appearance.php:144
msgid "United States"
msgstr "Etats-Unis"
#: templates/admin/pages/tabs/appearance.php:145
msgid "Australia"
msgstr "Australie"
#: templates/admin/pages/tabs/appearance.php:146
#: templates/admin/pages/tabs/appearance.php:183
msgid "Canada"
msgstr "Canada"
#: templates/admin/pages/tabs/appearance.php:147
msgid "New Zealand"
msgstr "Nouvelle-Zélande"
#: templates/admin/pages/tabs/appearance.php:148
msgid "Jamaica"
msgstr "Jamaïque"
#: templates/admin/pages/tabs/appearance.php:149
msgid "Ireland"
msgstr "Irlande"
#: templates/admin/pages/tabs/appearance.php:152
msgid "Choose Spanish flag:"
msgstr "Choisissez le drapeau pour l'espagnol :"
#: templates/admin/pages/tabs/appearance.php:153
msgid "Spain (default)"
msgstr "Espagne (par défaut)"
#: templates/admin/pages/tabs/appearance.php:154
msgid "Mexico"
msgstr "Mexique"
#: templates/admin/pages/tabs/appearance.php:155
msgid "Argentina"
msgstr "Argentine"
#: templates/admin/pages/tabs/appearance.php:156
msgid "Colombia"
msgstr "Colombie"
#: templates/admin/pages/tabs/appearance.php:157
msgid "Peru"
msgstr "Pérou"
#: templates/admin/pages/tabs/appearance.php:158
msgid "Bolivia"
msgstr "Bolivie"
#: templates/admin/pages/tabs/appearance.php:159
msgid "Uruguay"
msgstr "Uruguay"
#: templates/admin/pages/tabs/appearance.php:160
msgid "Venezuela"
msgstr "Venezuela"
#: templates/admin/pages/tabs/appearance.php:161
msgid "Chile"
msgstr "Chili"
#: templates/admin/pages/tabs/appearance.php:162
msgid "Ecuador"
msgstr "Équateur"
#: templates/admin/pages/tabs/appearance.php:163
msgid "Guatemala"
msgstr "Guatemala"
#: templates/admin/pages/tabs/appearance.php:164
msgid "Cuba"
msgstr "Cuba"
#: templates/admin/pages/tabs/appearance.php:165
msgid "Dominican Republic"
msgstr "République Dominicaine"
#: templates/admin/pages/tabs/appearance.php:166
msgid "Honduras"
msgstr "Honduras"
#: templates/admin/pages/tabs/appearance.php:167
msgid "Paraguay"
msgstr "Paraguay"
#: templates/admin/pages/tabs/appearance.php:168
msgid "El Salvador"
msgstr "Salvador"
#: templates/admin/pages/tabs/appearance.php:169
msgid "Nicaragua"
msgstr "Nicaragua"
#: templates/admin/pages/tabs/appearance.php:170
msgid "Costa Rica"
msgstr "Costa Rica"
#: templates/admin/pages/tabs/appearance.php:171
msgid "Puerto Rico"
msgstr "Puerto Rico"
#: templates/admin/pages/tabs/appearance.php:172
msgid "Panama"
msgstr "Panama"
#: templates/admin/pages/tabs/appearance.php:175
msgid "Choose Portuguese flag:"
msgstr "Choisissez le drapeau pour le portugais :"
#: templates/admin/pages/tabs/appearance.php:176
msgid "Brazil (default)"
msgstr "Brésil (par défaut)"
#: templates/admin/pages/tabs/appearance.php:177
msgid "Portugal"
msgstr "Portugal"
#: templates/admin/pages/tabs/appearance.php:180
msgid "Choose French flag:"
msgstr "Choisissez le drapeau pour le français :"
#: templates/admin/pages/tabs/appearance.php:181
msgid "France (default)"
msgstr "France (par défaut)"
#: templates/admin/pages/tabs/appearance.php:182
msgid "Belgium"
msgstr "Belgique"
#: templates/admin/pages/tabs/appearance.php:184
msgid "Switzerland"
msgstr "Suisse"
#: templates/admin/pages/tabs/appearance.php:185
msgid "Luxemburg"
msgstr "Luxemburg"
#: templates/admin/pages/tabs/appearance.php:188
msgid "Choose Arabic flag:"
msgstr "Choisissez le drapeau pour l'arabe :"
#: templates/admin/pages/tabs/appearance.php:189
msgid "Saudi Arabia (default)"
msgstr "Arabie saoudite (par défaut)"
#: templates/admin/pages/tabs/appearance.php:190
msgid "Algeria"
msgstr "Algérie"
#: templates/admin/pages/tabs/appearance.php:191
msgid "Egypt"
msgstr "Egypte"
#: templates/admin/pages/tabs/appearance.php:192
msgid "Iraq"
msgstr "Irak"
#: templates/admin/pages/tabs/appearance.php:193
msgid "Jordan"
msgstr "Jordanie"
#: templates/admin/pages/tabs/appearance.php:194
msgid "Kuwait"
msgstr "Koweit"
#: templates/admin/pages/tabs/appearance.php:195
msgid "Lebanon"
msgstr "Liban"
#: templates/admin/pages/tabs/appearance.php:196
msgid "Libya"
msgstr "Libye"
#: templates/admin/pages/tabs/appearance.php:197
msgid "Morocco"
msgstr "Maroc"
#: templates/admin/pages/tabs/appearance.php:198
msgid "Oman"
msgstr "Oman"
#: templates/admin/pages/tabs/appearance.php:199
msgid "Qatar"
msgstr "Qatar"
#: templates/admin/pages/tabs/appearance.php:200
msgid "Syria"
msgstr "Syrie"
#: templates/admin/pages/tabs/appearance.php:201
msgid "Tunisia"
msgstr "Tunisie"
#: templates/admin/pages/tabs/appearance.php:202
msgid "United Arab Emirates"
msgstr "Emirats Arabes Unis"
#: templates/admin/pages/tabs/appearance.php:203
msgid "Yemen"
msgstr "Yémen"
#: templates/admin/pages/tabs/appearance.php:206
msgid "Choose Simplified Chinese flag:"
msgstr "Choisissez le drapeau pour le chinois :"
#: templates/admin/pages/tabs/appearance.php:207
msgid "Taiwan (default)"
msgstr "Taïwan (par défaut)"
#: templates/admin/pages/tabs/appearance.php:208
msgid "China"
msgstr "Chine"
#: templates/admin/pages/tabs/appearance.php:209
#: templates/admin/pages/tabs/appearance.php:215
msgid "Hong Kong"
msgstr "Hong Kong"
#: templates/admin/pages/tabs/appearance.php:212
msgid "Choose Traditional Chinese flag:"
msgstr "Choisissez le drapeau pour le chinois traditionnel :"
#: templates/admin/pages/tabs/appearance.php:213
msgid "China (default)"
msgstr "Chine (par défaut)"
#: templates/admin/pages/tabs/appearance.php:214
msgid "Taiwan"
msgstr "Taïwan"
#: templates/admin/pages/tabs/appearance.php:218
msgid "If you want to use a different flag, just ask us."
msgstr "Si vous souhaitez utiliser d'autres drapeaux, contactez-nous."
#: templates/admin/pages/tabs/appearance.php:279
msgid "Language button position"
msgstr "Position du bouton de langue"
#: templates/admin/pages/tabs/appearance.php:283
msgid ""
"Where will the language button be on my website? By default, bottom right."
msgstr ""
"Où sera le bouton de langue sur mon site ? Par défaut, en bas à droite."
#: templates/admin/pages/tabs/appearance.php:290
msgid "In menu (Weglot translate V1) ?"
msgstr "Dans le menu (Weglot translate V1) ?"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/appearance.php:305
msgid ""
"Warning, this feature will be depreciated. We strongly advise you to uncheck "
"the option and use and use the functionality: \"In menu\"."
msgstr ""
"Attention, cette fonctionnalité sera dépréciée. Nous vous conseillons "
"vivement de décocher l'option et d'utiliser et d'utiliser la fonctionnalité: "
"\"Dans le menu\"."
#: templates/admin/pages/tabs/appearance.php:313
msgid "In menu?"
msgstr "Dans le menu ?"
#: templates/admin/pages/tabs/appearance.php:315
#, php-format
msgid ""
"You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
"and drag and drop the Weglot Translate Custom link where you want."
msgstr ""
"Vous pouvez placer le bouton dans une zone de menu. Rendez-vous dans "
"%1$sApparence → Menus%2$s et faites glisser le lien personnalisé Weglot où "
"vous le souhaitez."
#: templates/admin/pages/tabs/appearance.php:319
msgid "As a widget?"
msgstr "Comme Widget ?"
#: templates/admin/pages/tabs/appearance.php:321
#, php-format
msgid ""
"You can place the button in a widget area. Go to %1$sAppearance → "
"Widgets%2$s and drag and drop the Weglot Translate widget where you want."
msgstr ""
"Vous pouvez placer le bouton dans une zone de widget. Rendez-vous dans "
"%1$sApparence → Widgets%2$s et faites glisser le widget Weglot où vous le "
"souhaitez."
#: templates/admin/pages/tabs/appearance.php:325
msgid "With a shortcode?"
msgstr "Avec un code court ?"
#: templates/admin/pages/tabs/appearance.php:327
msgid ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
msgstr ""
"Vous pouvez utiliser le shortcode Weglot [weglot_switcher] partout où vous "
"voulez placer le bouton."
#: templates/admin/pages/tabs/appearance.php:331
msgid "In the source code?"
msgstr "Dans le code sourcce ?"
#: templates/admin/pages/tabs/appearance.php:333
msgid ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
msgstr ""
"Vous pouvez ajouter le code &lt;div id=&quot;weglot_here&quot;&gt;&lt;"
"/div&gt; là où vous voulez dans le code source de votre page HTML. Le bouton "
"apparaîtra à cet endroit."
#. Description of the plugin/theme
msgid ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
msgstr ""
"Traduisez votre site Web en plusieurs langues en quelques minutes sans code. "
"Entièrement compatible SEO."
#. URI of the plugin
msgid "http://wordpress.org/plugins/weglot/"
msgstr "https://fr.wordpress.org/plugins/weglot/"
#. Author of the plugin
msgid "Weglot Translate team"
msgstr "L'équipe Weglot"
#. Author URI of the plugin
msgid "https://weglot.com/"
msgstr "https://weglot.com/fr/"

Binary file not shown.

View File

@@ -0,0 +1,894 @@
# Copyright (C) 2017 Remy B
# This file is distributed under the same license as the Weglot Translate package.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Derek Ashauer <derek@ashwebstudio.com>, 2017
# Alessandro Curci <hantarex@gmail.com>, 2017
# marco salvadori <marcosalvadori1965@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Weglot Translate 1.4.3\n"
"Report-Msgid-Bugs-To: https://wp-translations.pro/\n"
"POT-Creation-Date: 2020-04-27 15:55+0000\n"
"PO-Revision-Date: 2020-04-27 16:02+0000\n"
"Last-Translator: Weglot\n"
"Language-Team: Italian\n"
"Language: it_IT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
"esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Version: 2.3.3; wp-5.4"
#: weglot.php:164
#, php-format
msgid "%s Update Rollback"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:37
msgid "URL starts with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:39
msgid "URL ends with"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:41
msgid "URL contains substring"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:43
msgid "URL is exactly"
msgstr ""
#: src/helpers/class-helper-excluded-type.php:45
msgid "URL matches regex"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:33
msgid "Hide the current language"
msgstr ""
#: src/helpers/class-helper-menu-options-weglot.php:37
msgid "Show as dropdown (By default it's a list)"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:63
#: src/actions/admin/class-plugin-links-weglot.php:38
msgid "Settings"
msgstr "Proprietà"
#: src/helpers/class-helper-tabs-admin-weglot.php:67
#: templates/admin/pages/tabs/status.php:11
msgid "Status"
msgstr ""
#: src/helpers/class-helper-tabs-admin-weglot.php:71
#: templates/admin/pages/tabs/custom-urls.php:10
msgid "Custom URLs"
msgstr ""
#. Plugin Name of the plugin/theme
#: src/widgets/class-widget-selector-weglot.php:16
msgid "Weglot Translate"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:18
msgid "Display Weglot selector in widget"
msgstr ""
#: src/widgets/class-widget-selector-weglot.php:60
msgid "Title:"
msgstr "Titolo:"
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-configuration.php:16
#, php-format
msgid ""
"Weglot Translate is installed but not yet configured, you need to configure "
"Weglot here : %1$sWeglot configuration page%2$s. The configuration takes "
"only 1 minute! "
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/json-function.php:12
msgid ""
"Weglot Translate: You need to activate package php-json. If you need help, "
"please contact your host or just ask us directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/no-curl.php:12
msgid ""
"Weglot Translate: You need to activate cURL. If you need help, just ask us "
"directly at support@weglot.com."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/notices/rewrite-module.php:12
#, php-format
msgid ""
"Weglot Translate: You need to activate the mod_rewrite module. You can find "
"more information here : %1$sUsing Permalinks%2$s. If you need help, just ask "
"us directly at support@weglot.com."
msgstr ""
#. 1 is a plugin name, 2 is Weglot version, 3 is current php version.
#: templates/admin/notices/php-min.php:12
#, php-format
msgid ""
"%1$s requires PHP %2$s minimum, your website is actually running version "
"%3$s."
msgstr ""
#: templates/admin/notices/php-min.php:17
msgid ""
"If you are not able to upgrade, you can rollback to the previous version by "
"using the button below."
msgstr ""
#: templates/admin/notices/php-min.php:22
msgid "Re-install version 1.13.1"
msgstr ""
#: templates/admin/pages/settings.php:59
msgid "Love Weglot? Give us 5 stars on WordPress.org"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:64
#, php-format
msgid ""
"If you need any help, you can contact us via email us at %1$ssupport@weglot."
"com%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/settings.php:67
#, php-format
msgid "You can also check our %1$sFAQ%2$s."
msgstr ""
#: templates/admin/pages/settings.php:76
msgid "Where are my translations?"
msgstr ""
#: templates/admin/pages/settings.php:78
msgid "You can find all your translations in your Weglot account:"
msgstr ""
#: templates/admin/pages/settings.php:80
msgid "Edit my translations"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:13
msgid ""
"You must first create the page a first time before you can benefit from "
"custom URLs"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:54
msgid "Edit"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:56
msgid "Ok"
msgstr ""
#: templates/admin/metaboxes/url-translate.php:58
msgid "The permalink is not available."
msgstr ""
#: templates/admin/metaboxes/url-translate.php:60
msgid "Reset custom url"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:114
msgid "Weglot switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:129
msgid "Weglot Switcher"
msgstr ""
#: src/actions/admin/class-customize-menu-weglot.php:140
msgid "Add to menu"
msgstr ""
#: src/actions/admin/class-metabox-url-translate-weglot.php:223
msgid "Weglot URL Translate"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:72
msgid "Edit with visual editor"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:84
msgid "Weglot dashboard"
msgstr ""
#: src/actions/admin/class-pages-weglot.php:96
msgid "Plugin settings"
msgstr ""
#: src/actions/front/class-front-menu-weglot.php:112
msgid "Choose your language"
msgstr ""
#: templates/admin/pages/tabs/support.php:10
#: templates/admin/pages/tabs/advanced.php:51
msgid "[WooCommerce] : Prevent reload cart"
msgstr ""
#: templates/admin/pages/tabs/support.php:11
#: templates/admin/pages/tabs/advanced.php:52
msgid ""
"You should only enable this option if you have translation errors on your "
"cart widget."
msgstr ""
#: templates/admin/pages/tabs/support.php:18
msgid "Options for support"
msgstr ""
#: templates/admin/pages/tabs/settings.php:11
msgid "API Key"
msgstr "API Key"
#: templates/admin/pages/tabs/settings.php:12
#, php-format
msgid "Log in to %1$sWeglot%2$s to get your API key."
msgstr ""
#: templates/admin/pages/tabs/settings.php:16
msgid "Original language"
msgstr ""
#: templates/admin/pages/tabs/settings.php:21
msgid "Destination languages"
msgstr ""
#: templates/admin/pages/tabs/settings.php:22
#, php-format
msgid ""
"Choose languages you want to translate into. Supported languages can be "
"found %1$shere%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:34
msgid "Main configuration"
msgstr ""
#: templates/admin/pages/tabs/settings.php:57
msgid "If you don't have an account, you can create one in 20 seconds !"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:133
#, php-format
msgid ""
"On the free plan, you can choose one language and use a maximum of 2000 "
"words. If you need more, please %1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:140
#, php-format
msgid ""
"On the Starter plan, you can choose one language. If you need more, please "
"%1$supgrade your plan%2$s."
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/settings.php:147
#, php-format
msgid ""
"On the Business plan, you can choose 3 languages. If you need more, "
"please %1$supgrade your plan%2$s."
msgstr ""
#: templates/admin/pages/tabs/settings.php:162
msgid "Close"
msgstr "Chiuso"
#: templates/admin/pages/tabs/settings.php:163
msgid "Well done! Your website is now multilingual."
msgstr ""
#: templates/admin/pages/tabs/settings.php:164
msgid ""
"Go on your website, there is a language switcher bottom right. Try it :)"
msgstr ""
#: templates/admin/pages/tabs/settings.php:166
msgid "Go on my front page."
msgstr ""
#: templates/admin/pages/tabs/settings.php:168
msgid ""
"Next step, customize the language button as you want and manually edit your "
"translations directly in your Weglot account."
msgstr ""
#: templates/admin/pages/tabs/status.php:42
msgid "Home URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:46
msgid "Site URL"
msgstr ""
#: templates/admin/pages/tabs/status.php:50
msgid "Weglot version"
msgstr ""
#: templates/admin/pages/tabs/status.php:54
msgid "WordPress version"
msgstr ""
#: templates/admin/pages/tabs/status.php:58
msgid "Is multisite"
msgstr ""
#: templates/admin/pages/tabs/status.php:64
msgid "WordPress Debug mode"
msgstr ""
#: templates/admin/pages/tabs/status.php:72
msgid "Permalink Structure"
msgstr ""
#: templates/admin/pages/tabs/status.php:76
msgid "Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:85
msgid "Server environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:90
msgid "Server info"
msgstr ""
#: templates/admin/pages/tabs/status.php:94
msgid "PHP Version"
msgstr ""
#: templates/admin/pages/tabs/status.php:100
msgid "We need a minimum PHP version : 5.4."
msgstr ""
#: templates/admin/pages/tabs/status.php:106
msgid "Module mod_rewrite"
msgstr ""
#: templates/admin/pages/tabs/status.php:117
msgid "Weglot environment"
msgstr ""
#: templates/admin/pages/tabs/status.php:122
msgid "Original Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:126
msgid "Destination Language"
msgstr ""
#: templates/admin/pages/tabs/status.php:134
msgid "Exclude URLs"
msgstr ""
#: templates/admin/pages/tabs/status.php:146
msgid "Empty"
msgstr ""
#: templates/admin/pages/tabs/status.php:152
msgid "Exclude Blocks"
msgstr ""
#: templates/admin/pages/tabs/status.php:159
msgid "Custom URLS"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:16
msgid "Exclusion URL"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:17
msgid ""
"Add URL that you want to exclude from translations. You can use regular "
"expression to match multiple URLs. "
msgstr ""
#: templates/admin/pages/tabs/advanced.php:21
msgid "Exclusion Blocks"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:22
msgid ""
"Enter the CSS selector of blocks you don't want to translate (like a sidebar,"
" a menu, a paragraph etc..."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:26
msgid "Auto redirection"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:27
msgid "Check if you want to redirect users based on their browser language."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:31
msgid "Translate email"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:32
msgid "Check to translate all emails who use function wp_mail"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:36
msgid "Translate AMP"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:37
msgid "Translate AMP page"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:41
msgid "Search WordPress"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:42
msgid "Allow your users to search in the language they use."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:46
msgid "Private mode"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:47
msgid "Check if your only want admin users to see the translations"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:67
msgid "Translation Exclusion (Optional)"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:69
msgid ""
"By default, every page is translated. You can exclude parts of a page or a "
"full page here."
msgstr ""
#: templates/admin/pages/tabs/advanced.php:119
msgid "Add an URL to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:151
msgid "Add a block to exclude"
msgstr ""
#: templates/admin/pages/tabs/advanced.php:157
msgid "Other options (Optional)"
msgstr ""
#. 1 Local name language
#: templates/admin/pages/tabs/advanced.php:264
#, php-format
msgid "Make \"%s\" a private language"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:21
msgid "All customs URLs was reseted."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:37
msgid "Lang : "
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:41
msgid "Base URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:44
msgid "Custom URL :"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:101
msgid "Reset all Weglot custom URLs"
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:105
msgid "No custom URL found."
msgstr ""
#: templates/admin/pages/tabs/custom-urls.php:115
msgid "Are you sure to reset all custom URLs?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:12
msgid "Type of flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:17
msgid "Is fullname"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:18
msgid ""
"Check if you want the name of the language. Don't check if you want the "
"language code."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:22
msgid "With name"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:23
msgid "Check if you want to display the name of languages."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:27
msgid "Is dropdown"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:28
msgid "Check if you want the button to be a dropdown box."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:32
msgid "With flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:33
msgid "Check if you want flags in the language button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:37
msgid "Override CSS"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:38
msgid "Don't change it unless you want a specific style for your button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
msgid "Language button design"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:51
#: templates/admin/pages/tabs/appearance.php:266
msgid "(Optional)"
msgstr "(Opzionale)"
#: templates/admin/pages/tabs/appearance.php:59
msgid "Button preview"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:115
msgid "Rectangle mat"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:122
msgid "Rectangle shiny"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:129
msgid "Square"
msgstr "Quadrata"
#: templates/admin/pages/tabs/appearance.php:136
msgid "Circle"
msgstr "Cerchio"
#: templates/admin/pages/tabs/appearance.php:139
msgid "Change country flags"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:142
msgid "Choose English flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:143
msgid "United Kingdom (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:144
msgid "United States"
msgstr "United States"
#: templates/admin/pages/tabs/appearance.php:145
msgid "Australia"
msgstr "Australia"
#: templates/admin/pages/tabs/appearance.php:146
#: templates/admin/pages/tabs/appearance.php:183
msgid "Canada"
msgstr "Canada"
#: templates/admin/pages/tabs/appearance.php:147
msgid "New Zealand"
msgstr "New Zealand"
#: templates/admin/pages/tabs/appearance.php:148
msgid "Jamaica"
msgstr "Jamaica"
#: templates/admin/pages/tabs/appearance.php:149
msgid "Ireland"
msgstr "Irlanda"
#: templates/admin/pages/tabs/appearance.php:152
msgid "Choose Spanish flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:153
msgid "Spain (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:154
msgid "Mexico"
msgstr "Mexico"
#: templates/admin/pages/tabs/appearance.php:155
msgid "Argentina"
msgstr "Argentina"
#: templates/admin/pages/tabs/appearance.php:156
msgid "Colombia"
msgstr "Colombia"
#: templates/admin/pages/tabs/appearance.php:157
msgid "Peru"
msgstr "Peru"
#: templates/admin/pages/tabs/appearance.php:158
msgid "Bolivia"
msgstr "Bolivia"
#: templates/admin/pages/tabs/appearance.php:159
msgid "Uruguay"
msgstr "Uruguay"
#: templates/admin/pages/tabs/appearance.php:160
msgid "Venezuela"
msgstr "Venezuela"
#: templates/admin/pages/tabs/appearance.php:161
msgid "Chile"
msgstr "Chile"
#: templates/admin/pages/tabs/appearance.php:162
msgid "Ecuador"
msgstr "Ecuador"
#: templates/admin/pages/tabs/appearance.php:163
msgid "Guatemala"
msgstr "Guatemala"
#: templates/admin/pages/tabs/appearance.php:164
msgid "Cuba"
msgstr "Cuba"
#: templates/admin/pages/tabs/appearance.php:165
msgid "Dominican Republic"
msgstr "Dominican Republic"
#: templates/admin/pages/tabs/appearance.php:166
msgid "Honduras"
msgstr "Honduras"
#: templates/admin/pages/tabs/appearance.php:167
msgid "Paraguay"
msgstr "Paraguay"
#: templates/admin/pages/tabs/appearance.php:168
msgid "El Salvador"
msgstr "El Salvador"
#: templates/admin/pages/tabs/appearance.php:169
msgid "Nicaragua"
msgstr "Nicaragua"
#: templates/admin/pages/tabs/appearance.php:170
msgid "Costa Rica"
msgstr "Costa Rica"
#: templates/admin/pages/tabs/appearance.php:171
msgid "Puerto Rico"
msgstr "Puerto Rico"
#: templates/admin/pages/tabs/appearance.php:172
msgid "Panama"
msgstr "Panama"
#: templates/admin/pages/tabs/appearance.php:175
msgid "Choose Portuguese flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:176
msgid "Brazil (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:177
msgid "Portugal"
msgstr "Portugal"
#: templates/admin/pages/tabs/appearance.php:180
msgid "Choose French flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:181
msgid "France (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:182
msgid "Belgium"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:184
msgid "Switzerland"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:185
msgid "Luxemburg"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:188
msgid "Choose Arabic flag:"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:189
msgid "Saudi Arabia (default)"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:190
msgid "Algeria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:191
msgid "Egypt"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:192
msgid "Iraq"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:193
msgid "Jordan"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:194
msgid "Kuwait"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:195
msgid "Lebanon"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:196
msgid "Libya"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:197
msgid "Morocco"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:198
msgid "Oman"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:199
msgid "Qatar"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:200
msgid "Syria"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:201
msgid "Tunisia"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:202
msgid "United Arab Emirates"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:203
msgid "Yemen"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:205
msgid "If you want to use a different flag, just ask us."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:266
msgid "Language button position"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:270
msgid ""
"Where will the language button be on my website? By default, bottom right."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:277
msgid "In menu (Weglot translate V1) ?"
msgstr ""
#. 1 HTML Tag, 2 HTML Tag
#: templates/admin/pages/tabs/appearance.php:292
msgid ""
"Warning, this feature will be depreciated. We strongly advise you to uncheck "
"the option and use and use the functionality: \"In menu\"."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:300
msgid "In menu?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:302
#, php-format
msgid ""
"You can place the button in a menu area. Go to %1$sAppearance → Menus%2$s "
"and drag and drop the Weglot Translate Custom link where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:306
msgid "As a widget?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:308
#, php-format
msgid ""
"You can place the button in a widget area. Go to %1$sAppearance → "
"Widgets%2$s and drag and drop the Weglot Translate widget where you want."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:312
msgid "With a shortcode?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:314
msgid ""
"You can use the Weglot shortcode [weglot_switcher] wherever you want to "
"place the button."
msgstr ""
#: templates/admin/pages/tabs/appearance.php:318
msgid "In the source code?"
msgstr ""
#: templates/admin/pages/tabs/appearance.php:320
msgid ""
"You can add the code &lt;div id=&quot;weglot_here&quot;&gt;&lt;/div&gt; "
"wherever you want in the source code of your HTML page. The button will "
"appear at this place."
msgstr ""
#. Description of the plugin/theme
msgid ""
"Translate your website into multiple languages in minutes without doing any "
"coding. Fully SEO compatible."
msgstr ""
#. URI of the plugin
msgid "http://wordpress.org/plugins/weglot/"
msgstr ""
#. Author of the plugin
msgid "Weglot Translate team"
msgstr ""
#. Author URI of the plugin
msgid "https://weglot.com/"
msgstr ""

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More