From 48f313ea116301685df1e4d428a81c9ae02fb7ff Mon Sep 17 00:00:00 2001 From: AlexeyMatveev686 Date: Tue, 9 Aug 2022 20:24:01 +0300 Subject: [PATCH] Added translations for "version" and "languages" fields. --- store/scripts/code.js | 9 ++++++--- store/translations/cs-CZ.json | 6 ++++-- store/translations/de-De.json | 6 ++++-- store/translations/es-ES.json | 6 ++++-- store/translations/fr-FR.json | 6 ++++-- store/translations/ru-RU.json | 6 ++++-- 6 files changed, 26 insertions(+), 13 deletions(-) diff --git a/store/scripts/code.js b/store/scripts/code.js index 6f7c0737..78feb90d 100644 --- a/store/scripts/code.js +++ b/store/scripts/code.js @@ -388,6 +388,7 @@ function initElemnts() { elements.divScreen = document.getElementById("div_selected_image"); elements.divGitLink = document.getElementById('div_github_link'); elements.spanVersion = document.getElementById('span_ver'); + elements.divVersion = document.getElementById('div_version'); }; function toogleLoader(show, text) { @@ -615,12 +616,12 @@ function onClickItem() { bHasUpdate = true; } - if (installed.obj.version || plugin.version) { - document.getElementById('div_version').classList.remove('hidden'); + if ( (installed && installed.obj.version) || plugin.version ) { elements.spanVersion.innerText = installed.obj.version || plugin.version; + divVersion.classList.remove('hidden'); } else { elements.spanVersion.innerText = ''; - document.getElementById('div_version').classList.add('hidden'); + divVersion.classList.add('hidden'); } let pluginUrl = plugin.baseUrl.replace('https://onlyoffice.github.io/', 'https://github.com/ONLYOFFICE/onlyoffice.github.io/tree/master/'); @@ -842,6 +843,8 @@ function onTranslate() { document.getElementById('span_help').innerHTML = translate['Get help'] + ' '; document.getElementById('span_help_end').innerHTML = translate['with the plugin functionality on our forum.']; document.getElementById('span_create').innerHTML = translate['Create a new plugin using'] + ' '; + document.getElementById('span_ver_caption').innerHTML = translate['Version'] + ': '; + document.getElementById('span_langs_caption').innerHTML = translate['Languages'] + ': '; showMarketplace(); }; diff --git a/store/translations/cs-CZ.json b/store/translations/cs-CZ.json index 6121f2ff..38285864 100644 --- a/store/translations/cs-CZ.json +++ b/store/translations/cs-CZ.json @@ -21,6 +21,8 @@ "Installation": "Instalace", "Updating": "Aktualizace", "Removal": "Odstranění", - "Problem with loading plugins." : "Problém s načítáním pluginů.", - "No installed plugins." : "Žádné nainstalované pluginy." + "Problem with loading plugins.": "Problém s načítáním pluginů.", + "No installed plugins.": "Žádné nainstalované pluginy.", + "Version": "Verze", + "Languages": "Jazyk" } \ No newline at end of file diff --git a/store/translations/de-De.json b/store/translations/de-De.json index 5efb4948..e019e02d 100644 --- a/store/translations/de-De.json +++ b/store/translations/de-De.json @@ -21,6 +21,8 @@ "Installation": "Installation", "Updating": "Aktualisieren", "Removal": "Entfernung", - "Problem with loading plugins." : "Problem beim Laden von Plugins.", - "No installed plugins." : "Keine installierten Plugins." + "Problem with loading plugins.": "Problem beim Laden von Plugins.", + "No installed plugins.": "Keine installierten Plugins.", + "Version": "Version", + "Languages": "Sprache" } \ No newline at end of file diff --git a/store/translations/es-ES.json b/store/translations/es-ES.json index 04187b9f..d1363440 100644 --- a/store/translations/es-ES.json +++ b/store/translations/es-ES.json @@ -21,6 +21,8 @@ "Installation": "Instalación", "Updating": "Actualizar", "Removal": "Eliminación", - "Problem with loading plugins." : "Problema con la carga de plugins.", - "No installed plugins." : "Sin plugins instalados" + "Problem with loading plugins.": "Problema con la carga de plugins.", + "No installed plugins.": "Sin plugins instalados", + "Version": "Versión", + "Languages": "Idioma" } \ No newline at end of file diff --git a/store/translations/fr-FR.json b/store/translations/fr-FR.json index 496a6a8b..2eb0f8f1 100644 --- a/store/translations/fr-FR.json +++ b/store/translations/fr-FR.json @@ -21,6 +21,8 @@ "Installation": "Installation", "Updating": "Mettre", "Removal": "Suppression", - "Problem with loading plugins." : "Problème de chargement des plugins.", - "No installed plugins." : "Pas de plugins installés." + "Problem with loading plugins.": "Problème de chargement des plugins.", + "No installed plugins.": "Pas de plugins installés.", + "Version": "Version", + "Languages": "Langue" } \ No newline at end of file diff --git a/store/translations/ru-RU.json b/store/translations/ru-RU.json index 97265ec4..7f16d1e5 100644 --- a/store/translations/ru-RU.json +++ b/store/translations/ru-RU.json @@ -21,6 +21,8 @@ "Installation": "Установка", "Updating": "Обновление", "Removal": "Удаление", - "Problem with loading plugins." : "Проблемы с загрузкой плагинов.", - "No installed plugins." : "Нет установленных плагинов." + "Problem with loading plugins.": "Проблемы с загрузкой плагинов.", + "No installed plugins.": "Нет установленных плагинов.", + "Version": "Версия", + "Languages": "Языки" } \ No newline at end of file