From d7953024ff8871412b259d9ecc85238e5474f63d Mon Sep 17 00:00:00 2001 From: Gres Date: Sat, 9 May 2020 13:28:08 +0300 Subject: [PATCH] Update in-app help message --- share/translations/screentranslator_ru.ts | 14 ++++++++++---- src/settingseditor.cpp | 23 +++++++++++++++-------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/share/translations/screentranslator_ru.ts b/share/translations/screentranslator_ru.ts index 60ac658..bd5f181 100644 --- a/share/translations/screentranslator_ru.ts +++ b/share/translations/screentranslator_ru.ts @@ -1075,24 +1075,30 @@ in %1 Текст для проверки - + The program workflow consists of the following steps: 1. Selection on the screen area 2. Recognition of the selected area 3. Correction of the recognized text (optional) 4. Translation of the corrected text (optional) User interaction is only required for step 1. -Steps 2, 3 and 4 require additional data that can be downloaded from the updates page. +Steps 2, 3 and 4 require additional data that can be downloaded from the updates page. + +At first start, go to the updates page and install desired recognition languages and translators and, optionally, hunspell dictionaries. +Then set default recognition and translation languages, enable some (or all) translators and the "translate text" setting, if needed. Процесс работы с программой состоит из следующих шагов: 1. Выделение области экрана 2. Распознавание выделенной области 3. Коррекция распознанного текста (не обязательно) 4. Перевод откорректированного текста (не обязательно) Действия пользователя требуются только на первом шаге. -Шаги 2,3 и 4 требуют дополнительных данных, которые можно скачать на странице обновлений. +Шаги 2,3 и 4 требуют дополнительных данных, которые можно скачать на странице обновлений. + +При первом запуске перейдите на страницу обновлений и установите желаемые языки распознавания и переводчики, а также, если нужно, словари hunspell. +Далее установите языки распознавания и перевода по умолчанию, активируйте некоторые (или все) переводчики и настройку "переводить текст", если нужно. - + Portable changed. Apply settings first Portable режиме изменени. Сначала применить настройки diff --git a/src/settingseditor.cpp b/src/settingseditor.cpp index a490418..fcc51dd 100644 --- a/src/settingseditor.cpp +++ b/src/settingseditor.cpp @@ -112,14 +112,21 @@ SettingsEditor::SettingsEditor(Manager &manager, update::Loader &updater) ui->aboutLabel->setTextFormat(Qt::RichText); ui->aboutLabel->setOpenExternalLinks(true); - ui->helpLabel->setText( - tr(R"(The program workflow consists of the following steps: -1. Selection on the screen area -2. Recognition of the selected area -3. Correction of the recognized text (optional) -4. Translation of the corrected text (optional) -User interaction is only required for step 1. -Steps 2, 3 and 4 require additional data that can be downloaded from the updates page.)")); + ui->helpLabel->setText(tr( + "The program workflow consists of the following steps:\n" + "1. Selection on the screen area\n" + "2. Recognition of the selected area\n" + "3. Correction of the recognized text (optional)\n" + "4. Translation of the corrected text (optional)\n" + "User interaction is only required for step 1.\n" + "Steps 2, 3 and 4 require additional data that can be downloaded from " + "the updates page.\n" + "\n" + "At first start, go to the updates page and install desired " + "recognition languages and translators and, optionally, hunspell " + "dictionaries.\n" + "Then set default recognition and translation languages, enable some " + "(or all) translators and the \"translate text\" setting, if needed.")); } new service::WidgetState(this);