Optical character recognition (OCR) and translation tool
-Version: %1
-Changelog: %2
-Author: Gres (%3)
-Issues: %4
)") - .arg(QApplication::applicationVersion(), changelog, mail, issues); + R"(Optical character recognition (OCR) and translation tool
)"), + QObject::tr(R"(Version: %1
)") + .arg(QApplication::applicationVersion()), + QObject::tr(R"(Changelog: %2
)") + .arg(changelog, QUrl(changelog).fileName()), + QObject::tr(R"(License: MIT
)").arg(license), + QObject::tr(R"(Author: Gres (%1)
)") + .arg(mail), + QObject::tr(R"(Issues: %1
)").arg(issues), + }; - ui->aboutLabel->setText(aboutText); + ui->aboutLabel->setText(aboutLines.join('\n')); ui->aboutLabel->setTextFormat(Qt::RichText); ui->aboutLabel->setOpenExternalLinks(true); - 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.")); + 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);