From 44aad07ac71ca86b7fbe56bc54677af7407a94a8 Mon Sep 17 00:00:00 2001 From: Maria-Sukhova Date: Fri, 19 Apr 2024 18:16:41 +0300 Subject: [PATCH 01/22] updated bg, nl, pl, uk --- l10n/bg_BG.js | 23 ++++- l10n/bg_BG.json | 20 +++- l10n/nl.js | 11 ++- l10n/nl.json | 11 ++- l10n/pl.js | 15 ++- l10n/pl.json | 11 ++- l10n/uk.js | 11 ++- l10n/uk.json | 244 +++++++++++++++++++++++++----------------------- 8 files changed, 218 insertions(+), 128 deletions(-) diff --git a/l10n/bg_BG.js b/l10n/bg_BG.js index 4362a217..b511ac88 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,29 @@ 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..e8702946 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,28 @@ "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/nl.js b/l10n/nl.js index da588b57..91035918 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,11 @@ 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 +121,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..bb8dec9b 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,11 @@ "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 +119,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..7c843b9a 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,11 @@ 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 +121,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..eb987b4d 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,11 @@ "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 +119,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/uk.js b/l10n/uk.js index 9d21c690..42e79ef9 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,11 @@ 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 +120,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..51c18d0e 100644 --- a/l10n/uk.json +++ b/l10n/uk.json @@ -1,120 +1,128 @@ -{ - "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": "Створити форму", + "Fill in form in ONLYOFFICE": "Заповнити форму у ONLYOFFICE", + "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 From 38962ef13595bac357fec4dad1293b8e0ba5f64c Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Fri, 7 Jun 2024 13:02:57 +0300 Subject: [PATCH 02/22] added sr-Cyrl-RS empty files --- assets/document-templates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/document-templates b/assets/document-templates index e0771eb5..9f4f5b6c 160000 --- a/assets/document-templates +++ b/assets/document-templates @@ -1 +1 @@ -Subproject commit e0771eb517facd02b2c9f2f4ee10b278da694d5d +Subproject commit 9f4f5b6c640d3fc54398b9888e1028a98f6b2227 From 8de294267fe1a5769e9a9f3a9fec5a0edb3f54d5 Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 20 Jun 2024 11:28:28 +0300 Subject: [PATCH 03/22] feat: creating pdf form --- .gitmodules | 1 + CHANGELOG.md | 4 ++++ appinfo/application.php | 1 - assets/document-formats | 2 +- assets/document-templates | 2 +- css/main.css | 4 ++-- img/{new-docxf.svg => new-pdf.svg} | 16 ++++++++-------- js/main.js | 16 ++++++++-------- 8 files changed, 25 insertions(+), 21 deletions(-) rename img/{new-docxf.svg => new-pdf.svg} (56%) diff --git a/.gitmodules b/.gitmodules index e7c7242c..5170cf17 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,3 +5,4 @@ [submodule "assets/document-formats"] path = assets/document-formats url = https://github.com/ONLYOFFICE/document-formats + branch = feature/v8.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 46857e0f..58f21163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## +## Changed +- creating 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/assets/document-formats b/assets/document-formats index e16bf990..62e62067 160000 --- a/assets/document-formats +++ b/assets/document-formats @@ -1 +1 @@ -Subproject commit e16bf99040e73fbe803c6790d9e6145e33be037f +Subproject commit 62e62067a0099ca01e53fb658ec0371028200e3b diff --git a/assets/document-templates b/assets/document-templates index 9f4f5b6c..dc3f298d 160000 --- a/assets/document-templates +++ b/assets/document-templates @@ -1 +1 @@ -Subproject commit 9f4f5b6c640d3fc54398b9888e1028a98f6b2227 +Subproject commit dc3f298ddb8932e385cf81563dd4d2c9429d59e2 diff --git a/css/main.css b/css/main.css index f32e89ce..33623947 100644 --- a/css/main.css +++ b/css/main.css @@ -25,8 +25,8 @@ .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, 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/js/main.js b/js/main.js index 1823cb17..041be026 100644 --- a/js/main.js +++ b/js/main.js @@ -450,25 +450,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); } }); } From f3b5ce2b42fd100abe8eaf7de84c08ab30e50dfc Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 20 Jun 2024 11:29:28 +0300 Subject: [PATCH 04/22] feat: create form action for oform --- lib/appconfig.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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, From c42a4a0b8dba38de98894da14b9c7a4772c83bcc Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 20 Jun 2024 11:37:56 +0300 Subject: [PATCH 05/22] feat: remove fill in action --- css/main.css | 1 - js/main.js | 11 ----------- l10n/bg_BG.js | 1 - l10n/bg_BG.json | 1 - l10n/ca.js | 1 - l10n/ca.json | 1 - l10n/da.js | 1 - l10n/da.json | 1 - l10n/de.js | 1 - l10n/de.json | 1 - l10n/de_DE.js | 1 - l10n/de_DE.json | 1 - l10n/es.js | 1 - l10n/es.json | 1 - l10n/fr.js | 1 - l10n/fr.json | 1 - l10n/it.js | 1 - l10n/it.json | 1 - l10n/ja.js | 1 - l10n/ja.json | 1 - l10n/nl.js | 1 - l10n/nl.json | 1 - l10n/pl.js | 1 - l10n/pl.json | 1 - l10n/pt_BR.js | 1 - l10n/pt_BR.json | 1 - l10n/ru.js | 1 - l10n/ru.json | 1 - l10n/sv.js | 1 - l10n/sv.json | 1 - l10n/uk.js | 1 - l10n/uk.json | 1 - l10n/zh_CN.js | 1 - l10n/zh_CN.json | 1 - 34 files changed, 44 deletions(-) diff --git a/css/main.css b/css/main.css index 33623947..6a7787ea 100644 --- a/css/main.css +++ b/css/main.css @@ -31,7 +31,6 @@ .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/js/main.js b/js/main.js index 041be026..b9f7e2c2 100644 --- a/js/main.js +++ b/js/main.js @@ -357,17 +357,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", diff --git a/l10n/bg_BG.js b/l10n/bg_BG.js index b511ac88..6be03d25 100644 --- a/l10n/bg_BG.js +++ b/l10n/bg_BG.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/bg_BG.json b/l10n/bg_BG.json index e8702946..5c2141c3 100644 --- a/l10n/bg_BG.json +++ b/l10n/bg_BG.json @@ -101,7 +101,6 @@ "PDF form": "PDF формуляр", "PDF form from existing text file": "Избери файл за комбиниране", "Create form": "Създайте формуляр", - "Fill in form in ONLYOFFICE": "Попълнете формуляр в ONLYOFFICE", "Create new PDF form": "Създайте нов PDF формуляр", "Security": "Сигурност", "Light": "Светла", 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 91035918..eb05a840 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -102,7 +102,6 @@ OC.L10N.register( "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", diff --git a/l10n/nl.json b/l10n/nl.json index bb8dec9b..6809b8b1 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -100,7 +100,6 @@ "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", diff --git a/l10n/pl.js b/l10n/pl.js index 7c843b9a..89fc95a8 100644 --- a/l10n/pl.js +++ b/l10n/pl.js @@ -102,7 +102,6 @@ OC.L10N.register( "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", diff --git a/l10n/pl.json b/l10n/pl.json index eb987b4d..f2b0dfab 100644 --- a/l10n/pl.json +++ b/l10n/pl.json @@ -100,7 +100,6 @@ "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", 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 42e79ef9..471cb565 100644 --- a/l10n/uk.js +++ b/l10n/uk.js @@ -102,7 +102,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/uk.json b/l10n/uk.json index 51c18d0e..a4fce410 100644 --- a/l10n/uk.json +++ b/l10n/uk.json @@ -100,7 +100,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/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": "运行文档宏", From c2f50560fa54c7dff7f3747eb8bb18563bfaa215 Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 20 Jun 2024 11:39:26 +0300 Subject: [PATCH 06/22] feat: fillable format for filling only --- controller/editorapicontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php index 1676cc5f..2bd14e8e 100644 --- a/controller/editorapicontroller.php +++ b/controller/editorapicontroller.php @@ -380,7 +380,7 @@ 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; + $params["document"]["permissions"]["edit"] = $editable && !$canFillForms; if (($editable || $restrictedEditing) && $canEdit || $canFillForms) { $ownerId = null; $owner = $file->getOwner(); From e107a9bc79e2f916aed2dd0b5fd518877e769a4f Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 20 Jun 2024 11:50:45 +0300 Subject: [PATCH 07/22] feat: force editing by url --- controller/editorapicontroller.php | 5 +++-- controller/editorcontroller.php | 6 ++++-- js/editor.js | 5 +++++ templates/editor.php | 3 ++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php index 2bd14e8e..6c7f9912 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,7 +381,7 @@ 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 && !$canFillForms; + $params["document"]["permissions"]["edit"] = $editable && ($forceEdit || !$canFillForms); if (($editable || $restrictedEditing) && $canEdit || $canFillForms) { $ownerId = null; $owner = $file->getOwner(); diff --git a/controller/editorcontroller.php b/controller/editorcontroller.php index 7aedb397..eb53cc7c 100644 --- a/controller/editorcontroller.php +++ b/controller/editorcontroller.php @@ -1280,13 +1280,14 @@ public function download($fileId, $toExtension = null, $template = false) { * @param bool $inframe - open in frame * @param bool $template - file is template * @param string $anchor - anchor for file content + * @param bool $forceEdit - open editin * * @return TemplateResponse|RedirectResponse * * @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, $template = false, $anchor = null, $forceEdit = false) { $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) { diff --git a/js/editor.js b/js/editor.js index 3bcf8694..36d4d423 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"); } 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="">