From 6d66b47b3200df628786c69c1eec6311ad03e8b6 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 18 Mar 2021 11:58:22 +0100 Subject: [PATCH] QDS: Check terms in Assert Exporter Plugin Remove "QML" or replace it with something else. Change-Id: I897e0c217fff705f3f5e045e532e2114f85d83bc Reviewed-by: Thomas Hartmann --- .../assetexporterplugin/assetexportdialog.ui | 2 +- .../qmldesigner/assetexporterplugin/assetexporter.cpp | 10 +++++----- .../assetexporterplugin/assetexporterplugin.cpp | 4 ++-- .../qmldesigner/assetexporterplugin/filepathmodel.cpp | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/qmldesigner/assetexporterplugin/assetexportdialog.ui b/src/plugins/qmldesigner/assetexporterplugin/assetexportdialog.ui index 0f51525b6b8..fa807588676 100644 --- a/src/plugins/qmldesigner/assetexporterplugin/assetexportdialog.ui +++ b/src/plugins/qmldesigner/assetexporterplugin/assetexportdialog.ui @@ -11,7 +11,7 @@ - Export QML + Export Components diff --git a/src/plugins/qmldesigner/assetexporterplugin/assetexporter.cpp b/src/plugins/qmldesigner/assetexporterplugin/assetexporter.cpp index d7824252329..9b74b3471f1 100644 --- a/src/plugins/qmldesigner/assetexporterplugin/assetexporter.cpp +++ b/src/plugins/qmldesigner/assetexporterplugin/assetexporter.cpp @@ -158,7 +158,7 @@ void AssetExporter::beginExport() void AssetExporter::cancel() { if (!m_cancelled) { - ExportNotification::addInfo(tr("Cancelling export.")); + ExportNotification::addInfo(tr("Canceling export.")); m_assetDumper.reset(); m_cancelled = true; } @@ -227,13 +227,13 @@ void AssetExporter::notifyLoadError(AssetExporterView::LoadState state) errorStr = tr("Loading file is taking too long."); break; case AssetExporterView::LoadState::QmlErrorState: - errorStr = tr("Cannot parse. QML file has errors."); + errorStr = tr("Cannot parse. The file contains coding errors."); break; default: return; } qCDebug(loggerError) << "QML load error:" << errorStr; - ExportNotification::addError(tr("Loading QML failed. %1").arg(errorStr)); + ExportNotification::addError(tr("Loading components failed. %1").arg(errorStr)); } void AssetExporter::notifyProgress(double value) const @@ -250,13 +250,13 @@ void AssetExporter::onQmlFileLoaded() ->documentManager() .currentDesignDocument(); if (designDocument->hasQmlParseErrors()) { - ExportNotification::addError(tr("Cannot export QML. Document \"%1\" have parsing errors.") + ExportNotification::addError(tr("Cannot export component. Document \"%1\" has parsing errors.") .arg(designDocument->displayName())); } else { exportComponent(m_view->rootModelNode()); QString error; if (!m_view->saveQmlFile(&error)) { - ExportNotification::addError(tr("Error saving QML file. %1") + ExportNotification::addError(tr("Error saving component file. %1") .arg(error.isEmpty()? tr("Unknown") : error)); } } diff --git a/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp b/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp index cf7caef6b01..1c6e6d65df6 100644 --- a/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp +++ b/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp @@ -106,8 +106,8 @@ void AssetExporterPlugin::onExport() void AssetExporterPlugin::addActions() { - auto exportAction = new QAction(tr("Export QML")); - exportAction->setToolTip(tr("Export QML code of the current project.")); + auto exportAction = new QAction(tr("Export Components")); + exportAction->setToolTip(tr("Export components in the current project.")); connect(exportAction, &QAction::triggered, this, &AssetExporterPlugin::onExport); Core::Command *cmd = Core::ActionManager::registerAction(exportAction, Constants::EXPORT_QML); diff --git a/src/plugins/qmldesigner/assetexporterplugin/filepathmodel.cpp b/src/plugins/qmldesigner/assetexporterplugin/filepathmodel.cpp index 718a11f7d99..959ce18d605 100644 --- a/src/plugins/qmldesigner/assetexporterplugin/filepathmodel.cpp +++ b/src/plugins/qmldesigner/assetexporterplugin/filepathmodel.cpp @@ -70,10 +70,10 @@ FilePathModel::~FilePathModel() { if (m_preprocessWatcher && !m_preprocessWatcher->isCanceled() && !m_preprocessWatcher->isFinished()) { - ExportNotification::addInfo(tr("Canceling QML files preparation.")); + ExportNotification::addInfo(tr("Canceling file preparation.")); m_preprocessWatcher->cancel(); m_preprocessWatcher->waitForFinished(); - qCDebug(loggerInfo) << "Canceling QML files preparation done."; + qCDebug(loggerInfo) << "Canceled file preparation."; } }