forked from qt-creator/qt-creator
McuSupport: Make plugin UI translatable
After refactoring, the package labels are sourced at run-time from json kit files. Added a QMap containing all the known labels used to map labels to their translation, McuPackage::packageLabelTranslations. Task-number: QTCREATORBUG-27177 Change-Id: Ibd530a0f9c5dbbdf8c7d5eafa53785fb713c9d0a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -225,8 +225,8 @@ void McuSupportOptionsWidget::updateStatus()
|
||||
: tr("A kit for the selected target can be created."));
|
||||
} else {
|
||||
m_kitCreationInfoLabel->setType(Utils::InfoLabel::NotOk);
|
||||
m_kitCreationInfoLabel->setText("Provide the package paths in order to create a kit "
|
||||
"for your target.");
|
||||
m_kitCreationInfoLabel->setText(tr("Provide the package paths in order to create a kit "
|
||||
"for your target."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,8 +238,8 @@ void McuSupportOptionsWidget::updateStatus()
|
||||
m_statusInfoLabel->setVisible(!cMakeAvailable);
|
||||
if (m_statusInfoLabel->isVisible()) {
|
||||
m_statusInfoLabel->setType(Utils::InfoLabel::NotOk);
|
||||
m_statusInfoLabel->setText("No CMake tool was detected. Add a CMake tool in the "
|
||||
"<a href=\"cmake\">CMake options</a> and press Apply.");
|
||||
m_statusInfoLabel->setText(tr("No CMake tool was detected. Add a CMake tool in the "
|
||||
"<a href=\"cmake\">CMake options</a> and press Apply."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user