diff options
-rw-r--r-- | CHANGELOG.md | 8 | ||||
-rw-r--r-- | appinfo/info.xml | 9 | ||||
m--------- | assets | 0 | ||||
-rw-r--r-- | controller/editorapicontroller.php | 10 | ||||
-rw-r--r-- | l10n/bg.js | 2 | ||||
-rw-r--r-- | l10n/bg.json | 168 | ||||
-rw-r--r-- | l10n/de.js | 2 | ||||
-rw-r--r-- | l10n/de.json | 2 | ||||
-rw-r--r-- | l10n/de_DE.js | 2 | ||||
-rw-r--r-- | l10n/de_DE.json | 2 | ||||
-rw-r--r-- | l10n/es.js | 2 | ||||
-rw-r--r-- | l10n/es.json | 2 | ||||
-rw-r--r-- | l10n/fr.js | 2 | ||||
-rw-r--r-- | l10n/fr.json | 2 | ||||
-rw-r--r-- | l10n/it.js | 2 | ||||
-rw-r--r-- | l10n/it.json | 2 | ||||
-rw-r--r-- | l10n/ja.js | 2 | ||||
-rw-r--r-- | l10n/ja.json | 2 | ||||
-rw-r--r-- | l10n/pl.js | 2 | ||||
-rw-r--r-- | l10n/pl.json | 2 | ||||
-rw-r--r-- | l10n/pt_BR.js | 2 | ||||
-rw-r--r-- | l10n/pt_BR.json | 2 | ||||
-rw-r--r-- | l10n/ru.js | 2 | ||||
-rw-r--r-- | l10n/ru.json | 2 | ||||
-rw-r--r-- | l10n/sv.js | 2 | ||||
-rw-r--r-- | l10n/sv.json | 2 | ||||
-rw-r--r-- | l10n/zh_CN.js | 2 | ||||
-rw-r--r-- | l10n/zh_CN.json | 2 | ||||
-rw-r--r-- | lib/Migration/MimeRepair.php | 112 | ||||
-rw-r--r-- | lib/documentservice.php | 4 | ||||
-rw-r--r-- | lib/templatemanager.php | 2 |
31 files changed, 132 insertions, 227 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 71da3ce..ce22134 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 7.3.4 +## Added +- Turkish and Galician empty file templates + +## Changed +- Nextcloud v21 is no longer supported +- compatible with Nextcloud 24 + ## 7.3.2 ## Changed - Nextcloud v20 is no longer supported diff --git a/appinfo/info.xml b/appinfo/info.xml index 469e879..26a4479 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -6,7 +6,7 @@ <description>ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within Nextcloud using ONLYOFFICE Docs. This will create a new Edit in ONLYOFFICE action within the document library for Office documents. This allows multiple users to co-author documents in real time from the familiar web interface and save the changes back to your file storage.</description> <licence>apache</licence> <author mail="dev@onlyoffice.com" homepage="https://www.onlyoffice.com/">Ascensio System SIA</author> - <version>7.3.2</version> + <version>7.3.4</version> <namespace>Onlyoffice</namespace> <types> <prevent_group_restriction/> @@ -29,7 +29,7 @@ <screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-nextcloud/master/screenshots/new.png</screenshot> <screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-nextcloud/master/screenshots/open.png</screenshot> <dependencies> - <nextcloud min-version="21" max-version="23"/> + <nextcloud min-version="22" max-version="24"/> </dependencies> <settings> <admin>OCA\Onlyoffice\AdminSettings</admin> @@ -38,9 +38,4 @@ <commands> <command>OCA\Onlyoffice\Command\DocumentServer</command> </commands> - <repair-steps> - <post-migration> - <step>OCA\Onlyoffice\Migration\MimeRepair</step> - </post-migration> - </repair-steps> </info> diff --git a/assets b/assets -Subproject 9cc2c926af7542b026cbb89357d5fd901f2d0cf +Subproject 01a35499a3cfb4013d990100e119a7f47f02616 diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php index 7ed5323..1703e03 100644 --- a/controller/editorapicontroller.php +++ b/controller/editorapicontroller.php @@ -310,7 +310,15 @@ class EditorApiController extends OCSController { try { $lockService = \OC::$server->get(LockService::class); $lock = $lockService->getLockFromFileId($file->getId()); - $lockOwner = $lock->getUserId(); + + $lockOwner = null; + if (method_exists($lock, "getUserId")) { + $lockOwner = $lock->getUserId(); + } + else if(method_exists($lock, "getOwner")) { + $lockOwner = $lock->getOwner(); + } + if ($userId !== $lockOwner) { $isTempLock = true; $this->logger->debug("File" . $file->getId() . "is locked by $lockOwner", ["app" => $this->appName]); @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Неуспешно изпращане на известие", "Notification sent successfully": "Успешно изпратено известие", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s, споменат във %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} споменат във {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} Ви спомена във {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Изберете формат за конвертиране {fileName}", "New form template": "Нов шаблон на формуляр", "Blank": "Празно", diff --git a/l10n/bg.json b/l10n/bg.json index 8466fa4..d3c038a 100644 --- a/l10n/bg.json +++ b/l10n/bg.json @@ -1,82 +1,82 @@ -{ "translations": { - "Access denied" : "Отказан достъп", - "Invalid request" : "Неправилна заявка", - "Files not found" : "Файловете не са намерени", - "File not found" : "Файлът не открит", - "Not permitted" : "Операцията не е разрешена", - "Download failed" : "Грешка при изтегляне", - "The required folder was not found" : "Папката не е намерена", - "You don't have enough permission to create" : "Нямате права за създаване", - "Template not found" : "Шаблона не е намерен", - "Can't create file" : "Файла не може да бъде създаден", - "Format is not supported" : "Форматът не се поддържа", - "Conversion is not required" : "Не е необходимо конвертиране", - "Failed to download converted file" : "Грешка при изтегляне на конверирания файл", - "ONLYOFFICE app is not configured. Please contact admin" : "Приложението ONLYOFFICE не конфигурирано. Моля, свържете се с администратора", - "FileId is empty" : "Полето е празно", - "You do not have enough permissions to view the file" : "Нямате достатъчно права за преглед на файла", - "Error occurred in the document service" : "Възникна грешка в услугата за документи", - "Not supported version" : "Неподдържана версия", - "ONLYOFFICE cannot be reached. Please contact admin" : "Приложението ONLYOFFICE не е достъпно. Моля, свържете се с администратора", - "Loading, please wait." : "Зареждане. Моля, изчакайте.", - "File created" : "Файлът е създаден", - "Open in ONLYOFFICE" : "Отвори в ONLYOFFICE", - "Convert with ONLYOFFICE" : "Конвертирай с ONLYOFFICE", - "New document" : "Нов документ", - "New spreadsheet" : "Нова електронна таблица", - "New presentation" : "Нова презентация", - "Error when trying to connect" : "Грешка при опит за свързване", - "Settings have been successfully updated" : "Настройките са успешно обновени", - "Server can't read xml" : "Невъзможно прочитане на xml файла на сървъра", - "Bad Response. Errors: " : "Неправилен отговор. Грешки:", - "Documentation" : "Документация", - "ONLYOFFICE Docs Location specifies the address of the server with the document services installed. Please change the '<documentserver>' for the server address in the below line." : "Адреса на ONLYOFFICE Docs определя адреса на сървъра с инсталирани услуги за документи. Моля, променете '<documentserver>' адреса на сървъра в долния ред.", - "ONLYOFFICE Docs address" : "Адрес на ONLYOFFICE Docs", - "Advanced server settings" : "Допълнителни настройки на сървъра", - "ONLYOFFICE Docs address for internal requests from the server" : "Адрес на ONLYOFFICE Docs за вътрешни заявки към сървъра", - "Server address for internal requests from ONLYOFFICE Docs" : "Адрес на сървъра за вътрешни заявки на ONLYOFFICE Docs", - "Secret key (leave blank to disable)" : "Секретен ключ (оставете празно за забрана)", - "Open file in the same tab" : "Отваряне на файла в същия прозорец", - "The default application for opening the format" : "Приложение по подразбиране за отваряне на следните формати", - "Open the file for editing (due to format restrictions, the data might be lost when saving to the formats from the list below)" : "Отваряне на файла за редактиране (според ограниченята на формата данните могат да бъдат загубени при запис във формати от списъка по-долу)", - "View details" : "Виж детайли", - "Save" : "Запази", - "Mixed Active Content is not allowed. HTTPS address for ONLYOFFICE Docs is required." : "Смесеното активно съдържание е недопустимо. За ONLYOFFICE Docs е необходимо използването на HTTPS-адрес.", - "Restrict access to editors to following groups" : "Разреши достъп до редакторите само за тези групи", - "Server settings" : "Настройки на сървъра", - "Common settings" : "Общи настройки", - "Editor customization settings" : "Персонализиращи настройки на редактора", - "The customization section allows personalizing the editor interface" : "Разделът за персонализация позволява персонализиране на редакторския интерфейс", - "Display Chat menu button" : "Бутон за показване на Чат", - "Display the header more compact" : "По-компактно показване на заглавната част", - "Display Feedback & Support menu button" : "Показване на бутоните за Обратна връзка и Поддръжка", - "Display Help menu button" : "Показване на бутон за меню Помощ", - "Display monochrome toolbar header" : "Показване на монохромна заглавна лента с инструменти", - "Save as" : "Запази като", - "File saved" : "Файлът е запазен", - "Insert image" : "Вмъкване на изображение", - "Select recipients" : "Изберете получатели", - "Connect to demo ONLYOFFICE Docs server" : "Свързване с демо ONLYOFFICE Docs сървър", - "This is a public test server, please do not use it for private sensitive data. The server will be available during a 30-day period." : "Това е обществен тестов сървър, моля, не използвайте за чувствителни частни данни. Сървърът ще е на разположение по време на 30-дневния период.", - "The 30-day test period is over, you can no longer connect to demo ONLYOFFICE Docs server." : "30-дневният тестов период приключи, вече не можете да се свържете с демо ONLYOFFICE Docs сървър.", - "You are using public demo ONLYOFFICE Docs server. Please do not store private sensitive data." : "Използвате обществения демо ONLYOFFICE Docs сървър. Моля, не съхранявайте чувствителни частни данни на него.", - "Secure view settings" : "Настройки за защитен изглед", - "Secure view enables you to secure documents by embedding a watermark" : "Защитеният изглед активира вашите защитени документи, като вгражда в тях воден знак", - "Enable watermarking" : "Активиране на воден знак", - "Watermark text" : "Текст на водния знак", - "DO NOT SHARE THIS" : "НЕ СПОДЕЛЯЙТЕ ТОВА", - "Show watermark on tagged files" : "Показване на водния знак на маркираните файлове", - "Show watermark for users of groups" : "Показване на водния знак за потребителите на групи", - "Supported placeholders" : "Поддържани заместители", - "Show watermark for all shares" : "Показване на водния знак за всички споделяния", - "Show watermark for read only shares" : "Показване на водния знак за споделяния само за четене", - "Link shares" : "Споделяния на линкове", - "Show watermark for all link shares" : "Показване на водния знак за всички споделяния на линкове", - "Show watermark for download hidden shares" : "Показване на водния знак за изтеглени скрити споделяния", - "Show watermark for read only link shares" : "Показване на водния знак за споделяния на линкове само за четене", - "Show watermark on link shares with specific system tags" : "Показване на водния знак за споделяния на линкове със специални системни маркировки", - "Select tag" : "Изберете етикет", - "Select file to compare" : "Изберете файл за сравнение", +{ "translations": { + "Access denied": "Отказан достъп", + "Invalid request": "Неправилна заявка", + "Files not found": "Файловете не са намерени", + "File not found": "Файлът не открит", + "Not permitted": "Операцията не е разрешена", + "Download failed": "Грешка при изтегляне", + "The required folder was not found": "Папката не е намерена", + "You don't have enough permission to create": "Нямате права за създаване", + "Template not found": "Шаблона не е намерен", + "Can't create file": "Файла не може да бъде създаден", + "Format is not supported": "Форматът не се поддържа", + "Conversion is not required": "Не е необходимо конвертиране", + "Failed to download converted file": "Грешка при изтегляне на конверирания файл", + "ONLYOFFICE app is not configured. Please contact admin": "Приложението ONLYOFFICE не конфигурирано. Моля, свържете се с администратора", + "FileId is empty": "Полето е празно", + "You do not have enough permissions to view the file": "Нямате достатъчно права за преглед на файла", + "Error occurred in the document service": "Възникна грешка в услугата за документи", + "Not supported version": "Неподдържана версия", + "ONLYOFFICE cannot be reached. Please contact admin": "Приложението ONLYOFFICE не е достъпно. Моля, свържете се с администратора", + "Loading, please wait.": "Зареждане. Моля, изчакайте.", + "File created": "Файлът е създаден", + "Open in ONLYOFFICE": "Отвори в ONLYOFFICE", + "Convert with ONLYOFFICE": "Конвертирай с ONLYOFFICE", + "New document": "Нов документ", + "New spreadsheet": "Нова електронна таблица", + "New presentation": "Нова презентация", + "Error when trying to connect": "Грешка при опит за свързване", + "Settings have been successfully updated": "Настройките са успешно обновени", + "Server can't read xml": "Невъзможно прочитане на xml файла на сървъра", + "Bad Response. Errors: ": "Неправилен отговор. Грешки:", + "Documentation": "Документация", + "ONLYOFFICE Docs Location specifies the address of the server with the document services installed. Please change the '<documentserver>' for the server address in the below line.": "Адреса на ONLYOFFICE Docs определя адреса на сървъра с инсталирани услуги за документи. Моля, променете '<documentserver>' адреса на сървъра в долния ред.", + "ONLYOFFICE Docs address": "Адрес на ONLYOFFICE Docs", + "Advanced server settings": "Допълнителни настройки на сървъра", + "ONLYOFFICE Docs address for internal requests from the server": "Адрес на ONLYOFFICE Docs за вътрешни заявки към сървъра", + "Server address for internal requests from ONLYOFFICE Docs": "Адрес на сървъра за вътрешни заявки на ONLYOFFICE Docs", + "Secret key (leave blank to disable)": "Секретен ключ (оставете празно за забрана)", + "Open file in the same tab": "Отваряне на файла в същия прозорец", + "The default application for opening the format": "Приложение по подразбиране за отваряне на следните формати", + "Open the file for editing (due to format restrictions, the data might be lost when saving to the formats from the list below)": "Отваряне на файла за редактиране (според ограниченята на формата данните могат да бъдат загубени при запис във формати от списъка по-долу)", + "View details": "Виж детайли", + "Save": "Запази", + "Mixed Active Content is not allowed. HTTPS address for ONLYOFFICE Docs is required.": "Смесеното активно съдържание е недопустимо. За ONLYOFFICE Docs е необходимо използването на HTTPS-адрес.", + "Restrict access to editors to following groups": "Разреши достъп до редакторите само за тези групи", + "Server settings": "Настройки на сървъра", + "Common settings": "Общи настройки", + "Editor customization settings": "Персонализиращи настройки на редактора", + "The customization section allows personalizing the editor interface": "Разделът за персонализация позволява персонализиране на редакторския интерфейс", + "Display Chat menu button": "Бутон за показване на Чат", + "Display the header more compact": "По-компактно показване на заглавната част", + "Display Feedback & Support menu button": "Показване на бутоните за Обратна връзка и Поддръжка", + "Display Help menu button": "Показване на бутон за меню Помощ", + "Display monochrome toolbar header": "Показване на монохромна заглавна лента с инструменти", + "Save as": "Запази като", + "File saved": "Файлът е запазен", + "Insert image": "Вмъкване на изображение", + "Select recipients": "Изберете получатели", + "Connect to demo ONLYOFFICE Docs server": "Свързване с демо ONLYOFFICE Docs сървър", + "This is a public test server, please do not use it for private sensitive data. The server will be available during a 30-day period.": "Това е обществен тестов сървър, моля, не използвайте за чувствителни частни данни. Сървърът ще е на разположение по време на 30-дневния период.", + "The 30-day test period is over, you can no longer connect to demo ONLYOFFICE Docs server.": "30-дневният тестов период приключи, вече не можете да се свържете с демо ONLYOFFICE Docs сървър.", + "You are using public demo ONLYOFFICE Docs server. Please do not store private sensitive data.": "Използвате обществения демо ONLYOFFICE Docs сървър. Моля, не съхранявайте чувствителни частни данни на него.", + "Secure view settings": "Настройки за защитен изглед", + "Secure view enables you to secure documents by embedding a watermark": "Защитеният изглед активира вашите защитени документи, като вгражда в тях воден знак", + "Enable watermarking": "Активиране на воден знак", + "Watermark text": "Текст на водния знак", + "DO NOT SHARE THIS": "НЕ СПОДЕЛЯЙТЕ ТОВА", + "Show watermark on tagged files": "Показване на водния знак на маркираните файлове", + "Show watermark for users of groups": "Показване на водния знак за потребителите на групи", + "Supported placeholders": "Поддържани заместители", + "Show watermark for all shares": "Показване на водния знак за всички споделяния", + "Show watermark for read only shares": "Показване на водния знак за споделяния само за четене", + "Link shares": "Споделяния на линкове", + "Show watermark for all link shares": "Показване на водния знак за всички споделяния на линкове", + "Show watermark for download hidden shares": "Показване на водния знак за изтеглени скрити споделяния", + "Show watermark for read only link shares": "Показване на водния знак за споделяния на линкове само за четене", + "Show watermark on link shares with specific system tags": "Показване на водния знак за споделяния на линкове със специални системни маркировки", + "Select tag": "Изберете етикет", + "Select file to compare": "Изберете файл за сравнение", "Review mode for viewing": "Режим на преглед за преглеждане", "Markup": "Маркиране", "Final": "Последни", @@ -88,10 +88,10 @@ "Keep metadata for each version once the document is edited (it will take up disk space)": "Запазете метаданните за всяка версия, щом документът бъде редактиран (ще заеме дисково пространство)", "All history successfully deleted": "Цялата история е успешно изтрита", "Create": "Създай", - "Select template" : "Избор на шаблон", - "Invalid file provided" : "Предоставен е невалиден файл", + "Select template": "Избор на шаблон", + "Invalid file provided": "Предоставен е невалиден файл", "Empty": "Празно", - "Error" : "Грешка", + "Error": "Грешка", "Add a new template": "Добавяне на шаблон", "Template already exists": "Шаблонът вече съществува", "Template must be in OOXML format": "Шаблонът трябва да е във формат OOXML", @@ -106,7 +106,7 @@ "Failed to send notification": "Неуспешно изпращане на известие", "Notification sent successfully": "Успешно изпратено известие", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s, споменат във %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier}, споменат във {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} Ви спомена във {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Изберете формат за конвертиране {fileName}", "New form template": "Нов шаблон на формуляр", "Blank": "Празно", @@ -115,5 +115,5 @@ "Create form": "Създайте формуляр", "Fill in form in ONLYOFFICE": "Попълнете формуляр в ONLYOFFICE", "Please update ONLYOFFICE Docs to version 7.0 to work on fillable forms online": "Молим да актуализирате ONLYOFFICE Docs към версия 7.0, за да работи с онлайн формуляри за попълване" -},"pluralForm" :"nplurals=2; plural=(n != 1);" +},"pluralForm": "nplurals=2; plural=(n != 1);" }
\ No newline at end of file @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Fehler beim Senden einer Benachrichtigung", "Notification sent successfully": "Benachrichtigung erfolgreich gesendet", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s hat in %2\$s erwähnt: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} hat in {file} erwähnt: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} hat dich in {file} erwähnt: \"%1\$s\".", "Choose a format to convert {fileName}": "Wählen Sie das Format für {fileName} aus", "New form template": "Neue Formularvorlage", "Blank": "Leer", diff --git a/l10n/de.json b/l10n/de.json index d1285a8..6b01cac 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -106,7 +106,7 @@ "Failed to send notification": "Fehler beim Senden einer Benachrichtigung", "Notification sent successfully": "Benachrichtigung erfolgreich gesendet", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s hat in %2$s erwähnt: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} hat in {file} erwähnt: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} hat dich in {file} erwähnt: \"%1$s\".", "Choose a format to convert {fileName}": "Wählen Sie das Format für {fileName} aus", "New form template": "Neue Formularvorlage", "Blank": "Leer", diff --git a/l10n/de_DE.js b/l10n/de_DE.js index e3e68ee..03354fb 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Fehler beim Senden einer Benachrichtigung", "Notification sent successfully": "Benachrichtigung erfolgreich gesendet", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s hat in %2\$s erwähnt: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} hat in {file} erwähnt: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} hat dich in {file} erwähnt: \"%1\$s\".", "Choose a format to convert {fileName}": "Wählen Sie das Format für {fileName} aus", "New form template": "Neue Formularvorlage", "Blank": "Leer", diff --git a/l10n/de_DE.json b/l10n/de_DE.json index a22b9cc..41f8cf5 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -106,7 +106,7 @@ "Failed to send notification": "Fehler beim Senden einer Benachrichtigung", "Notification sent successfully": "Benachrichtigung erfolgreich gesendet", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s hat in %2$s erwähnt: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} hat in {file} erwähnt: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} hat dich in {file} erwähnt: \"%1$s\".", "Choose a format to convert {fileName}": "Wählen Sie das Format für {fileName} aus", "New form template": "Neue Formularvorlage", "Blank": "Leer", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Error al enviar la notificación", "Notification sent successfully": "Notificación enviada correctamente", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s ha mencionado en %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} ha mencionado en {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} le ha mencionado en {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Elija un formato para convertir {fileName}", "New form template": "Nueva plantilla de formulario", "Blank": "En blanco", diff --git a/l10n/es.json b/l10n/es.json index 04ae274..c032fce 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -106,7 +106,7 @@ "Failed to send notification": "Error al enviar la notificación", "Notification sent successfully": "Notificación enviada correctamente", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s ha mencionado en %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} ha mencionado en {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} le ha mencionado en {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Elija un formato para convertir {fileName}", "New form template": "Nueva plantilla de formulario", "Blank": "En blanco", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Échec de l’envoi de la notification", "Notification sent successfully": "Notification a été envoyée avec succès", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s a mentionné dans %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} a mentionné dans {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} vous a mentionné dans {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Choisissez un format à convertir {fileName}", "New form template": "Nouveau modèle de formulaire", "Blank": "Vide", diff --git a/l10n/fr.json b/l10n/fr.json index d4a1293..41ef6b3 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -106,7 +106,7 @@ "Failed to send notification": "Échec de l’envoi de la notification", "Notification sent successfully": "Notification a été envoyée avec succès", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s a mentionné dans %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} a mentionné dans {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} vous a mentionné dans {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Choisissez un format à convertir {fileName}", "New form template": "Nouveau modèle de formulaire", "Blank": "Vide", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Invio di notifica non riuscito", "Notification sent successfully": "Notifica è stata inviata con successo", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s ha menzionato in %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} ha menzionato nel {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} ti ha menzionato nel {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Scegli un formato per convertire {fileName}", "New form template": "Nuovo modello di modulo", "Blank": "Vuoto", diff --git a/l10n/it.json b/l10n/it.json index 31f47e2..11001d7 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -106,7 +106,7 @@ "Failed to send notification": "Invio di notifica non riuscito", "Notification sent successfully": "Notifica è stata inviata con successo", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s ha menzionato in %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} ha menzionato nel {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} ti ha menzionato nel {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Scegli un formato per convertire {fileName}", "New form template": "Nuovo modello di modulo", "Blank": "Vuoto", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "通知を送信できませんでした", "Notification sent successfully": "通知を送信しました", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s は %2\$s: \"%3\$s\"に記載されました。", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} は {file}: \"%1\$s\"に記載しました。", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} は あなたを {file}: \"%1\$s\"に記載しました。", "Choose a format to convert {fileName}": "{fileName}を変換する形式を選択してください", "New form template": "新しいフォームテンプレート", "Blank": "空白", diff --git a/l10n/ja.json b/l10n/ja.json index 707a8b8..ee74a3d 100644 --- a/l10n/ja.json +++ b/l10n/ja.json @@ -106,7 +106,7 @@ "Failed to send notification": "通知を送信できませんでした", "Notification sent successfully": "通知を送信しました", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s は %2$s: \"%3$s\"に記載されました。", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} は {file}: \"%1$s\"に記載しました。", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} は あなたを {file}: \"%1$s\"に記載しました。", "Choose a format to convert {fileName}": "{fileName}を変換する形式を選択してください", "New form template": "新しいフォームテンプレート", "Blank": "空白", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Nie udało się wysłać powiadomienia",
"Notification sent successfully": "Powiadomienie zostało wysłane",
"%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s dodał(a) w %2\$s następujący komentarz: \"%3\$s\".",
- "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} dodał(a) w {file} następujący komentarz: \"%1\$s\".",
+ "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} dodał(a) Cię w {file} następujący komentarz: \"%1\$s\".",
"Choose a format to convert {fileName}": "Wybierz format, do którego chcesz przekonwertować {fileName}",
"New form template": "Nowy szablon formularza",
"Blank": "Pusty",
diff --git a/l10n/pl.json b/l10n/pl.json index 5e53420..bea2992 100644 --- a/l10n/pl.json +++ b/l10n/pl.json @@ -106,7 +106,7 @@ "Failed to send notification": "Nie udało się wysłać powiadomienia",
"Notification sent successfully": "Powiadomienie zostało wysłane",
"%1$s mentioned in the %2$s: \"%3$s\".": "%1$s dodał(a) w %2$s następujący komentarz: \"%3$s\".",
- "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} dodał(a) w {file} następujący komentarz: \"%1$s\".",
+ "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} dodał(a) Cię w {file} następujący komentarz: \"%1$s\".",
"Choose a format to convert {fileName}": "Wybierz format, do którego chcesz przekonwertować {fileName}",
"New form template": "Nowy szablon formularza",
"Blank": "Pusty",
diff --git a/l10n/pt_BR.js b/l10n/pt_BR.js index 105ecf3..825ef86 100644 --- a/l10n/pt_BR.js +++ b/l10n/pt_BR.js @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Falha ao enviar notificação", "Notification sent successfully": "Notificação enviada com sucesso", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s mencionado em %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} mencionado em {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} mencionado você em {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Escolha um formato para converter {fileName}", "New form template": "Novo modelo de formulário", "Blank": "Em branco", diff --git a/l10n/pt_BR.json b/l10n/pt_BR.json index 9e5efa5..11c99b4 100644 --- a/l10n/pt_BR.json +++ b/l10n/pt_BR.json @@ -106,7 +106,7 @@ "Failed to send notification": "Falha ao enviar notificação", "Notification sent successfully": "Notificação enviada com sucesso", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s mencionado em %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} mencionado em {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} mencionado você em {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Escolha um formato para converter {fileName}", "New form template": "Novo modelo de formulário", "Blank": "Em branco", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Ошибка отправки оповещения", "Notification sent successfully": "Оповещение успешно отправлено", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s упомянул в %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} упомянул в {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} упомянул вас в {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Выберите формат для {fileName}", "New form template": "Новый шаблон формы", "Blank": "Пустой", diff --git a/l10n/ru.json b/l10n/ru.json index 7478f0c..5c4c735 100644 --- a/l10n/ru.json +++ b/l10n/ru.json @@ -106,7 +106,7 @@ "Failed to send notification": "Ошибка отправки оповещения", "Notification sent successfully": "Оповещение успешно отправлено", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s упомянул в %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} упомянул в {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} упомянул вас в {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Выберите формат для {fileName}", "New form template": "Новый шаблон формы", "Blank": "Пустой", @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "Det gick inte att skicka aviseringen", "Notification sent successfully": "Aviseringen har skickats", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s har nämnt i %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} har nämnt i {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} nämnde dig i {file}: \"%1\$s\".", "Choose a format to convert {fileName}": "Välj det filformat som {fileName} ska konverteras till.", "New form template": "Ny formulärmall", "Blank": "Töm", diff --git a/l10n/sv.json b/l10n/sv.json index 582b7c3..494c28d 100644 --- a/l10n/sv.json +++ b/l10n/sv.json @@ -106,7 +106,7 @@ "Failed to send notification": "Det gick inte att skicka aviseringen", "Notification sent successfully": "Aviseringen har skickats", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s har nämnt i %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} har nämnt i {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} nämnde dig i {file}: \"%1$s\".", "Choose a format to convert {fileName}": "Välj det filformat som {fileName} ska konverteras till.", "New form template": "Ny formulärmall", "Blank": "Töm", diff --git a/l10n/zh_CN.js b/l10n/zh_CN.js index 26b749a..eb37a03 100644 --- a/l10n/zh_CN.js +++ b/l10n/zh_CN.js @@ -108,7 +108,7 @@ OC.L10N.register( "Failed to send notification": "发送通知失败", "Notification sent successfully": "通知发送成功", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s 提到 %2\$s: \"%3\$s\".", - "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} 提到 {file}: \"%1\$s\".", + "{notifier} mentioned in the {file}: \"%1\$s\".": "{notifier} 在 {file}: \"%1\$s\"中提到了您.", "Choose a format to convert {fileName}": "选择要转换{fileName}的格式", "New form template": "新表单模板", "Blank": "空白", diff --git a/l10n/zh_CN.json b/l10n/zh_CN.json index 733f3b4..84f3261 100644 --- a/l10n/zh_CN.json +++ b/l10n/zh_CN.json @@ -106,7 +106,7 @@ "Failed to send notification": "发送通知失败", "Notification sent successfully": "通知发送成功", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s 提到 %2$s: \"%3$s\".", - "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} 提到 {file}: \"%1$s\".", + "{notifier} mentioned in the {file}: \"%1$s\".": "{notifier} 在 {file}: \"%1$s\"中提到了您.", "Choose a format to convert {fileName}": "选择要转换{fileName}的格式", "New form template": "新表单模板", "Blank": "空白", diff --git a/lib/Migration/MimeRepair.php b/lib/Migration/MimeRepair.php deleted file mode 100644 index 069baa9..0000000 --- a/lib/Migration/MimeRepair.php +++ /dev/null @@ -1,112 +0,0 @@ -<?php -/** - * - * (c) Copyright Ascensio System SIA 2022 - * - * 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. - * - */ - -namespace OCA\Onlyoffice\Migration; - -use OCP\Migration\IOutput; -use OCP\Migration\IRepairStep; -use OCP\Files\IMimeTypeDetector; - -use OC\Core\Command\Maintenance\Mimetype\GenerateMimetypeFileBuilder; - -use Psr\Log\LoggerInterface; - -use OCA\Onlyoffice\AppConfig; - -class MimeRepair implements IRepairStep { - - private const MIMETYPELIST = "mimetypelist.js"; - private const CUSTOM_MIMETYPEALIASES = "mimetypealiases.json"; - - private const DOCUMENT_ALIAS = "x-office/document"; - - /** - * Application name - * - * @var string - */ - private static $appName = "onlyoffice"; - - /** - * Application configuration - * - * @var AppConfig - */ - private $config; - - /** - * Logger Interface - * - * @var LoggerInterface - */ - protected $logger; - - /** - * Mimetype detector - * - * @var IMimeTypeDetector - */ - protected $detector; - - public function __construct(LoggerInterface $logger, - IMimeTypeDetector $detector) { - $this->logger = $logger; - $this->detector = $detector; - $this->config = new AppConfig(self::$appName); - } - - /** - * Returns the step's name - */ - public function getName() { - return self::$appName; - } - - /** - * @param IOutput $output - */ - public function run(IOutput $output) { - $this->logger->debug("Mimetypes repair run", ["app" => self::$appName]); - - $customAliasPath = \OC::$SERVERROOT . "/config/" . self::CUSTOM_MIMETYPEALIASES; - - $mimes = [ - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf" => self::DOCUMENT_ALIAS, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform" => self::DOCUMENT_ALIAS - ]; - - $customAlias = $mimes; - if (file_exists($customAliasPath)) { - $customAlias = json_decode(file_get_contents($customAliasPath), true); - foreach ($mimes as $mime => $icon) { - if (!isset($customAlias[$mime])) { - $customAlias[$mime] = $icon; - } - } - } - - file_put_contents($customAliasPath, json_encode($customAlias, JSON_PRETTY_PRINT)); - - //matches the command maintenance:mimetype:update-js - //from OC\Core\Command\Maintenance\Mimetype\UpdateJS - $aliases = $this->detector->getAllAliases(); - $generatedMimetypeFile = new GenerateMimetypeFileBuilder(); - file_put_contents(\OC::$SERVERROOT . "/core/js/" . self::MIMETYPELIST, $generatedMimetypeFile->generateFile($aliases)); - } -}
\ No newline at end of file diff --git a/lib/documentservice.php b/lib/documentservice.php index 85437e8..fe54c8f 100644 --- a/lib/documentservice.php +++ b/lib/documentservice.php @@ -364,6 +364,10 @@ class DocumentService { $opts["timeout"] = 60; } + $opts['nextcloud'] = [ + 'allow_local_address' => true, + ]; + if ($method === "post") { $response = $client->post($url, $opts); } else { diff --git a/lib/templatemanager.php b/lib/templatemanager.php index 3ff675a..2f7e43b 100644 --- a/lib/templatemanager.php +++ b/lib/templatemanager.php @@ -243,6 +243,7 @@ class TemplateManager { "en_GB" => "en-GB", "es" => "es-ES", "fr" => "fr-FR", + "gl" => "gl-ES", "it" => "it-IT", "ja" => "ja-JP", "ko" => "ko-KR", @@ -254,6 +255,7 @@ class TemplateManager { "ru" => "ru-RU", "sk" => "sk-SK", "sv" => "sv-SE", + "tr" => "tr-TR", "uk" => "uk-UA", "vi" => "vi-VN", "zh_CN" => "zh-CN" |