mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,7 +6,8 @@ The plugin is pre-installed in ONLYOFFICE Workspace (Enterprise and Community Ed
|
||||
|
||||
## Important
|
||||
|
||||
Easybib will no longer issue an access key to its API and will close support after 5/31/2021.
|
||||
~~Easybib will no longer issue an access key to its API and will close support after 5/31/2021.~~
|
||||
**The EasyBib plugin is no longer functional due to the discontinued support of the API.**
|
||||
|
||||
*Citation:*
|
||||
>Please be advised advised that the EasyBib Public Citation API will no longer be available after 5/31/2021.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -21,6 +21,7 @@
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
|
||||
<script src="vendor/jquery-v2.2.2-min.js"></script>
|
||||
<script src="scripts/minifill.min.js"></script>
|
||||
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
|
||||
@ -104,12 +104,14 @@ ace.config.loadModule('ace/ext/tern', function () {
|
||||
});
|
||||
});
|
||||
|
||||
ace.config.loadModule('ace/ext/language_tools', function () {
|
||||
editor.setOptions({
|
||||
enableBasicAutocompletion: false,
|
||||
enableLiveAutocompletion: true
|
||||
if (!window.isIE) {
|
||||
ace.config.loadModule('ace/ext/language_tools', function () {
|
||||
editor.setOptions({
|
||||
enableBasicAutocompletion: false,
|
||||
enableLiveAutocompletion: true
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
|
||||
editor.setOptions({
|
||||
|
||||
Binary file not shown.
@ -8,3 +8,8 @@
|
||||
|
||||
* Use TesserectJS v4
|
||||
* IE11 support has been discontinued
|
||||
|
||||
## 2.0.1
|
||||
|
||||
* Fix problem with styles for language select.
|
||||
* Add sorting for languages in alphabetical order.
|
||||
@ -9,7 +9,7 @@
|
||||
"si": "OCR"
|
||||
},
|
||||
"guid": "asc.{440EBF13-9B19-4BD8-8621-05200E58140B}",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
|
||||
"variations": [
|
||||
{
|
||||
|
||||
Binary file not shown.
@ -60,9 +60,8 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#lang-select[disabled],
|
||||
#lang-select.disabled {
|
||||
opacity: 0.65;
|
||||
.select2-container--default.select2-container--disabled{
|
||||
opacity: 0.65 !important
|
||||
}
|
||||
|
||||
</style>
|
||||
@ -80,67 +79,67 @@
|
||||
<div class="noselect" style="margin-right: 22px">
|
||||
<label class="defaultlable" id="label2">Choose language</label>
|
||||
<select name = 'lang_combo' disabled class="noselect" id='lang-select' style="width: 125px">
|
||||
<option value = 'eng'>English</option>
|
||||
<option value = 'chi_sim'>Chinese</option>
|
||||
<option value = 'rus'>Russian</option>
|
||||
<option value = 'meme'>Meme</option>
|
||||
<option value = 'tha'>Thai</option>
|
||||
<option value = 'deu'>German</option>
|
||||
<option value = 'jpn'>Japanese</option>
|
||||
<option value = 'spa'>Spanish</option>
|
||||
<option value = 'fra'>French</option>
|
||||
<option value = 'por'>Portuguese</option>
|
||||
<option value = 'ita'>Italian</option>
|
||||
<option value = 'pol'>Polish</option>
|
||||
<option value = 'tur'>Turkish</option>
|
||||
<option value = 'nld'>Dutch</option>
|
||||
<option value = 'ara'>Arabic</option>
|
||||
<option value = 'ces'>Czech</option>
|
||||
<option value = 'kor'>Korean</option>
|
||||
<option value = 'swe'>Swedish</option>
|
||||
<option value = 'vie'>Vietnamese</option>
|
||||
<option value = 'ron'>Romanian</option>
|
||||
<option value = 'ell'>Greek</option>
|
||||
<option value = 'ind'>Indonesian</option>
|
||||
<option value = 'hun'>Hungarian</option>
|
||||
<option value = 'dan'>Danish</option>
|
||||
<option value = 'bul'>Bulgarian</option>
|
||||
<option value = 'fin'>Finnish</option>
|
||||
<option value = 'nor'>Norwegian</option>
|
||||
<option value = 'ukr'>Ukrainian</option>
|
||||
<option value = 'cat'>Catalan</option>
|
||||
<option value = 'hrv'>Croatian</option>
|
||||
<option value = 'heb'>Hebrew</option>
|
||||
<option value = 'lit'>Lithuanian</option>
|
||||
<option value = 'slv'>Slovenian</option>
|
||||
<option value = 'hin'>Hindi</option>
|
||||
<option value = 'ben'>Bengali</option>
|
||||
<option value = 'tel'>Telugu</option>
|
||||
<option value = 'tam'>Tamil</option>
|
||||
<option value = 'kan'>Kannada</option>
|
||||
<option value = 'mal'>Malayalam</option>
|
||||
<option value = 'tgl'>Tagalog</option>
|
||||
<option value = 'swa'>Swahili</option>
|
||||
<option value = 'aze'>Azerbaijani</option>
|
||||
<option value = 'bel'>Belarusian</option>
|
||||
<option value = 'afr'>Afrikaans</option>
|
||||
<option value = 'sqi'>Albanian</option>
|
||||
<option value = 'grc'>Ancient Greek</option>
|
||||
<option value = 'ara'>Arabic</option>
|
||||
<option value = 'aze'>Azerbaijani</option>
|
||||
<option value = 'eus'>Basque</option>
|
||||
<option value = 'bel'>Belarusian</option>
|
||||
<option value = 'ben'>Bengali</option>
|
||||
<option value = 'bul'>Bulgarian</option>
|
||||
<option value = 'cat'>Catalan</option>
|
||||
<option value = 'chr'>Cherokee</option>
|
||||
<option value = 'chi_sim'>Chinese</option>
|
||||
<option value = 'hrv'>Croatian</option>
|
||||
<option value = 'ces'>Czech</option>
|
||||
<option value = 'dan'>Danish</option>
|
||||
<option value = 'nld'>Dutch</option>
|
||||
<option value = 'eng' selected>English</option>
|
||||
<option value = 'enm'>English (Old)</option>
|
||||
<option value = 'epo'>Esperanto</option>
|
||||
<option value = 'est'>Estonian</option>
|
||||
<option value = 'fin'>Finnish</option>
|
||||
<option value = 'frk'>Frankish</option>
|
||||
<option value = 'fra'>French</option>
|
||||
<option value = 'glg'>Galician</option>
|
||||
<option value = 'deu'>German</option>
|
||||
<option value = 'ell'>Greek</option>
|
||||
<option value = 'heb'>Hebrew</option>
|
||||
<option value = 'hin'>Hindi</option>
|
||||
<option value = 'hun'>Hungarian</option>
|
||||
<option value = 'isl'>Icelandic</option>
|
||||
<option value = 'ind'>Indonesian</option>
|
||||
<option value = 'ita'>Italian</option>
|
||||
<option value = 'jpn'>Japanese</option>
|
||||
<option value = 'kan'>Kannada</option>
|
||||
<option value = 'kor'>Korean</option>
|
||||
<option value = 'lav'>Latvian</option>
|
||||
<option value = 'lit'>Lithuanian</option>
|
||||
<option value = 'mkd'>Macedonian</option>
|
||||
<option value = 'msa'>Malay</option>
|
||||
<option value = 'mal'>Malayalam</option>
|
||||
<option value = 'mlt'>Maltese</option>
|
||||
<option value = 'grc'>Ancient Greek</option>
|
||||
<option value = 'chr'>Cherokee</option>
|
||||
<option value = 'enm'>English (Old)</option>
|
||||
<option value = 'frk'>Frankish</option>
|
||||
<option value = 'equ'>Math</option>
|
||||
<option value = 'meme'>Meme</option>
|
||||
<option value = 'nor'>Norwegian</option>
|
||||
<option value = 'pol'>Polish</option>
|
||||
<option value = 'por'>Portuguese</option>
|
||||
<option value = 'ron'>Romanian</option>
|
||||
<option value = 'rus'>Russian</option>
|
||||
<option value = 'srp'>Serbian (Latin)</option>
|
||||
<option value = 'slk'>Slovak</option>
|
||||
<option value = 'slv'>Slovenian</option>
|
||||
<option value = 'spa'>Spanish</option>
|
||||
<option value = 'swa'>Swahili</option>
|
||||
<option value = 'swe'>Swedish</option>
|
||||
<option value = 'tgl'>Tagalog</option>
|
||||
<option value = 'tam'>Tamil</option>
|
||||
<option value = 'tel'>Telugu</option>
|
||||
<option value = 'tha'>Thai</option>
|
||||
<option value = 'tur'>Turkish</option>
|
||||
<option value = 'ukr'>Ukrainian</option>
|
||||
<option value = 'vie'>Vietnamese</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="noselect">
|
||||
|
||||
@ -17,69 +17,6 @@
|
||||
*/
|
||||
(function(window, undefined){
|
||||
|
||||
var oLangMap = {};
|
||||
oLangMap['eng'] = "English";
|
||||
oLangMap['chi_sim'] = "Chinese";
|
||||
oLangMap['rus'] = "Russian";
|
||||
oLangMap['meme'] = "Meme";
|
||||
oLangMap['tha'] = "Thai";
|
||||
oLangMap['deu'] = "German";
|
||||
oLangMap['jpn'] = "Japanese";
|
||||
oLangMap['spa'] = "Spanish";
|
||||
oLangMap['fra'] = "French";
|
||||
oLangMap['por'] = "Portuguese";
|
||||
oLangMap['ita'] = "Italian";
|
||||
oLangMap['pol'] = "Polish";
|
||||
oLangMap['tur'] = "Turkish";
|
||||
oLangMap['nld'] = "Dutch";
|
||||
oLangMap['ara'] = "Arabic";
|
||||
oLangMap['ces'] = "Czech";
|
||||
oLangMap['kor'] = "Korean";
|
||||
oLangMap['swe'] = "Swedish";
|
||||
oLangMap['vie'] = "Vietnamese";
|
||||
oLangMap['ron'] = "Romanian";
|
||||
oLangMap['ell'] = "Greek";
|
||||
oLangMap['ind'] = "Indonesian";
|
||||
oLangMap['hun'] = "Hungarian";
|
||||
oLangMap['dan'] = "Danish";
|
||||
oLangMap['bul'] = "Bulgarian";
|
||||
oLangMap['fin'] = "Finnish";
|
||||
oLangMap['nor'] = "Norwegian";
|
||||
oLangMap['ukr'] = "Ukrainian";
|
||||
oLangMap['cat'] = "Catalan";
|
||||
oLangMap['hrv'] = "Croatian";
|
||||
oLangMap['heb'] = "Hebrew";
|
||||
oLangMap['lit'] = "Lithuanian";
|
||||
oLangMap['slv'] = "Slovenian";
|
||||
oLangMap['hin'] = "Hindi";
|
||||
oLangMap['ben'] = "Bengali";
|
||||
oLangMap['tel'] = "Telugu";
|
||||
oLangMap['tam'] = "Tamil";
|
||||
oLangMap['kan'] = "Kannada";
|
||||
oLangMap['mal'] = "Malayalam";
|
||||
oLangMap['tgl'] = "Tagalog";
|
||||
oLangMap['swa'] = "Swahili";
|
||||
oLangMap['aze'] = "Azerbaijani";
|
||||
oLangMap['bel'] = "Belarusian";
|
||||
oLangMap['afr'] = "Afrikaans";
|
||||
oLangMap['sqi'] = "Albanian";
|
||||
oLangMap['eus'] = "Basque";
|
||||
oLangMap['epo'] = "Esperanto";
|
||||
oLangMap['est'] = "Estonian";
|
||||
oLangMap['glg'] = "Galician";
|
||||
oLangMap['isl'] = "Icelandic";
|
||||
oLangMap['lav'] = "Latvian";
|
||||
oLangMap['mkd'] = "Macedonian";
|
||||
oLangMap['msa'] = "Malay";
|
||||
oLangMap['mlt'] = "Maltese";
|
||||
oLangMap['grc'] = "Ancient Greek";
|
||||
oLangMap['chr'] = "Cherokee";
|
||||
oLangMap['enm'] = "English (Old)";
|
||||
oLangMap['frk'] = "Frankish";
|
||||
oLangMap['equ'] = "Math";
|
||||
oLangMap['srp'] = "Serbian (Latin)";
|
||||
oLangMap['slk'] = "Slovak";
|
||||
|
||||
window.oncontextmenu = function(e)
|
||||
{
|
||||
if (e.preventDefault)
|
||||
@ -100,9 +37,6 @@
|
||||
var arrParsedData = [];
|
||||
|
||||
window.Asc.plugin.init = function(){
|
||||
$('#lang-select').select2({
|
||||
minimumResultsForSearch: Infinity
|
||||
});
|
||||
this.resizeWindow(592, 100, 592, 100, 592, 100);
|
||||
var nStartFilesCount = 0, arrImages;
|
||||
$( window ).resize(function(){
|
||||
@ -402,6 +336,12 @@
|
||||
}
|
||||
};
|
||||
|
||||
function initSelect() {
|
||||
$('#lang-select').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
sorter: function(data){ return data.sort(function(a, b){ return a.text.localeCompare(b.text)})}
|
||||
});
|
||||
};
|
||||
|
||||
window.Asc.plugin.onTranslate = function(){
|
||||
var elem = document.getElementById("label1");
|
||||
@ -420,16 +360,13 @@
|
||||
if (elem){
|
||||
elem.innerHTML = window.Asc.plugin.tr("Recognize");
|
||||
}
|
||||
elem = document.getElementById("lang-select");
|
||||
if(elem){
|
||||
var sInnerHtml = "";
|
||||
for(var key in oLangMap){
|
||||
if(oLangMap.hasOwnProperty(key)){
|
||||
sInnerHtml += "<option value = \'" + key + "'>" + window.Asc.plugin.tr(oLangMap[key]) + "</option>";
|
||||
}
|
||||
var arrOptions = document.getElementsByTagName('option');
|
||||
if(arrOptions.length){
|
||||
for (let i = 0; i < arrOptions.length; i++){
|
||||
arrOptions[i].text = window.Asc.plugin.tr(arrOptions[i].text)
|
||||
}
|
||||
elem.innerHTML = sInnerHtml;
|
||||
}
|
||||
initSelect();
|
||||
};
|
||||
|
||||
})(window, undefined);
|
||||
@ -45,7 +45,7 @@
|
||||
"Swahili": "Суахили",
|
||||
"Azerbaijani": "Азербайджанский",
|
||||
"Belarusian": "Белорусский",
|
||||
"Afrikaans": "Африкаанс",
|
||||
"Afrikaans": "Африканский",
|
||||
"Albanian": "Албанский",
|
||||
"Basque": "Баскский",
|
||||
"Esperanto": "Эсперанто",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -11,7 +11,8 @@
|
||||
"fr": "Trouvez et insérez des images gratuites dans vos documents via Pixabay.",
|
||||
"es": "Encuentra e inserta imágenes gratuitas en tus documentos a través de Pixabay.",
|
||||
"de": "Suchen und fügen Sie kostenlose Bilder über Pixabay in Ihre Dokumente ein.",
|
||||
"cs": "Najděte a vložte obrázky zdarma do svých dokumentů prostřednictvím Pixabay."
|
||||
"cs": "Najděte a vložte obrázky zdarma do svých dokumentů prostřednictvím Pixabay.",
|
||||
"pt-BR": "Encontre e insira imagens gratuitas em seus documentos via Pixabay."
|
||||
},
|
||||
"url": "index.html",
|
||||
|
||||
|
||||
Binary file not shown.
@ -3,5 +3,6 @@
|
||||
"de-DE",
|
||||
"es-ES",
|
||||
"fr-FR",
|
||||
"ru-RU"
|
||||
"ru-RU",
|
||||
"pt-BR"
|
||||
]
|
||||
73
sdkjs-plugins/content/pixabay/translations/pt-BR.json
Normal file
73
sdkjs-plugins/content/pixabay/translations/pt-BR.json
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"Search" : "Procurar",
|
||||
"Save" : "Salvar",
|
||||
"Enter search phrase" : "Insira a frase de pesquisa",
|
||||
"Language" : "Linguagem",
|
||||
"Hide settings" : "Ocultar configurações",
|
||||
"Show settings" : "Mostrar configurações",
|
||||
"Image type" : "Tipo de imagem",
|
||||
"All" : "Todos",
|
||||
"Photo" : "Foto",
|
||||
"Illustration" : "Ilustração",
|
||||
"Vector" : "Vetor",
|
||||
"Orientation" : "Orientação",
|
||||
"Vertical" : "Vertical",
|
||||
"Horizontal" : "Horizontal",
|
||||
"Category" : "Categoria",
|
||||
"API key" : "Chave API",
|
||||
"To use Pixabay, create Pixabay account, then copy the API key and insert it in the specified field." : "Para usar o Pixabay , crie uma conta Pixabay , copie a chave API e insira-a no campo especificado.",
|
||||
"Learn more here." : "Saiba mais aqui.",
|
||||
"Enter your Pixabay API key" : "Insira sua chave API Pixabay",
|
||||
"API key is empty!" : "A chave API está vazia!",
|
||||
"No results." : "Nenhum resultado.",
|
||||
"Invalid API key!" : "Chave de API inválida!",
|
||||
"Loading..." : "Carregando...",
|
||||
"Czech" : "Tcheco",
|
||||
"Danish" : "Dinamarquês",
|
||||
"German" : "Alemão",
|
||||
"English" : "Inglês",
|
||||
"Spanish" : "Espanhol",
|
||||
"French" : "Francês",
|
||||
"Indonesian" : "Indonésio",
|
||||
"Italian" : "Italiano",
|
||||
"Hungarian" : "Húngaro",
|
||||
"Dutch" : "Holandês ",
|
||||
"Norwegian" : "Norueguês",
|
||||
"Polish" : "Polonês",
|
||||
"Portuguese" : "Português",
|
||||
"Romanian" : "Romena",
|
||||
"Slovak" : "Eslovaco",
|
||||
"Finnish" : "Finlandês",
|
||||
"Swedish" : "Sueco",
|
||||
"Turkish" : "Turco",
|
||||
"Vietnamese" : "Vietnamita",
|
||||
"Thai" : "Tailandês",
|
||||
"Bulgarian" : "Búlgaro",
|
||||
"Russian" : "Russo",
|
||||
"Greek" : "Grego",
|
||||
"Japanese" : "Japonês",
|
||||
"Korean" : "Coreano",
|
||||
"Chinese" : "Chinês",
|
||||
"Backgrounds" : "Fundos",
|
||||
"Fashion" : "Moda",
|
||||
"Nature" : "Natureza",
|
||||
"Science" : "Ciência",
|
||||
"Education" : "Educação",
|
||||
"Feelings" : "Sentimentos",
|
||||
"Health" : "Saúde",
|
||||
"People" : "Pessoas",
|
||||
"Religion" : "Religião",
|
||||
"Places" : "Lugares",
|
||||
"Animals" : "Animais",
|
||||
"Industry" : "Indústria",
|
||||
"Computer" : "Computador",
|
||||
"Food" : "Comida",
|
||||
"Sports" : "Esportes",
|
||||
"Transportation" : "Transporte",
|
||||
"Travel" : "Viagem",
|
||||
"Buildings" : "Edifícios",
|
||||
"Business" : "Negócios",
|
||||
"Music" : "Música",
|
||||
"This plugin use:" : "Este plugin usa:",
|
||||
"is a website for sharing photos, illustrations, vector graphics." : "é um site para compartilhamento de fotos, ilustrações e gráficos vetoriais."
|
||||
}
|
||||
@ -8,14 +8,14 @@
|
||||
"Image type" : "Тип изображения",
|
||||
"All" : "Все",
|
||||
"Photo" : "Фото",
|
||||
"Illustration" : "Исслюстрация",
|
||||
"Illustration" : "Иллюстрация",
|
||||
"Vector" : "Вектор",
|
||||
"Orientation" : "Ориентация",
|
||||
"Vertical" : "Вертикальная",
|
||||
"Horizontal" : "Горизонтальная",
|
||||
"Category" : "Категория",
|
||||
"API key" : "API ключ",
|
||||
"To use Pixabay, create Pixabay account, then copy the API key and insert it in the specified field." : "Чтобы использовать Pixabay, создайте Pixabay аккаунт, затем скопируйте API ключ и вставьте его в специальное поле.",
|
||||
"To use Pixabay, create Pixabay account, then copy the API key and insert it in the specified field." : "Чтобы использовать Pixabay, создайте аккаунт Pixabay, затем скопируйте API ключ и вставьте его в специальное поле.",
|
||||
"Learn more here." : "Узнайте больше здесь.",
|
||||
"Enter your Pixabay API key" : "Введите ваш Pixabay API ключ",
|
||||
"API key is empty!" : "API ключ пустой!",
|
||||
@ -27,7 +27,7 @@
|
||||
"German" : "Немецкий",
|
||||
"English" : "Английский",
|
||||
"Spanish" : "Испанский",
|
||||
"French" : "Французкий",
|
||||
"French" : "Французский",
|
||||
"Indonesian" : "Индонезийский",
|
||||
"Italian" : "Итальянский",
|
||||
"Hungarian" : "Венгерский",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,13 @@
|
||||
{
|
||||
{
|
||||
"Start dictation": "Iniciar ditado",
|
||||
"Speak now": "Fale agora"
|
||||
"Speak now": "Fale agora",
|
||||
"This plugin doesn't work in Desktop Editors.": "Web Speech API não é compatível com este navegador. Abra-o no navegador Google Chrome.",
|
||||
"This plugin doesn't work into this browser.": "Este plugin não funciona neste navegador.",
|
||||
"Web Speech API is not supported by this browser. Please open it in Google Chrome browser.": "Web Speech API não é compatível com este navegador. Abra-o no navegador Google Chrome.",
|
||||
"Error with connection to recognition service of this browser, please use the Chrome browser.": "Erro ao conectar ao serviço de reconhecimento deste navegador, use o navegador Chrome.",
|
||||
"No speech was detected. You may need to adjust your microphone settings.": "Nenhuma fala foi detectada. Talvez seja necessário ajustar as configurações do microfone.",
|
||||
"No microphone was found. Ensure that a microphone is installed and that microphone settings are configured correctly.": "Nenhum microfone foi encontrado. Certifique-se de que um microfone esteja instalado e que as configurações do microfone estejam configuradas corretamente.",
|
||||
"Permission to use microphone is blocked. To change, go to chrome://settings/content/microphone": "A permissão para usar o microfone está bloqueada. Para alterar, vá para chrome://settings/content/microphone",
|
||||
"Permission to use microphone was denied.": "A permissão para usar o microfone foi negada.",
|
||||
"Web Speech API is not supported by this browser. Upgrade to Chrome version 25 or later.": "Web Speech API não é compatível com este navegador. Atualize para o Chrome versão 25 ou posterior."
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -43,4 +43,8 @@
|
||||
|
||||
## 1.0.7
|
||||
|
||||
* Add new language for translations.
|
||||
* Add new language for translations.
|
||||
|
||||
## 1.0.8
|
||||
|
||||
* Add logs and notification if we have problem with manually plugins intalling.
|
||||
@ -9,7 +9,6 @@
|
||||
{ "name": "wordpress", "discussion": "228" },
|
||||
{ "name": "autocomplete", "discussion": "229" },
|
||||
{ "name": "drawio", "discussion": "230" },
|
||||
{ "name": "easybib", "discussion": "231" },
|
||||
{ "name": "highlightcode", "discussion": "232" },
|
||||
{ "name": "html", "discussion": "233" },
|
||||
{ "name": "jitsi", "discussion": "234" },
|
||||
|
||||
@ -22,4 +22,8 @@
|
||||
|
||||
## 1.0.4
|
||||
|
||||
* Change developer window (add warnign - bug 66451).
|
||||
* Change developer window (add warnign - bug 66451).
|
||||
|
||||
## 1.0.5
|
||||
|
||||
* Fix problem into desktop with deletting manually installed plugins.
|
||||
@ -13,7 +13,7 @@
|
||||
"pt-BR": "Gerenciador de plug-ins"
|
||||
},
|
||||
"guid" : "asc.{AA2EA9B6-9EC2-415F-9762-634EE8D9A95E}",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"group" : {
|
||||
"name" : "Plugin Manager",
|
||||
"rank" : 1
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
let loaderTimeout = null;
|
||||
|
||||
// create iframe
|
||||
const iframe = document.createElement("iframe");
|
||||
const iframe = document.createElement('iframe');
|
||||
|
||||
let warningWindow = null;
|
||||
let developerWindow = null;
|
||||
@ -53,7 +53,7 @@
|
||||
};
|
||||
|
||||
function postMessage(message) {
|
||||
iframe.contentWindow.postMessage(JSON.stringify(message), "*");
|
||||
iframe.contentWindow.postMessage(JSON.stringify(message), '*');
|
||||
};
|
||||
|
||||
function initPlugin() {
|
||||
@ -62,7 +62,7 @@
|
||||
document.getElementById('notification').classList.remove('hidden');
|
||||
|
||||
// send message that plugin is ready
|
||||
window.Asc.plugin.executeMethod("GetVersion", null, function(version) {
|
||||
window.Asc.plugin.executeMethod('GetVersion', null, function(version) {
|
||||
editorVersion = version;
|
||||
BPluginReady = true;
|
||||
if (BFrameReady)
|
||||
@ -88,7 +88,7 @@
|
||||
};
|
||||
|
||||
window.Asc.plugin.button = function(id, windowID) {
|
||||
if (warningWindow && windowID) {
|
||||
if (warningWindow && warningWindow.id == windowID) {
|
||||
switch (id) {
|
||||
case 0:
|
||||
removePlugin(false);
|
||||
@ -101,7 +101,7 @@
|
||||
break;
|
||||
}
|
||||
window.Asc.plugin.executeMethod('CloseWindow', [windowID]);
|
||||
} else if (developerWindow && windowID) {
|
||||
} else if (developerWindow && developerWindow.id == windowID) {
|
||||
if (id == 0)
|
||||
developerWindow.command('onClickBtn');
|
||||
else
|
||||
@ -117,7 +117,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("message", function(message) {
|
||||
window.addEventListener('message', function(message) {
|
||||
// getting messages from marketplace
|
||||
let data = JSON.parse(message.data);
|
||||
|
||||
@ -126,12 +126,12 @@
|
||||
// данное сообщение используется только при инициализации плагина и по умолчанию идёт парсинг и отрисовка плагинов из стора
|
||||
// добавлен флаг updateInstalled - в этом случае не загружаем плагины из стора повторно, работаем только с установленными
|
||||
|
||||
window.Asc.plugin.executeMethod("GetInstalledPlugins", null, function(result) {
|
||||
window.Asc.plugin.executeMethod('GetInstalledPlugins', null, function(result) {
|
||||
postMessage({ type: 'InstalledPlugins', data: result, updateInstalled: data.updateInstalled } );
|
||||
});
|
||||
break;
|
||||
case 'install':
|
||||
window.Asc.plugin.executeMethod("InstallPlugin", [data.config, data.guid], function(result) {
|
||||
window.Asc.plugin.executeMethod('InstallPlugin', [data.config, data.guid], function(result) {
|
||||
postMessage(result);
|
||||
});
|
||||
break;
|
||||
@ -142,10 +142,10 @@
|
||||
else if ( !data.backup )
|
||||
removePlugin(data.backup);
|
||||
else
|
||||
createWindow();
|
||||
createWindow('warning');
|
||||
break;
|
||||
case 'update':
|
||||
window.Asc.plugin.executeMethod("UpdatePlugin", [data.config, data.guid], function(result) {
|
||||
window.Asc.plugin.executeMethod('UpdatePlugin', [data.config, data.guid], function(result) {
|
||||
postMessage(result);
|
||||
});
|
||||
break;
|
||||
@ -231,7 +231,7 @@
|
||||
};
|
||||
|
||||
function createWindow(type) {
|
||||
let fileName = 'warning.html';
|
||||
let fileName = type + '.html';
|
||||
let description = window.Asc.plugin.tr('Warning');
|
||||
let size = [350, 100];
|
||||
let buttons = [
|
||||
@ -259,7 +259,7 @@
|
||||
}
|
||||
];
|
||||
}
|
||||
let location = window.location;
|
||||
let location = window.location;
|
||||
let start = location.pathname.lastIndexOf('/') + 1;
|
||||
let file = location.pathname.substring(start);
|
||||
|
||||
@ -282,7 +282,7 @@
|
||||
} else {
|
||||
if (!developerWindow) {
|
||||
developerWindow = new window.Asc.PluginWindow();
|
||||
developerWindow.attachEvent("onWindowMessage", function(message) {
|
||||
developerWindow.attachEvent('onWindowMessage', function(message) {
|
||||
if (message.type == 'SetURL') {
|
||||
if (message.url.length) {
|
||||
marketplaceURl = message.url;
|
||||
@ -322,7 +322,7 @@
|
||||
};
|
||||
|
||||
function createLoader() {
|
||||
$('#loader-container').removeClass( "hidden" );
|
||||
$('#loader-container').removeClass( 'hidden' );
|
||||
loader && (loader.remove ? loader.remove() : $('#loader-container')[0].removeChild(loader));
|
||||
loader = showLoader($('#loader-container')[0], window.Asc.plugin.tr('Checking internet connection...'));
|
||||
};
|
||||
@ -330,7 +330,7 @@
|
||||
function destroyLoader() {
|
||||
clearTimeout(loaderTimeout);
|
||||
loaderTimeout = null;
|
||||
$('#loader-container').addClass( "hidden" )
|
||||
$('#loader-container').addClass( 'hidden' )
|
||||
loader && (loader.remove ? loader.remove() : $('#loader-container')[0].removeChild(loader));
|
||||
loader = undefined;
|
||||
};
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
const version = '1.0.7'; // version of store (will change it when update something in store)
|
||||
const version = '1.0.8'; // version of store (will change it when update something in store)
|
||||
let start = Date.now();
|
||||
const isLocal = ( (window.AscDesktopEditor !== undefined) && (window.location.protocol.indexOf('file') !== -1) ); // desktop detecting
|
||||
let isPluginLoading = false; // flag plugins loading
|
||||
@ -408,7 +408,7 @@ function fetchAllPlugins(bFirstRender, bshowMarketplace) {
|
||||
getAllPluginsData(bFirstRender, bshowMarketplace);
|
||||
},
|
||||
function(err) {
|
||||
createError( new Error( getTranslated( 'Problem with loading markeplace config.' ) ) );
|
||||
createError( new Error('Problem with loading markeplace config.') );
|
||||
isPluginLoading = false;
|
||||
showMarketplace();
|
||||
}
|
||||
@ -659,7 +659,7 @@ function getDiscussion(config) {
|
||||
if (!discussionCount)
|
||||
showRating();
|
||||
}, function(err) {
|
||||
createError('Problem with loading rating', true);
|
||||
createError( new Error('Problem with loading rating'), true);
|
||||
discussionCount--;
|
||||
if (!discussionCount)
|
||||
showRating();
|
||||
@ -1239,7 +1239,8 @@ function createError(err, bDontShow) {
|
||||
background.className = 'asc-plugin-loader';
|
||||
let span = document.createElement('span');
|
||||
span.className = 'error_caption';
|
||||
span.innerHTML = err.message || getTranslated('Problem with loading some resources');
|
||||
let message = err.message || 'Problem with loading some resources';
|
||||
span.innerHTML = getTranslated(message);
|
||||
background.appendChild(span);
|
||||
divErr.appendChild(background);
|
||||
divErr.classList.remove('hidden');
|
||||
@ -1361,7 +1362,7 @@ function getTranslation() {
|
||||
onTranslate();
|
||||
},
|
||||
function(err) {
|
||||
createError( new Error( getTranslated( 'Cannot load translation for current language.' ) ) );
|
||||
createError( new Error('Cannot load translation for current language.') );
|
||||
isTranslationLoading = false;
|
||||
showMarketplace();
|
||||
}
|
||||
@ -1372,7 +1373,7 @@ function getTranslation() {
|
||||
}
|
||||
},
|
||||
function(err) {
|
||||
createError( new Error( getTranslated( 'Cannot load translations list file.' ) ) );
|
||||
createError( new Error('Cannot load translations list file.') );
|
||||
isTranslationLoading = false;
|
||||
showMarketplace();
|
||||
}
|
||||
@ -1628,6 +1629,8 @@ function installPluginManually() {
|
||||
if (result) {
|
||||
// нужно обновить список установленных плагинов
|
||||
sendMessage({ type: 'getInstalled', updateInstalled: true }, '*');
|
||||
} else {
|
||||
createError(new Error('Problem with plugin installation.'), false);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problém se sítí.",
|
||||
"Problem with loading some resources" : "Problém s načítáním některých zdrojů",
|
||||
"Click to rate" : "Klikněte pro ohodnocení",
|
||||
"No disscussion page for this plugin." : "Žádná diskusní stránka pro tento plugin."
|
||||
"No disscussion page for this plugin." : "Žádná diskusní stránka pro tento plugin.",
|
||||
"Problem with plugin installation." : "Problém s instalací pluginu."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Netzwerkprobleme.",
|
||||
"Problem with loading some resources" : "Problem beim Laden einiger Ressourcen",
|
||||
"Click to rate" : "Klicken Sie, um zu bewerten",
|
||||
"No disscussion page for this plugin." : "Keine Diskussionsseite für dieses Plugin."
|
||||
"No disscussion page for this plugin." : "Keine Diskussionsseite für dieses Plugin.",
|
||||
"Problem with plugin installation." : "Problem mit der Plugin-Installation."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problema de red.",
|
||||
"Problem with loading some resources" : "Problema al cargar algunos recursos",
|
||||
"Click to rate" : "Haga clic para calificar",
|
||||
"No disscussion page for this plugin." : "No hay página de discusión para este complemento."
|
||||
"No disscussion page for this plugin." : "No hay página de discusión para este complemento.",
|
||||
"Problem with plugin installation." : "Problema con la instalación del plugin."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problème de réseau.",
|
||||
"Problem with loading some resources" : "Problème de chargement de certaines ressources",
|
||||
"Click to rate" : "Cliquez pour évaluer",
|
||||
"No disscussion page for this plugin." : "Pas de page de discussion pour ce plugin."
|
||||
"No disscussion page for this plugin." : "Pas de page de discussion pour ce plugin.",
|
||||
"Problem with plugin installation." : "Problème avec l'installation du plugin."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problema di rete.",
|
||||
"Problem with loading some resources" : "Problema con il caricamento di alcune risorse",
|
||||
"Click to rate" : "Fai clic per votare",
|
||||
"No disscussion page for this plugin." : "Nessuna pagina di discussione per questo plugin."
|
||||
"No disscussion page for this plugin." : "Nessuna pagina di discussione per questo plugin.",
|
||||
"Problem with plugin installation." : "Problema con l'installazione del plugin."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "ネットワークの問題。",
|
||||
"Problem with loading some resources" : "リソースの読み込みに関する問題",
|
||||
"Click to rate" : "クリックで評価",
|
||||
"No disscussion page for this plugin." : "このプラグインのディスカッションページはありません。"
|
||||
"No disscussion page for this plugin." : "このプラグインのディスカッションページはありません。",
|
||||
"Problem with plugin installation." : "プラグインのインストールに問題があります。"
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problema de rede.",
|
||||
"Problem with loading some resources" : "Problema ao carregar alguns recursos",
|
||||
"Click to rate" : "Clique para avaliar",
|
||||
"No disscussion page for this plugin." : "Nenhuma página de discussão para este plugin."
|
||||
"No disscussion page for this plugin." : "Nenhuma página de discussão para este plugin.",
|
||||
"Problem with plugin installation." : "Problema com a instalação do plugin."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Problema de rede.",
|
||||
"Problem with loading some resources" : "Problema com o carregamento de alguns recursos",
|
||||
"Click to rate" : "Clique para avaliar",
|
||||
"No disscussion page for this plugin." : "Nenhuma página de discussão para este plugin."
|
||||
"No disscussion page for this plugin." : "Nenhuma página de discussão para este plugin.",
|
||||
"Problem with plugin installation." : "Problema com a instalação do plugin."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "Проблемы с сетью.",
|
||||
"Problem with loading some resources" : "Проблема с загрузкой некоторых ресурсов",
|
||||
"Click to rate" : "Нажмите, чтобы оценить",
|
||||
"No disscussion page for this plugin." : "Нет страницы дискуссии для этого плагина."
|
||||
"No disscussion page for this plugin." : "Нет страницы дискуссии для этого плагина.",
|
||||
"Problem with plugin installation." : "Проблемы с установкой плагина."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "ජාලයේ දෝෂයකි.",
|
||||
"Problem with loading some resources" : "ඇතැම් සම්පත් පූරණයට අසමත් විය",
|
||||
"Click to rate" : "ඇගැයීමට ඔබන්න",
|
||||
"No disscussion page for this plugin." : "මෙම පේනුව පිළිබඳව සාකච්ඡා නැත."
|
||||
"No disscussion page for this plugin." : "මෙම පේනුව පිළිබඳව සාකච්ඡා නැත.",
|
||||
"Problem with plugin installation." : "ප්ලගින ස්ථාපනය කිරීමේ ගැටළුව."
|
||||
}
|
||||
@ -60,5 +60,6 @@
|
||||
"Network problem." : "Проблема з мережею.",
|
||||
"Problem with loading some resources" : "Проблема із завантаженням деяких ресурсів",
|
||||
"Click to rate" : "Натисніть, щоб оцінити",
|
||||
"No disscussion page for this plugin." : "Для цього плагіна немає сторінки обговорення."
|
||||
"No disscussion page for this plugin." : "Для цього плагіна немає сторінки обговорення.",
|
||||
"Problem with plugin installation." : "Проблема з установкою плагіна."
|
||||
}
|
||||
@ -59,5 +59,6 @@
|
||||
"Network problem." : "网络问题。",
|
||||
"Problem with loading some resources" : "加载某些资源时出现问题",
|
||||
"Click to rate" : "点击评分",
|
||||
"No disscussion page for this plugin." : "该插件没有讨论页面。"
|
||||
"No disscussion page for this plugin." : "该插件没有讨论页面。",
|
||||
"Problem with plugin installation." : "插件安装的问题。"
|
||||
}
|
||||
Reference in New Issue
Block a user