diff --git a/CHANGELOG.md b/CHANGELOG.md index 46857e0f..614b9c87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 9.3.1 +## Changed +- creating and editing pdf form + ## 9.1.1 ## Added - support of user avatar in editor diff --git a/appinfo/application.php b/appinfo/application.php index d71e89aa..94f07302 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -119,7 +119,6 @@ function () { $detector->registerType("ott", "application/vnd.oasis.opendocument.text-template"); $detector->registerType("ots", "application/vnd.oasis.opendocument.spreadsheet-template"); $detector->registerType("otp", "application/vnd.oasis.opendocument.presentation-template"); - $detector->registerType("docxf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf"); $previewManager = $container->query(IPreview::class); if ($this->appConfig->getPreview()) { diff --git a/appinfo/info.xml b/appinfo/info.xml index 4daac1be..e02cafe8 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -6,7 +6,7 @@ ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within ownCloud 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. apl2 Ascensio System SIA - 9.1.1 + 9.3.1 Onlyoffice diff --git a/assets/document-formats b/assets/document-formats index e16bf990..2b592018 160000 --- a/assets/document-formats +++ b/assets/document-formats @@ -1 +1 @@ -Subproject commit e16bf99040e73fbe803c6790d9e6145e33be037f +Subproject commit 2b592018adbf03d9d6a9f1ab69b1e9d8af73e22c diff --git a/assets/document-templates b/assets/document-templates index e0771eb5..dc3f298d 160000 --- a/assets/document-templates +++ b/assets/document-templates @@ -1 +1 @@ -Subproject commit e0771eb517facd02b2c9f2f4ee10b278da694d5d +Subproject commit dc3f298ddb8932e385cf81563dd4d2c9429d59e2 diff --git a/controller/callbackcontroller.php b/controller/callbackcontroller.php index 7e9b5f1b..07c4f86f 100644 --- a/controller/callbackcontroller.php +++ b/controller/callbackcontroller.php @@ -580,7 +580,11 @@ function () use ($file, $newData) { $changes = null; if (!empty($changesurl)) { $changesurl = $this->config->replaceDocumentServerUrlToInternal($changesurl); - $changes = $documentService->request($changesurl); + try { + $changes = $documentService->request($changesurl); + } catch (\Exception $e) { + $this->logger->logException($e, ["message" => "Failed to download changes", "app" => $this->appName]); + } } FileVersions::saveHistory($file->getFileInfo(), $history, $changes, $prevVersion); } diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php index 1676cc5f..fbe2852a 100644 --- a/controller/editorapicontroller.php +++ b/controller/editorapicontroller.php @@ -234,6 +234,7 @@ public function fillempty($fileId) { * @param bool $desktop - desktop label * @param bool $template - file is template * @param string $anchor - anchor link + * @param bool $forceEdit - open editing * * @return JSONResponse * @@ -241,7 +242,7 @@ public function fillempty($fileId) { * @PublicPage * @CORS */ - public function config($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $desktop = false, $template = false, $anchor = null) { + public function config($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $desktop = false, $template = false, $anchor = null, $forceEdit = false) { $user = $this->userSession->getUser(); $userId = null; $accountId = null; @@ -380,8 +381,8 @@ public function config($fileId, $filePath = null, $shareToken = null, $version = && $file->isUpdateable() && !$isPersistentLock && (empty($shareToken) || ($share->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE); - $params["document"]["permissions"]["edit"] = $editable; - if (($editable || $restrictedEditing) && $canEdit || $canFillForms) { + $params["document"]["permissions"]["edit"] = $editable && ($forceEdit || !$canFillForms); + if (($editable || $restrictedEditing) && ($canEdit || $canFillForms)) { $ownerId = null; $owner = $file->getOwner(); if (!empty($owner)) { @@ -399,6 +400,11 @@ public function config($fileId, $filePath = null, $shareToken = null, $version = $params["document"]["permissions"]["protect"] = false; } + if ($canFillForms) { + $params["document"]["permissions"]["fillForms"] = true; + $params["canEdit"] = $canEdit && $editable; + } + $hashCallback = $this->crypt->getHash(["userId" => $userId, "ownerId" => $ownerId, "fileId" => $file->getId(), "filePath" => $filePath, "shareToken" => $shareToken, "action" => "track"]); $callback = $this->urlGenerator->linkToRouteAbsolute($this->appName . ".callback.track", ["doc" => $hashCallback]); diff --git a/controller/editorcontroller.php b/controller/editorcontroller.php index 7aedb397..871da2fa 100644 --- a/controller/editorcontroller.php +++ b/controller/editorcontroller.php @@ -279,7 +279,7 @@ public function create($name, $dir, $templateId = null, $targetPath = null, $sha $ext = strtolower(pathinfo($name, PATHINFO_EXTENSION)); $documentService = new DocumentService($this->trans, $this->config); try { - $newFileUri = $documentService->getConvertedUri($fileUrl, $targetExt, $ext, $targetKey); + $newFileUri = $documentService->getConvertedUri($fileUrl, $targetExt, $ext, $targetKey, $ext === "pdf"); } catch (\Exception $e) { $this->logger->logException($e, ["message" => "getConvertedUri: " . $targetFile->getId(), "app" => $this->appName]); return ["error" => $e->getMessage()]; @@ -1278,6 +1278,7 @@ public function download($fileId, $toExtension = null, $template = false) { * @param string $shareToken - access token * @param integer $version - file version * @param bool $inframe - open in frame + * @param bool $forceEdit - open editing * @param bool $template - file is template * @param string $anchor - anchor for file content * @@ -1286,7 +1287,7 @@ public function download($fileId, $toExtension = null, $template = false) { * @NoAdminRequired * @NoCSRFRequired */ - public function index($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $template = false, $anchor = null) { + public function index($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $forceEdit = false, $template = false, $anchor = null) { $this->logger->debug("Open: $fileId ($version) $filePath", ["app" => $this->appName]); if (empty($shareToken) && !$this->userSession->isLoggedIn()) { @@ -1326,7 +1327,8 @@ public function index($fileId, $filePath = null, $shareToken = null, $version = "version" => $version, "template" => $template, "inframe" => false, - "anchor" => $anchor + "anchor" => $anchor, + "forceEdit" => $forceEdit ]; if ($inframe === true) { @@ -1357,6 +1359,7 @@ public function index($fileId, $filePath = null, $shareToken = null, $version = * @param string $shareToken - access token * @param integer $version - file version * @param bool $inframe - open in frame + * @param bool $forceEdit - open editing * * @return TemplateResponse * @@ -1364,8 +1367,8 @@ public function index($fileId, $filePath = null, $shareToken = null, $version = * @NoCSRFRequired * @PublicPage */ - public function publicPage($fileId, $shareToken, $version = 0, $inframe = false) { - return $this->index($fileId, null, $shareToken, $version, $inframe); + public function publicPage($fileId, $shareToken, $version = 0, $inframe = false, $forceEdit = false) { + return $this->index($fileId, null, $shareToken, $version, $inframe, $forceEdit); } /** diff --git a/css/main.css b/css/main.css index f32e89ce..6a7787ea 100644 --- a/css/main.css +++ b/css/main.css @@ -25,13 +25,12 @@ .icon-onlyoffice-new-pptx { background-image: url("../img/new-pptx.svg"); } -.icon-onlyoffice-new-docxf { - background-image: url("../img/new-docxf.svg"); +.icon-onlyoffice-new-pdf { + background-image: url("../img/new-pdf.svg"); } .icon-onlyoffice-open, .icon-onlyoffice-convert, .icon-onlyoffice-download, -.icon-onlyoffice-fill, .icon-onlyoffice-create { background-image: url("../img/app-dark.svg"); } diff --git a/img/new-docxf.svg b/img/new-pdf.svg similarity index 56% rename from img/new-docxf.svg rename to img/new-pdf.svg index 3fa58bb3..2e41ca27 100644 --- a/img/new-docxf.svg +++ b/img/new-pdf.svg @@ -1,13 +1,13 @@ - + + - - - - - - - + + + + + + diff --git a/img/pdf.ico b/img/pdf.ico new file mode 100644 index 00000000..2cabc728 Binary files /dev/null and b/img/pdf.ico differ diff --git a/js/editor.js b/js/editor.js index 3bcf8694..087218c8 100644 --- a/js/editor.js +++ b/js/editor.js @@ -35,6 +35,7 @@ OCA.Onlyoffice.template = $("#iframeEditor").data("template"); OCA.Onlyoffice.inframe = !!$("#iframeEditor").data("inframe"); OCA.Onlyoffice.anchor = $("#iframeEditor").attr("data-anchor"); + OCA.Onlyoffice.forceEdit = $("#iframeEditor").attr("data-forceEdit"); OCA.Onlyoffice.currentWindow = window; if (OCA.Onlyoffice.inframe) { @@ -84,6 +85,10 @@ params.push("anchor=" + encodeURIComponent(OCA.Onlyoffice.anchor)); } + if (OCA.Onlyoffice.forceEdit) { + params.push("forceEdit=true"); + } + if (OCA.Onlyoffice.Desktop) { params.push("desktop=true"); } @@ -181,6 +186,12 @@ config.events.onRequestSharingSettings = OCA.Onlyoffice.onRequestSharingSettings; } + if (!config.document.permissions.edit + && config.document.permissions.fillForms + && config.canEdit) { + config.events.onRequestEditRights = OCA.Onlyoffice.onRequestEditRights; + } + OCA.Onlyoffice.docEditor = new DocsAPI.DocEditor("iframeEditor", config); if (config.type === "mobile" && $("#app > iframe").css("position") === "fixed" @@ -203,6 +214,17 @@ }); }; + OCA.Onlyoffice.onRequestEditRights = function () { + if (OCA.Onlyoffice.inframe) { + window.parent.postMessage({ + method: "onRequestEditRights" + }, + "*"); + return; + } + location.href += "&forceEdit=true"; + }; + OCA.Onlyoffice.onRequestHistory = function (version) { $.get(OC.generateUrl("apps/" + OCA.Onlyoffice.AppName + "/ajax/history?fileId={fileId}", { diff --git a/js/listener.js b/js/listener.js index 12df57f6..736632cd 100644 --- a/js/listener.js +++ b/js/listener.js @@ -102,7 +102,11 @@ OCA.Onlyoffice.onShowMessage = function (messageObj) { OC.Notification.show(messageObj.message, messageObj.props); - } + }; + + OCA.Onlyoffice.onRequestEditRights = function () { + $("#onlyofficeFrame").attr("src", $("#onlyofficeFrame").attr("src") + "&forceEdit=true"); + }; window.addEventListener("message", function (event) { if ($("#onlyofficeFrame")[0]) { @@ -148,6 +152,9 @@ break; case "onShowMessage": OCA.Onlyoffice.onShowMessage(event.data.param); + break; + case "onRequestEditRights": + OCA.Onlyoffice.onRequestEditRights(); } }, false); diff --git a/js/main.js b/js/main.js index 1823cb17..c6a4921c 100644 --- a/js/main.js +++ b/js/main.js @@ -69,7 +69,10 @@ fileList.add(response, { animate: true }); if (open) { - OCA.Onlyoffice.OpenEditor(response.id, dir, response.name, 0, winEditor); + let fileName = response.name; + let extension = OCA.Onlyoffice.GetFileExtension(fileName); + let forceEdit = OCA.Onlyoffice.setting.formats[extension].fillForms; + OCA.Onlyoffice.OpenEditor(response.id, dir, fileName, 0, winEditor, forceEdit); } OCA.Onlyoffice.context = { fileList: fileList }; @@ -82,7 +85,7 @@ ); }; - OCA.Onlyoffice.OpenEditor = function (fileId, fileDir, fileName, version, winEditor) { + OCA.Onlyoffice.OpenEditor = function (fileId, fileDir, fileName, version, winEditor, forceEdit) { var filePath = ""; if (fileName) { filePath = fileDir.replace(new RegExp("\/$"), "") + "/" + fileName; @@ -101,6 +104,10 @@ }); } + if (forceEdit) { + url += "&forceEdit=true"; + } + if (version > 0) { url += "&version=" + version; } @@ -357,17 +364,6 @@ }); } - if (config.fillForms) { - OCA.Files.fileActions.registerAction({ - name: "onlyofficeFill", - displayName: t(OCA.Onlyoffice.AppName, "Fill in form in ONLYOFFICE"), - mime: mime, - permissions: OC.PERMISSION_UPDATE, - iconClass: "icon-onlyoffice-fill", - actionHandler: OCA.Onlyoffice.FileClick - }); - } - if (config.createForm) { OCA.Files.fileActions.registerAction({ name: "onlyofficeCreateForm", @@ -450,25 +446,25 @@ }); menu.addMenuEntry({ - id: "onlyofficeDocxf", + id: "onlyofficePdf", displayName: t(OCA.Onlyoffice.AppName, "PDF form"), templateName: t(OCA.Onlyoffice.AppName, "PDF form"), - iconClass: "icon-onlyoffice-new-docxf", - fileType: "docxf", + iconClass: "icon-onlyoffice-new-pdf", + fileType: "pdf", actionHandler: function (name) { - OCA.Onlyoffice.CreateFile(name + ".docxf", fileList); + OCA.Onlyoffice.CreateFile(name + ".pdf", fileList); } }); if (!$("#isPublic").val()) { menu.addMenuEntry({ - id: "onlyofficeDocxfExist", + id: "onlyofficePdfExist", displayName: t(OCA.Onlyoffice.AppName, "PDF form from existing text file"), templateName: t(OCA.Onlyoffice.AppName, "PDF form from existing text file"), - iconClass: "icon-onlyoffice-new-docxf", - fileType: "docxf", + iconClass: "icon-onlyoffice-new-pdf", + fileType: "pdf", actionHandler: function (name) { - OCA.Onlyoffice.OpenFormPicker(name + ".docxf", fileList); + OCA.Onlyoffice.OpenFormPicker(name + ".pdf", fileList); } }); } diff --git a/l10n/bg_BG.js b/l10n/bg_BG.js index 4362a217..6be03d25 100644 --- a/l10n/bg_BG.js +++ b/l10n/bg_BG.js @@ -49,7 +49,8 @@ OC.L10N.register( "review" : "преглед", "form filling" : "попълване на формуляр", "comment" : "коментар", - "download" : "изтегли", + "global filter": "световен филтър", + "download": "изтегли", "Server settings" : "Настройки на сървъра", "Common settings" : "Общи настройки", "Editor customization settings" : "Персонализиращи настройки на редактора", @@ -99,11 +100,28 @@ OC.L10N.register( "Notification sent successfully": "Успешно изпратено известие", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s, Ви спомена във %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Изберете формат за конвертиране {fileName}", + "PDF form": "PDF формуляр", + "PDF form from existing text file": "PDF формуляр от съществуващ текстов файл", "Create form": "Създайте формуляр", - "Fill in form in ONLYOFFICE": "Попълнете формуляр в ONLYOFFICE", + "Create new PDF form": "Създайте нов PDF формуляр", "Security": "Сигурност", + "Run document macros": "Изпълнение на макроси на документи", "Light": "Светла", "Classic Light": "Класически светла", - "Dark": "Тъмна" + "Dark": "Тъмна", + "Enable plugins": "Активирайте плъгини", + "Enable document protection for": "Активирайте защита на документи за", + "All users": "Всички потребители", + "Owner only": "Само собственик", + "Authorization header (leave blank to use default header)": "Заглавка за упълномощаване (оставете празно, за да използвате заглавка по подразбиране)", + "ONLYOFFICE server is not available": "ONLYOFFICE сървърът не е достъпен", + "Please check the settings to resolve the problem.": "Моля, проверете настройките, за да разрешите проблема.", + "View settings": "Виж настройки", + "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", + "Select file to combine": "Избери файл за комбиниране", + "Select data source": "Избери източник на данни", + "The data source must not be the current document": "Източникът на данни не трябва да е текущият документ", + "Enable background connection check to the editors": "Активиране на проверката на фоновата връзка към редакторите", + "The domain in the file url does not match the domain of the Document server": "Домейнът в URL адреса на файла не съвпада с домейна на сървъра за документи" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/bg_BG.json b/l10n/bg_BG.json index 0ff9686e..5c2141c3 100644 --- a/l10n/bg_BG.json +++ b/l10n/bg_BG.json @@ -47,6 +47,7 @@ "review" : "преглед", "form filling" : "попълване на формуляр", "comment" : "коментар", + "global filter" : "cветовен филтър", "download" : "изтегли", "Server settings" : "Настройки на сървъра", "Common settings" : "Общи настройки", @@ -97,11 +98,27 @@ "Notification sent successfully": "Успешно изпратено известие", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s, Ви спомена във %2$s: \"%3$s\".", "Choose a format to convert {fileName}": "Изберете формат за конвертиране {fileName}", + "PDF form": "PDF формуляр", + "PDF form from existing text file": "Избери файл за комбиниране", "Create form": "Създайте формуляр", - "Fill in form in ONLYOFFICE": "Попълнете формуляр в ONLYOFFICE", + "Create new PDF form": "Създайте нов PDF формуляр", "Security": "Сигурност", "Light": "Светла", "Classic Light": "Класически светла", - "Dark": "Тъмна" + "Dark": "Тъмна", + "Enable plugins": "Активирайте плъгини", + "Enable document protection for": "Активирайте защита на документи за", + "All users": "Всички потребители", + "Owner only": "Само собственик", + "Authorization header (leave blank to use default header)": "Заглавка за упълномощаване (оставете празно, за да използвате заглавка по подразбиране)", + "ONLYOFFICE server is not available": "ONLYOFFICE сървърът не е достъпен", + "Please check the settings to resolve the problem.": "Моля, проверете настройките, за да разрешите проблема.", + "View settings": "Виж настройки", + "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", + "Select file to combine" : "Избери файл за комбиниране", + "Select data source": "Избери източник на данни", + "The data source must not be the current document": "Източникът на данни не трябва да е текущият документ", + "Enable background connection check to the editors": "Активиране на проверката на фоновата връзка към редакторите", + "The domain in the file url does not match the domain of the Document server": "Домейнът в URL адреса на файла не съвпада с домейна на сървъра за документи" },"pluralForm" :"nplurals=2; plural=(n != 1);" } \ No newline at end of file diff --git a/l10n/ca.js b/l10n/ca.js index 872e27bd..c80f671a 100644 --- a/l10n/ca.js +++ b/l10n/ca.js @@ -99,7 +99,6 @@ OC.L10N.register( "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s ha esmentat en %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Triï un format per a convertir {fileName}", "Create form": "Crear formulari", - "Fill in form in ONLYOFFICE": "Omplir el formulari en ONLYOFFICE", "Security": "Seguretat", "Light": "Llum", "Classic Light": "Llum clàssica", diff --git a/l10n/ca.json b/l10n/ca.json index c468b51d..7fba51e9 100644 --- a/l10n/ca.json +++ b/l10n/ca.json @@ -97,7 +97,6 @@ "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s ha esmentat en %2$s: \"%3$s\".", "Choose a format to convert {fileName}": "Triï un format per a convertir {fileName}", "Create form": "Crear formulari", - "Fill in form in ONLYOFFICE": "Omplir el formulari en ONLYOFFICE", "Security": "Seguretat", "Light": "Llum", "Classic Light": "Llum clàssica", diff --git a/l10n/da.js b/l10n/da.js index e4ad0762..e6ccfeb4 100644 --- a/l10n/da.js +++ b/l10n/da.js @@ -99,7 +99,6 @@ OC.L10N.register( "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s nævnt i %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Vælg et format til at konvertere {fileName}", "Create form": "Opret formular", - "Fill in form in ONLYOFFICE": "Udfyld formularen i ONLYOFFICE", "Security": "Sikkerhed", "Run document macros": "Kør dokumentmakroer", "Default editor theme": "Standard editortema", diff --git a/l10n/da.json b/l10n/da.json index ac2024fc..f27849f1 100644 --- a/l10n/da.json +++ b/l10n/da.json @@ -97,7 +97,6 @@ "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s nævnt i %2$s: \"%3$s\".", "Choose a format to convert {fileName}": "Vælg et format til at konvertere {fileName}", "Create form": "Opret formular", - "Fill in form in ONLYOFFICE": "Udfyld formularen i ONLYOFFICE", "Security": "Sikkerhed", "Run document macros": "Kør dokumentmakroer", "Default editor theme": "Standard editortema", diff --git a/l10n/de.js b/l10n/de.js index e23c4eed..b05ee310 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "PDF-Formular", "PDF form from existing text file": "PDF-Formular aus vorhandener Textdatei", "Create form": "Formular erstellen", - "Fill in form in ONLYOFFICE": "Formular in ONLYOFFICE ausfüllen", "Create new PDF form": "Neues PDF-Formular erstellen", "Security": "Sicherheit", "Run document macros": "Makros im Dokument ausführen", diff --git a/l10n/de.json b/l10n/de.json index 1517db62..b7e3dead 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -101,7 +101,6 @@ "PDF form": "PDF-Formular", "PDF form from existing text file": "PDF-Formular aus vorhandener Textdatei", "Create form": "Formular erstellen", - "Fill in form in ONLYOFFICE": "Formular in ONLYOFFICE ausfüllen", "Create new PDF form": "Neues PDF-Formular erstellen", "Security": "Sicherheit", "Run document macros": "Makros im Dokument ausführen", diff --git a/l10n/de_DE.js b/l10n/de_DE.js index be96a38f..4b6b7737 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "PDF-Formular", "PDF form from existing text file": "PDF-Formular aus vorhandener Textdatei", "Create form": "Formular erstellen", - "Fill in form in ONLYOFFICE": "Formular in ONLYOFFICE ausfüllen", "Create new PDF form": "Neues PDF-Formular erstellen", "Security": "Sicherheit", "Run document macros": "Makros im Dokument ausführen", diff --git a/l10n/de_DE.json b/l10n/de_DE.json index 8a9bf9c9..f66c7bbc 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -101,7 +101,6 @@ "PDF form": "PDF-Formular", "PDF form from existing text file": "PDF-Formular aus vorhandener Textdatei", "Create form": "Formular erstellen", - "Fill in form in ONLYOFFICE": "Formular in ONLYOFFICE ausfüllen", "Create new PDF form": "Neues PDF-Formular erstellen", "Security": "Sicherheit", "Run document macros": "Makros im Dokument ausführen", diff --git a/l10n/es.js b/l10n/es.js index 091bc6f8..c699f5e3 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "Formulario PDF", "PDF form from existing text file": "Formulario PDF a partir de un archivo de texto existente", "Create form": "Crear formulario", - "Fill in form in ONLYOFFICE": "Rellenar el formulario en ONLYOFFICE", "Create new PDF form": "Crear nuevo formulario PDF", "Security": "Seguridad", "Run document macros": "Ejecutar macros de documentos", diff --git a/l10n/es.json b/l10n/es.json index 84e00364..497e1f89 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -101,7 +101,6 @@ "PDF form": "Formulario PDF", "PDF form from existing text file": "Formulario PDF a partir de un archivo de texto existente", "Create form": "Crear formulario", - "Fill in form in ONLYOFFICE": "Rellenar el formulario en ONLYOFFICE", "Create new PDF form": "Crear nuevo formulario PDF", "Security": "Seguridad", "Run document macros": "Ejecutar macros de documentos", diff --git a/l10n/fr.js b/l10n/fr.js index 7b583432..81264901 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "Formulaire PDF", "PDF form from existing text file": "Formulaire PDF à partir d'un fichier texte existant", "Create form": "Créer un formulaire", - "Fill in form in ONLYOFFICE": "Remplir le formulaire dans ONLYOFFICE", "Create new PDF form": "Créer un nouveau formulaire PDF", "Security": "Sécurité", "Run document macros": "Exécuter des macros de documents", diff --git a/l10n/fr.json b/l10n/fr.json index 4f4fd174..a8bef383 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -101,7 +101,6 @@ "PDF form": "Formulaire PDF", "PDF form from existing text file": "Formulaire PDF à partir d'un fichier texte existant", "Create form": "Créer un formulaire", - "Fill in form in ONLYOFFICE": "Remplir le formulaire dans ONLYOFFICE", "Create new PDF form": "Créer un nouveau formulaire PDF", "Security": "Sécurité", "Run document macros": "Exécuter des macros de documents", diff --git a/l10n/it.js b/l10n/it.js index 18d27a34..57876c9e 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "Modulo PDF", "PDF form from existing text file": "Modulo PDF da file di testo esistente", "Create form": "Creare modulo", - "Fill in form in ONLYOFFICE": "Compilare il modulo in ONLYOFFICE", "Create new PDF form": "Crea un nuovo modulo PDF", "Security": "Sicurezza", "Run document macros": "Esegui le macro del documento", diff --git a/l10n/it.json b/l10n/it.json index 56bc7a07..189b5737 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -101,7 +101,6 @@ "PDF form": "Modulo PDF", "PDF form from existing text file": "Modulo PDF da file di testo esistente", "Create form": "Creare modulo", - "Fill in form in ONLYOFFICE": "Compilare il modulo in ONLYOFFICE", "Create new PDF form": "Crea un nuovo modulo PDF", "Security": "Sicurezza", "Run document macros": "Esegui le macro del documento", diff --git a/l10n/ja.js b/l10n/ja.js index 1991e3d3..c66ea425 100644 --- a/l10n/ja.js +++ b/l10n/ja.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "PDFフォーム", "PDF form from existing text file": "既存のテキストファイルからPDFフォーム", "Create form": "フォームの作成", - "Fill in form in ONLYOFFICE": "ONLYOFFICEでフォームを記入する", "Create new PDF form": "新規PDFフォームの作成", "Security": "セキュリティ", "Run document macros": "ドキュメントマクロを実行する", diff --git a/l10n/ja.json b/l10n/ja.json index bc7df660..e42ca257 100644 --- a/l10n/ja.json +++ b/l10n/ja.json @@ -101,7 +101,6 @@ "PDF form": "PDFフォーム", "PDF form from existing text file": "既存のテキストファイルからPDFフォーム", "Create form": "フォームの作成", - "Fill in form in ONLYOFFICE": "ONLYOFFICEでフォームを記入する", "Create new PDF form": "新規PDFフォームの作成", "Security": "セキュリティ", "Run document macros": "ドキュメントマクロを実行する", diff --git a/l10n/nl.js b/l10n/nl.js index da588b57..eb05a840 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -48,6 +48,7 @@ OC.L10N.register( "review": "overzicht", "form filling": "formulier invullen", "comment": "opmerking", + "global filter": "globale filter", "download": "downloaden", "Server settings": "Serverinstellingen", "Common settings": "Algemene instellingen", @@ -98,8 +99,10 @@ OC.L10N.register( "Notification sent successfully": "Kennisgeving succesvol verzonden", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s genoemd in de %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Kies een formaat om {fileName} te converteren", + "PDF form": "PDF-formulier", + "PDF form from existing text file": "PDF-formulier van bestaand tekstbestand", "Create form": "Formulier maken", - "Fill in form in ONLYOFFICE": "Formulier invullen in ONLYOFFICE", + "Create new PDF form": "Maak nieuw PDF-formulier", "Security": "Beveiliging", "Run document macros": "Document macro's uitvoeren", "Default editor theme": "Standaard editor thema", @@ -117,6 +120,11 @@ OC.L10N.register( "View settings": "Bekijk instellingen", "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", "Easily launch the editors in the cloud without downloading and installation": "Start de editors gemakkelijk in de cloud zonder te hoeven downloaden en te installeren", - "Get Now": "Download Nu" + "Get Now": "Download Nu", + "Select file to combine": "Selecteer bestand om te combineren", + "Select data source": "Selecteer gegevensbron", + "The data source must not be the current document": "De gegevensbron mag niet het huidige document zijn", + "Enable background connection check to the editors": "Verbindingscontrole op de achtergrond met de editors inschakelen", + "The domain in the file url does not match the domain of the Document server": "Het domein in de bestandsurl komt niet overeen met het domein van de Document Server" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/nl.json b/l10n/nl.json index fb5d79cd..6809b8b1 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -46,6 +46,7 @@ "review" : "overzicht", "form filling" : "formulier invullen", "comment" : "opmerking", + "global filter" : "globale filter", "download" : "downloaden", "Server settings" : "Serverinstellingen", "Common settings" : "Algemene instellingen", @@ -96,8 +97,10 @@ "Notification sent successfully": "Kennisgeving succesvol verzonden", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s genoemd in de %2$s: \"%3$s\".", "Choose a format to convert {fileName}": "Kies een formaat om {fileName} te converteren", + "PDF form": "PDF-formulier", + "PDF form from existing text file": "PDF-formulier van bestaand tekstbestand", "Create form": "Formulier maken", - "Fill in form in ONLYOFFICE": "Formulier invullen in ONLYOFFICE", + "Create new PDF form": "Maak nieuw PDF-formulier", "Security": "Beveiliging", "Run document macros": "Document macro's uitvoeren", "Default editor theme": "Standaard editor thema", @@ -115,6 +118,11 @@ "View settings": "Bekijk instellingen", "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", "Easily launch the editors in the cloud without downloading and installation": "Start de editors gemakkelijk in de cloud zonder te hoeven downloaden en te installeren", - "Get Now": "Download Nu" + "Get Now": "Download Nu", + "Select file to combine" : "Selecteer bestand om te combineren", + "Select data source": "Selecteer gegevensbron", + "The data source must not be the current document": "De gegevensbron mag niet het huidige document zijn", + "Enable background connection check to the editors": "Verbindingscontrole op de achtergrond met de editors inschakelen", + "The domain in the file url does not match the domain of the Document server": "Het domein in de bestandsurl komt niet overeen met het domein van de Document Server" },"pluralForm" :"nplurals=2; plural=(n != 1);" } \ No newline at end of file diff --git a/l10n/pl.js b/l10n/pl.js index 32fbfc1f..89fc95a8 100644 --- a/l10n/pl.js +++ b/l10n/pl.js @@ -48,7 +48,8 @@ OC.L10N.register( "review" : "recenzja", "form filling" : "wypełnianie formularza", "comment" : "komentarz", - "download" : "pobierz", + "global filter": "filtr globalny", + "download": "pobierz", "Server settings" : "Ustawienia serwera", "Common settings" : "Ustawienia ogólne", "Editor customization settings" : "Ustawienia edytorów", @@ -98,8 +99,10 @@ OC.L10N.register( "Notification sent successfully": "Powiadomienie zostało wysłane", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s dodał(a) Cię w %2\$s następujący komentarz: \"%3\$s\".", "Choose a format to convert {fileName}": "Wybierz format, do którego chcesz przekonwertować {fileName}", + "PDF form": "Formularz PDF", + "PDF form from existing text file": "Formularz PDF z istniejącego pliku tekstowego", "Create form": "Utwórz formularz", - "Fill in form in ONLYOFFICE": "Wypełnić formularz w ONLYOFFICE", + "Create new PDF form": "Utwórz nowy formularz PDF", "Security": "Bezpieczeństwo", "Run document macros": "Uruchom makra dokumentu", "Default editor theme": "Domyślny motyw edytora", @@ -117,6 +120,11 @@ OC.L10N.register( "View settings": "Zobacz ustawienia", "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", "Easily launch the editors in the cloud without downloading and installation": "Z łatwością uruchamiaj edytory w chmurze bez konieczności pobierania czy instalacji", - "Get Now": "Wypróbuj teraz" + "Get Now": "Wypróbuj teraz", + "Select file to combine": "Wybierz plik do połączenia", + "Select data source": "Wybierz źródło danych", + "The data source must not be the current document": "Źródło danych nie może być bieżącym dokumentem", + "Enable background connection check to the editors": "Włącz sprawdzanie połączenia z edytorami w tle", + "The domain in the file url does not match the domain of the Document server": "Domena w adresie URL pliku nie pasuje do domeny serwera dokumentów" }, -"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);"); \ No newline at end of file +"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);"); diff --git a/l10n/pl.json b/l10n/pl.json index 8a1e94a9..f2b0dfab 100644 --- a/l10n/pl.json +++ b/l10n/pl.json @@ -46,6 +46,7 @@ "review" : "recenzja", "form filling" : "wypełnianie formularza", "comment" : "komentarz", + "global filter" : "filtr globalny", "download" : "pobierz", "Server settings" : "Ustawienia serwera", "Common settings" : "Ustawienia ogólne", @@ -96,8 +97,10 @@ "Notification sent successfully": "Powiadomienie zostało wysłane", "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s dodał(a) Cię w %2$s następujący komentarz: \"%3$s\".", "Choose a format to convert {fileName}": "Wybierz format, do którego chcesz przekonwertować {fileName}", + "PDF form": "Formularz PDF", + "PDF form from existing text file": "Formularz PDF z istniejącego pliku tekstowego", "Create form": "Utwórz formularz", - "Fill in form in ONLYOFFICE": "Wypełnić formularz w ONLYOFFICE", + "Create new PDF form": "Utwórz nowy formularz PDF", "Security": "Bezpieczeństwo", "Run document macros": "Uruchom makra dokumentu", "Default editor theme": "Domyślny motyw edytora", @@ -115,6 +118,11 @@ "View settings": "Zobacz ustawienia", "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", "Easily launch the editors in the cloud without downloading and installation": "Z łatwością uruchamiaj edytory w chmurze bez konieczności pobierania czy instalacji", - "Get Now": "Wypróbuj teraz" + "Get Now": "Wypróbuj teraz", + "Select file to combine" : "Wybierz plik do połączenia", + "Select data source": "Wybierz źródło danych", + "The data source must not be the current document": "Źródło danych nie może być bieżącym dokumentem", + "Enable background connection check to the editors": "Włącz sprawdzanie połączenia z edytorami w tle", + "The domain in the file url does not match the domain of the Document server": "Domena w adresie URL pliku nie pasuje do domeny serwera dokumentów" },"pluralForm" :"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);" } \ No newline at end of file diff --git a/l10n/pt_BR.js b/l10n/pt_BR.js index 27766642..8324e5ed 100644 --- a/l10n/pt_BR.js +++ b/l10n/pt_BR.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "Formulário PDF", "PDF form from existing text file": "Formulário PDF de arquivo de texto existente", "Create form": "Criar formulário", - "Fill in form in ONLYOFFICE": "Preencher formulário no ONLYOFFICE", "Create new PDF form": "Criar novo formulário PDF", "Security": "Segurança", "Run document macros": "Executar macros de documento", diff --git a/l10n/pt_BR.json b/l10n/pt_BR.json index aadc2144..e9727098 100644 --- a/l10n/pt_BR.json +++ b/l10n/pt_BR.json @@ -101,7 +101,6 @@ "PDF form": "Formulário PDF", "PDF form from existing text file": "Formulário PDF de arquivo de texto existente", "Create form": "Criar formulário", - "Fill in form in ONLYOFFICE": "Preencher formulário no ONLYOFFICE", "Create new PDF form": "Criar novo formulário PDF", "Security": "Segurança", "Run document macros": "Executar macros de documento", diff --git a/l10n/ru.js b/l10n/ru.js index e989b28f..fff9eb0e 100644 --- a/l10n/ru.js +++ b/l10n/ru.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "PDF-форма", "PDF form from existing text file": "PDF-форма из существующего текстового файла", "Create form": "Создать форму", - "Fill in form in ONLYOFFICE": "Заполнить форму в ONLYOFFICE", "Create new PDF form": "Создать новую PDF-форму", "Security": "Безопасность", "Run document macros": "Запускать макросы документа", diff --git a/l10n/ru.json b/l10n/ru.json index 873946d2..9e6a14de 100644 --- a/l10n/ru.json +++ b/l10n/ru.json @@ -101,7 +101,6 @@ "PDF form": "PDF-форма", "PDF form from existing text file": "PDF-форма из существующего текстового файла", "Create form": "Создать форму", - "Fill in form in ONLYOFFICE": "Заполнить форму в ONLYOFFICE", "Create new PDF form": "Создать новую PDF-форму", "Security": "Безопасность", "Run document macros": "Запускать макросы документа", diff --git a/l10n/sv.js b/l10n/sv.js index d17263a8..5c5e7853 100644 --- a/l10n/sv.js +++ b/l10n/sv.js @@ -99,7 +99,6 @@ OC.L10N.register( "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s nämnde dig i %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Välj det filformat som {fileName} ska konverteras till.", "Create form": "Skapa formulär", - "Fill in form in ONLYOFFICE": "Fylla i formulär i ONLYOFFICE", "Security": "Säkerhet", "Run document macros": "Kör dokumentmakron", "Light": "Ljus", diff --git a/l10n/sv.json b/l10n/sv.json index ad37882a..42b78c85 100644 --- a/l10n/sv.json +++ b/l10n/sv.json @@ -97,7 +97,6 @@ "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s nämnde dig i %2$s: \"%3$s\".", "Choose a format to convert {fileName}": "Välj det filformat som {fileName} ska konverteras till.", "Create form": "Skapa formulär", - "Fill in form in ONLYOFFICE": "Fylla i formulär i ONLYOFFICE", "Security": "Säkerhet", "Run document macros": "Kör dokumentmakron", "Light": "Ljus", diff --git a/l10n/uk.js b/l10n/uk.js index 9d21c690..471cb565 100644 --- a/l10n/uk.js +++ b/l10n/uk.js @@ -48,6 +48,7 @@ OC.L10N.register( "review": "рецензії", "form filling": "заповнення форм", "comment": "коментарі", + "global filter": "глобальний фільтр", "download": "звантажити", "Server settings": "Налаштування сервера", "Common settings": "Загальні налаштування", @@ -98,8 +99,10 @@ OC.L10N.register( "Notification sent successfully": "Сповіщення успішно надіслено", "%1\$s mentioned in the %2\$s: \"%3\$s\".": "%1\$s згадав у %2\$s: \"%3\$s\".", "Choose a format to convert {fileName}": "Виберіть формат для {fileName}", + "PDF form": "Форма PDF", + "PDF form from existing text file": "Форма PDF із файлу, що існує", "Create form": "Створити форму", - "Fill in form in ONLYOFFICE": "Заповнити форму у ONLYOFFICE", + "Create new PDF form": "Створити нову форму PDF", "Security": "Безпека", "Run document macros": "Виконувати макроси документу", "Default editor theme": "Типова тема редактора", @@ -116,6 +119,11 @@ OC.L10N.register( "View settings": "Переглянути налаштування", "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", "Easily launch the editors in the cloud without downloading and installation": "Легко використовуйте редактори у хмарі без звантажень та налаштувань", - "Get Now": "Отримати зараз" + "Get Now": "Отримати зараз", + "Select file to combine": "Вибрати файл для об’єднання", + "Select data source": "Вибрати джерело даних", + "The data source must not be the current document": "Джерело даних не має бути поточним документом", + "Enable background connection check to the editors": "Увімкніть фонову перевірку з’єднання з редакторами", + "The domain in the file url does not match the domain of the Document server": "Домен в URL-адресі файлу не збігається з доменом сервера документів" }, "nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);"); diff --git a/l10n/uk.json b/l10n/uk.json index 48f76a20..a4fce410 100644 --- a/l10n/uk.json +++ b/l10n/uk.json @@ -1,120 +1,127 @@ -{ - "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", - "Document": "Документ", - "Spreadsheet": "Електронна таблиця", - "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 '' for the server address in the below line.": "Розташування ONLYOFFICE Docs визначає адресу сервера зі встановленими службами обробки документів. Будь ласка, замініть '' на дійсну адресу сервера.", - "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-з'єднання.", - "Allow the following groups to access the editors": "Надати доступ до редагування лише таким групам", - "review": "рецензії", - "form filling": "заповнення форм", - "comment": "коментарі", - "download": "звантажити", - "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. Будь ласка, не зберігайте ваші приватні дані.", - "Select file to compare": "Вибрати файл для порівняння", - "Review mode for viewing": "Режим рецензування при перегляді", - "Markup": "Зміни", - "Final": "Кінцевий документ", - "Original": "Вихідний документ", - "version": "версія", - "Disable certificate verification (insecure)": "Вимкнути перевірку сертифікату (небезпечно)", - "Keep intermediate versions when editing (forcesave)": "Зберігати проміжні версії під час редагування (примусове зберігання)", - "Use ONLYOFFICE to generate a document preview (it will take up disk space)": "ONLYOFFICE створюватиме зображення попереднього перегляду документу (потрібне місце на диску)", - "Keep metadata for each version once the document is edited (it will take up disk space)": "Зберігати метадані для кожної версії після завершення редагування (потрібне місце на диску)", - "Clear": "Очистити", - "All history successfully deleted": "Історія успішно вилучено", - "Create": "Створити", - "Select template": "Вибрати шаблон", - "Invalid file provided": "Вибрано недійсний файл", - "Empty": "Порожній", - "Error": "Помилка", - "Add a new template": "Додати новий шаблон", - "Template already exists": "Шаблон вже присутній", - "Template must be in OOXML format": "Файл шаблону має бути збережено у форматі OOXML", - "Template successfully added": "Шаблон успішно додано", - "Template successfully deleted": "Шаблон успішно вилучено", - "Common templates": "Загальні шаблони", - "Failed to delete template": "Не вдалося вилучити шаблон", - "File has been converted. Its content might look different.": "Файл конвертовано. При цьому форматування вмісту могло змінитися.", - "Download as": "Звантажити як", - "Download": "Звантажити", - "Origin format": "Оригінальний формат", - "Failed to send notification": "Помилка надсилання сповіщення", - "Notification sent successfully": "Сповіщення успішно надіслено", - "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s згадав у %2$s: \"%3$s\".", - "Choose a format to convert {fileName}": "Виберіть формат для {fileName}", - "Create form": "Створити форму", - "Fill in form in ONLYOFFICE": "Заповнити форму у ONLYOFFICE", - "Security": "Безпека", - "Run document macros": "Виконувати макроси документу", - "Default editor theme": "Типова тема редактора", - "Light": "Світла", - "Classic Light": "Світла класична", - "Dark": "Темна", - "Enable plugins": "Увімкнути роботу з розширеннями", - "Enable document protection for": "Увімкнути захист документів", - "All users": "Для всіх користувачів", - "Owner only": "Тільки власникові", - "Authorization header (leave blank to use default header)": "Заголовок авторизації (залиште порожнім для використання типового заголовку)", - "ONLYOFFICE server is not available": "Сервер ONLYOFFICE не доступний", - "Please check the settings to resolve the problem.": "Будь ласка, перевірте налаштування для розв'язання проблеми.", - "View settings": "Переглянути налаштування", - "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", - "Easily launch the editors in the cloud without downloading and installation": "Легко використовуйте редактори у хмарі без звантажень та налаштувань", - "Get Now": "Отримати зараз" +{"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", + "Document": "Документ", + "Spreadsheet": "Електронна таблиця", + "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 '' for the server address in the below line.": "Розташування ONLYOFFICE Docs визначає адресу сервера зі встановленими службами обробки документів. Будь ласка, замініть '' на дійсну адресу сервера.", + "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-з'єднання.", + "Allow the following groups to access the editors": "Надати доступ до редагування лише таким групам", + "review": "рецензії", + "form filling": "заповнення форм", + "comment": "коментарі", + "global filter" : "глобальний фільтр", + "download": "звантажити", + "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. Будь ласка, не зберігайте ваші приватні дані.", + "Select file to compare": "Вибрати файл для порівняння", + "Review mode for viewing": "Режим рецензування при перегляді", + "Markup": "Зміни", + "Final": "Кінцевий документ", + "Original": "Вихідний документ", + "version": "версія", + "Disable certificate verification (insecure)": "Вимкнути перевірку сертифікату (небезпечно)", + "Keep intermediate versions when editing (forcesave)": "Зберігати проміжні версії під час редагування (примусове зберігання)", + "Use ONLYOFFICE to generate a document preview (it will take up disk space)": "ONLYOFFICE створюватиме зображення попереднього перегляду документу (потрібне місце на диску)", + "Keep metadata for each version once the document is edited (it will take up disk space)": "Зберігати метадані для кожної версії після завершення редагування (потрібне місце на диску)", + "Clear": "Очистити", + "All history successfully deleted": "Історія успішно вилучено", + "Create": "Створити", + "Select template": "Вибрати шаблон", + "Invalid file provided": "Вибрано недійсний файл", + "Empty": "Порожній", + "Error": "Помилка", + "Add a new template": "Додати новий шаблон", + "Template already exists": "Шаблон вже присутній", + "Template must be in OOXML format": "Файл шаблону має бути збережено у форматі OOXML", + "Template successfully added": "Шаблон успішно додано", + "Template successfully deleted": "Шаблон успішно вилучено", + "Common templates": "Загальні шаблони", + "Failed to delete template": "Не вдалося вилучити шаблон", + "File has been converted. Its content might look different.": "Файл конвертовано. При цьому форматування вмісту могло змінитися.", + "Download as": "Звантажити як", + "Download": "Звантажити", + "Origin format": "Оригінальний формат", + "Failed to send notification": "Помилка надсилання сповіщення", + "Notification sent successfully": "Сповіщення успішно надіслено", + "%1$s mentioned in the %2$s: \"%3$s\".": "%1$s згадав у %2$s: \"%3$s\".", + "Choose a format to convert {fileName}": "Виберіть формат для {fileName}", + "PDF form": "Форма PDF", + "PDF form from existing text file": "Форма PDF із файлу, що існує", + "Create form": "Створити форму", + "Create new PDF form": "Створити нову форму PDF", + "Security": "Безпека", + "Run document macros": "Виконувати макроси документу", + "Default editor theme": "Типова тема редактора", + "Light": "Світла", + "Classic Light": "Світла класична", + "Dark": "Темна", + "Enable plugins": "Увімкнути роботу з розширеннями", + "Enable document protection for": "Увімкнути захист документів", + "All users": "Для всіх користувачів", + "Owner only": "Тільки власникові", + "Authorization header (leave blank to use default header)": "Заголовок авторизації (залиште порожнім для використання типового заголовку)", + "ONLYOFFICE server is not available": "Сервер ONLYOFFICE не доступний", + "Please check the settings to resolve the problem.": "Будь ласка, перевірте налаштування для розв'язання проблеми.", + "View settings": "Переглянути налаштування", + "ONLYOFFICE Docs Cloud": "ONLYOFFICE Docs Cloud", + "Easily launch the editors in the cloud without downloading and installation": "Легко використовуйте редактори у хмарі без звантажень та налаштувань", + "Get Now": "Отримати зараз", + "Select file to combine" : "Избери файл за комбиниране", + "Select data source": "Избери източник на данни", + "The data source must not be the current document": "Източникът на данни не трябва да е текущият документ", + "Enable background connection check to the editors": "Активиране на проверката на фоновата връзка към редакторите", + "The domain in the file url does not match the domain of the Document server": "Домейнът в URL адреса на файла не съвпада с домейна на сървъра за документи" },"pluralForm" :"nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);" } \ No newline at end of file diff --git a/l10n/zh_CN.js b/l10n/zh_CN.js index a1336785..bfc57e1c 100644 --- a/l10n/zh_CN.js +++ b/l10n/zh_CN.js @@ -103,7 +103,6 @@ OC.L10N.register( "PDF form": "PDF 表单", "PDF form from existing text file": "用文本文件生成 PDF 表单", "Create form": "创建表单", - "Fill in form in ONLYOFFICE": "在ONLYOFFICE上填写表单", "Create new PDF form": "创建新的 PDF 表单", "Security": "安全", "Run document macros": "运行文档宏", diff --git a/l10n/zh_CN.json b/l10n/zh_CN.json index 9d9170ca..c25e5204 100644 --- a/l10n/zh_CN.json +++ b/l10n/zh_CN.json @@ -101,7 +101,6 @@ "PDF form": "PDF 表单", "PDF form from existing text file": "用文本文件生成 PDF 表单", "Create form": "创建表单", - "Fill in form in ONLYOFFICE": "在ONLYOFFICE上填写表单", "Create new PDF form": "创建新的 PDF 表单", "Security": "安全", "Run document macros": "运行文档宏", diff --git a/lib/appconfig.php b/lib/appconfig.php index 37c11e2e..76f2e5a0 100644 --- a/lib/appconfig.php +++ b/lib/appconfig.php @@ -1352,12 +1352,11 @@ private function getAdditionalFormatAttributes() { ], "docxf" => [ "def" => true, - "review" => true, - "comment" => true, "createForm" => true, ], "oform" => [ "def" => true, + "createForm" => true, ], "pdf" => [ "def" => true, diff --git a/lib/documentservice.php b/lib/documentservice.php index 8894bc9b..d067f8a3 100644 --- a/lib/documentservice.php +++ b/lib/documentservice.php @@ -83,11 +83,12 @@ public static function generateRevisionId($expected_key) { * @param string $from_extension - Document extension * @param string $to_extension - Extension to which to convert * @param string $document_revision_id - Key for caching on service + * @param bool $toForm - Convert to form * * @return string */ - public function getConvertedUri($document_uri, $from_extension, $to_extension, $document_revision_id) { - $responceFromConvertService = $this->sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, false); + public function getConvertedUri($document_uri, $from_extension, $to_extension, $document_revision_id, $toForm = false) { + $responceFromConvertService = $this->sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, false, $toForm); $errorElement = $responceFromConvertService->Error; if ($errorElement->count() > 0) { @@ -111,10 +112,11 @@ public function getConvertedUri($document_uri, $from_extension, $to_extension, $ * @param string $to_extension - Extension to which to convert * @param string $document_revision_id - Key for caching on service * @param bool - $is_async - Perform conversions asynchronously + * @param bool $toForm - Convert to form * * @return array */ - public function sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, $is_async) { + public function sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, $is_async, $toForm = false) { $documentServerUrl = $this->config->getDocumentServerInternalUrl(); if (empty($documentServerUrl)) { @@ -149,6 +151,12 @@ public function sendRequestToConvertService($document_uri, $from_extension, $to_ $data["tenant"] = $this->config->getSystemValue("instanceid", true); } + if ($toForm) { + $data["pdf"] = [ + "form" => true + ]; + } + $opts = [ "timeout" => "120", "headers" => [ diff --git a/templates/editor.php b/templates/editor.php index a6e4a997..e8cfa55f 100644 --- a/templates/editor.php +++ b/templates/editor.php @@ -31,7 +31,8 @@ data-version="" data-template="" data-anchor="" - data-inframe=""> + data-inframe="" + data-forceedit="">