Add license info
This commit is contained in:
parent
74e2be5b8d
commit
64869f6128
@ -712,17 +712,34 @@ in %1</source>
|
|||||||
<translation>Не восстанавливать интерфейс пользователя (размер и положения окна и т.д.)</translation>
|
<translation>Не восстанавливать интерфейс пользователя (размер и положения окна и т.д.)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/settingseditor.cpp" line="116"/>
|
<location filename="../../src/settingseditor.cpp" line="117"/>
|
||||||
<source><p>Optical character recognition (OCR) and translation tool</p>
|
<source><p>Optical character recognition (OCR) and translation tool</p></source>
|
||||||
<p>Version: %1</p>
|
<translation><p>Инструмент оптического распознавания текста (OCR) и перевода</p></translation>
|
||||||
<p>Changelog: <a href="%2">%2</a></p>
|
</message>
|
||||||
<p>Author: Gres (<a href="mailto:%3">%3</a>)</p>
|
<message>
|
||||||
<p>Issues: <a href="%4">%4</a></p></source>
|
<location filename="../../src/settingseditor.cpp" line="119"/>
|
||||||
<translation><p>Инструмент оптического распознавания текста (OCR) и перевода</p>
|
<source><p>Version: %1</p></source>
|
||||||
<p>Версия: %1</p>
|
<translation><p>Версия: %1</p></translation>
|
||||||
<p>Список изменений: <a href="%2">%2</a></p>
|
</message>
|
||||||
<p>Автор: Gres (<a href="mailto:%3">%3</a>)</p>
|
<message>
|
||||||
<p>Поддержка: <a href="%4">%4</a></p></translation>
|
<location filename="../../src/settingseditor.cpp" line="121"/>
|
||||||
|
<source><p>Changelog: <a href="%1">%2</a></p></source>
|
||||||
|
<translation><p>Список изменений: <a href="%1">%2</a></p></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/settingseditor.cpp" line="123"/>
|
||||||
|
<source><p>License: <a href="%3">MIT</a></p></source>
|
||||||
|
<translation><p>Лицензия: <a href="%3">MIT</a></p></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/settingseditor.cpp" line="124"/>
|
||||||
|
<source><p>Author: Gres (<a href="mailto:%1">%1</a>)</p></source>
|
||||||
|
<translation><p>Автор: Gres (<a href="mailto:%1">%1</a>)</p></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/settingseditor.cpp" line="126"/>
|
||||||
|
<source><p>Issues: <a href="%1">%1</a></p></source>
|
||||||
|
<translation><p>Поддержка: <a href="%1">%1</a></p></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -1122,7 +1139,7 @@ in %1</source>
|
|||||||
<translation>Текст для проверки</translation>
|
<translation>Текст для проверки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/settingseditor.cpp" line="128"/>
|
<location filename="../../src/settingseditor.cpp" line="134"/>
|
||||||
<source>The program workflow consists of the following steps:
|
<source>The program workflow consists of the following steps:
|
||||||
1. Selection on the screen area
|
1. Selection on the screen area
|
||||||
2. Recognition of the selected area
|
2. Recognition of the selected area
|
||||||
@ -1145,7 +1162,7 @@ Then set default recognition and translation languages, enable some (or all) tra
|
|||||||
Далее установите языки распознавания и перевода по умолчанию, активируйте некоторые (или все) переводчики и настройку "переводить текст", если нужно.</translation>
|
Далее установите языки распознавания и перевода по умолчанию, активируйте некоторые (или все) переводчики и настройку "переводить текст", если нужно.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/settingseditor.cpp" line="357"/>
|
<location filename="../../src/settingseditor.cpp" line="366"/>
|
||||||
<source>Portable changed. Apply settings first</source>
|
<source>Portable changed. Apply settings first</source>
|
||||||
<translation>Portable режиме изменени. Сначала применить настройки</translation>
|
<translation>Portable режиме изменени. Сначала применить настройки</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -110,36 +110,45 @@ SettingsEditor::SettingsEditor(Manager &manager, update::Loader &updater)
|
|||||||
const auto issues = baseUrl + "/issues";
|
const auto issues = baseUrl + "/issues";
|
||||||
QLocale locale;
|
QLocale locale;
|
||||||
const auto changelog =
|
const auto changelog =
|
||||||
baseUrl + "/share/Changelog_" +
|
baseUrl + "/blob/master/share/Changelog_" +
|
||||||
(locale.language() == QLocale::Russian ? "ru" : "en") + ".md";
|
(locale.language() == QLocale::Russian ? "ru" : "en") + ".md";
|
||||||
const auto aboutText =
|
const auto license = baseUrl + "/blob/master/LICENSE.md";
|
||||||
|
const auto aboutLines = QStringList{
|
||||||
QObject::tr(
|
QObject::tr(
|
||||||
R"(<p>Optical character recognition (OCR) and translation tool</p>
|
R"(<p>Optical character recognition (OCR) and translation tool</p>)"),
|
||||||
<p>Version: %1</p>
|
QObject::tr(R"(<p>Version: %1</p>)")
|
||||||
<p>Changelog: <a href="%2">%2</a></p>
|
.arg(QApplication::applicationVersion()),
|
||||||
<p>Author: Gres (<a href="mailto:%3">%3</a>)</p>
|
QObject::tr(R"(<p>Changelog: <a href="%1">%2</a></p>)")
|
||||||
<p>Issues: <a href="%4">%4</a></p>)")
|
.arg(changelog, QUrl(changelog).fileName()),
|
||||||
.arg(QApplication::applicationVersion(), changelog, mail, issues);
|
QObject::tr(R"(<p>License: <a href="%3">MIT</a></p>)").arg(license),
|
||||||
|
QObject::tr(R"(<p>Author: Gres (<a href="mailto:%1">%1</a>)</p>)")
|
||||||
|
.arg(mail),
|
||||||
|
QObject::tr(R"(<p>Issues: <a href="%1">%1</a></p>)").arg(issues),
|
||||||
|
};
|
||||||
|
|
||||||
ui->aboutLabel->setText(aboutText);
|
ui->aboutLabel->setText(aboutLines.join('\n'));
|
||||||
ui->aboutLabel->setTextFormat(Qt::RichText);
|
ui->aboutLabel->setTextFormat(Qt::RichText);
|
||||||
ui->aboutLabel->setOpenExternalLinks(true);
|
ui->aboutLabel->setOpenExternalLinks(true);
|
||||||
|
|
||||||
ui->helpLabel->setText(tr(
|
ui->helpLabel->setText(
|
||||||
"The program workflow consists of the following steps:\n"
|
tr("The program workflow consists of the following steps:\n"
|
||||||
"1. Selection on the screen area\n"
|
"1. Selection on the screen area\n"
|
||||||
"2. Recognition of the selected area\n"
|
"2. Recognition of the selected area\n"
|
||||||
"3. Correction of the recognized text (optional)\n"
|
"3. Correction of the recognized text (optional)\n"
|
||||||
"4. Translation of the corrected text (optional)\n"
|
"4. Translation of the corrected text (optional)\n"
|
||||||
"User interaction is only required for step 1.\n"
|
"User interaction is only required for step 1.\n"
|
||||||
"Steps 2, 3 and 4 require additional data that can be downloaded from "
|
"Steps 2, 3 and 4 require additional data that can be "
|
||||||
"the updates page.\n"
|
"downloaded from "
|
||||||
"\n"
|
"the updates page.\n"
|
||||||
"At first start, go to the updates page and install desired "
|
"\n"
|
||||||
"recognition languages and translators and, optionally, hunspell "
|
"At first start, go to the updates page and install desired "
|
||||||
"dictionaries.\n"
|
"recognition languages and translators and, optionally, "
|
||||||
"Then set default recognition and translation languages, enable some "
|
"hunspell "
|
||||||
"(or all) translators and the \"translate text\" setting, if needed."));
|
"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);
|
new service::WidgetState(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user