Show used translator name
This commit is contained in:
parent
77a1f4a00b
commit
b2f5cc93f2
@ -84,6 +84,7 @@ void ResultWidget::show(const TaskPtr &task)
|
||||
recognized_->setToolTip(tooltip);
|
||||
|
||||
translated_->setText(task->translated);
|
||||
translated_->setToolTip(task->usedTranslator);
|
||||
|
||||
const auto gotTranslation = !task->translated.isEmpty();
|
||||
translated_->setVisible(gotTranslation);
|
||||
|
@ -22,6 +22,7 @@ public:
|
||||
LanguageId targetLanguage;
|
||||
|
||||
QStringList translators;
|
||||
QString usedTranslator;
|
||||
|
||||
QString error;
|
||||
QStringList translatorErrors;
|
||||
|
@ -149,6 +149,7 @@ void WebPage::setTranslated(const QString &text)
|
||||
|
||||
SOFT_ASSERT(task_, return )
|
||||
task_->translated = text;
|
||||
task_->usedTranslator = scriptName_;
|
||||
translator_.finish(task_);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user