diff --git a/src/libs/utils/process.cpp b/src/libs/utils/process.cpp index b10ea090dfc..534dcff78f1 100644 --- a/src/libs/utils/process.cpp +++ b/src/libs/utils/process.cpp @@ -1257,7 +1257,7 @@ void Process::start() d->m_result = ProcessResult::StartFailed; d->m_resultData.m_exitCode = 255; d->m_resultData.m_exitStatus = QProcess::CrashExit; - d->m_resultData.m_errorString = Tr::tr("Failed to create process interface for \"%1\"") + d->m_resultData.m_errorString = Tr::tr("Failed to create process interface for \"%1\".") .arg(d->m_setup.m_commandLine.toUserOutput()); d->m_resultData.m_error = QProcess::FailedToStart; d->emitGuardedSignal(&Process::done); diff --git a/src/plugins/debugger/dap/pydapengine.cpp b/src/plugins/debugger/dap/pydapengine.cpp index 2257aab76ad..4bbb479126f 100644 --- a/src/plugins/debugger/dap/pydapengine.cpp +++ b/src/plugins/debugger/dap/pydapengine.cpp @@ -253,7 +253,7 @@ void PyDapEngine::setupEngine() Utils::InfoBarEntry info(installDebugPyInfoBarId, Tr::tr( - "Python Debugging Support is not available. Please install debugpy package."), + "Python debugging support is not available. Install the debugpy package."), Utils::InfoBarEntry::GlobalSuppression::Enabled); info.addCustomButton(Tr::tr("Install debugpy"), [this] { Core::ICore::infoBar()->removeInfo(installDebugPyInfoBarId); diff --git a/src/plugins/qmlpreview/qmlpreviewplugin.cpp b/src/plugins/qmlpreview/qmlpreviewplugin.cpp index 464c9b88f05..011b6f43d2f 100644 --- a/src/plugins/qmlpreview/qmlpreviewplugin.cpp +++ b/src/plugins/qmlpreview/qmlpreviewplugin.cpp @@ -333,8 +333,8 @@ void QmlPreviewPlugin::previewCurrentFile() return; if (runningPreviews().isEmpty()) - QMessageBox::warning(Core::ICore::dialogParent(), Tr::tr("QML Preview not running"), - Tr::tr("Please start the QML Preview for the project before selecting " + QMessageBox::warning(Core::ICore::dialogParent(), Tr::tr("QML Preview Not Running"), + Tr::tr("Start the QML Preview for the project before selecting " "a specific file for preview.")); const QString file = currentNode->filePath().toString(); diff --git a/src/plugins/screenrecorder/cropandtrim.cpp b/src/plugins/screenrecorder/cropandtrim.cpp index c52cc011610..819f0e285b6 100644 --- a/src/plugins/screenrecorder/cropandtrim.cpp +++ b/src/plugins/screenrecorder/cropandtrim.cpp @@ -299,11 +299,11 @@ CropWidget::CropWidget(QWidget *parent) m_warningIcon = new CropSizeWarningIcon(CropSizeWarningIcon::StandardVariant); auto saveImageButton = new QToolButton; - saveImageButton->setToolTip(Tr::tr("Save current, cropped frame as image file...")); + saveImageButton->setToolTip(Tr::tr("Save current, cropped frame as image file.")); saveImageButton->setIcon(Icons::SAVEFILE.icon()); auto copyImageToClipboardAction = new QAction(Tr::tr("Copy current, cropped frame as image " - "into the Clipboard"), this); + "to the clipboard."), this); copyImageToClipboardAction->setIcon(Icons::SNAPSHOT.icon()); copyImageToClipboardAction->setShortcut(QKeySequence::Copy); diff --git a/src/plugins/screenrecorder/export.cpp b/src/plugins/screenrecorder/export.cpp index 76696250943..0c9b67d2a34 100644 --- a/src/plugins/screenrecorder/export.cpp +++ b/src/plugins/screenrecorder/export.cpp @@ -155,7 +155,7 @@ ExportWidget::ExportWidget(QWidget *parent) [&lastFormat] (const Format &f) { return f.displayName == lastFormat(); }).fileDialogFilter(); - FilePath file = FileUtils::getSaveFilePath(nullptr, Tr::tr("Save as"), lastDir(), + FilePath file = FileUtils::getSaveFilePath(nullptr, Tr::tr("Save As"), lastDir(), fileDialogFilters(), &selectedFilter); if (!file.isEmpty()) { m_currentFormat = findOr(formats(), defaultFormat, diff --git a/src/plugins/screenrecorder/ffmpegutils.cpp b/src/plugins/screenrecorder/ffmpegutils.cpp index 08a018e0a6e..96223c3781e 100644 --- a/src/plugins/screenrecorder/ffmpegutils.cpp +++ b/src/plugins/screenrecorder/ffmpegutils.cpp @@ -98,7 +98,7 @@ CropSizeWarningIcon::CropSizeWarningIcon(IconVariant backgroundType, QWidget *pa { setMinimumSize(warningIconSize); setToolTip(Tr::tr("Width and height are not both divisible by 2. " - "The Video export for some of the lossy formats will not work.")); + "The video export for some of the lossy formats will not work.")); m_updateTimer = new QTimer(this); m_updateTimer->setInterval(350); m_updateTimer->setSingleShot(true); diff --git a/src/plugins/screenrecorder/record.cpp b/src/plugins/screenrecorder/record.cpp index 60635219bba..40efe047911 100644 --- a/src/plugins/screenrecorder/record.cpp +++ b/src/plugins/screenrecorder/record.cpp @@ -108,7 +108,7 @@ RecordOptionsDialog::RecordOptionsDialog(QWidget *parent) Column { Row { m_screenId, st }, Group { - title(Tr::tr("Recorded screen area")), + title(Tr::tr("Recorded screen area:")), Column { m_cropScene, Row { st, m_cropRectLabel, m_resetButton }, @@ -210,7 +210,7 @@ RecordWidget::RecordWidget(const FilePath &recordFile, QWidget *parent) progressLabel->setEnabled(false); progressLabel->setAlignment(Qt::AlignVCenter | Qt::AlignRight); - m_openClipAction = new QAction(Tr::tr("Open Mov/qtrle rgb24 file"), this); + m_openClipAction = new QAction(Tr::tr("Open Mov/qtrle rgb24 File"), this); addAction(m_openClipAction); setContextMenuPolicy(Qt::ActionsContextMenu); @@ -289,7 +289,7 @@ RecordWidget::RecordWidget(const FilePath &recordFile, QWidget *parent) } else if (!clip.isLossless()) { QMessageBox::critical(Core::ICore::dialogParent(), Tr::tr("Clip Not Supported"), - Tr::tr("Please chose a clip with the \"qtrle\" codec and " + Tr::tr("Choose a clip with the \"qtrle\" codec and " "pixel format \"rgb24\".")); } else { m_clipInfo.duration = 0; diff --git a/src/plugins/screenrecorder/screenrecordersettings.cpp b/src/plugins/screenrecorder/screenrecordersettings.cpp index f5ac792a949..2d492af2509 100644 --- a/src/plugins/screenrecorder/screenrecordersettings.cpp +++ b/src/plugins/screenrecorder/screenrecordersettings.cpp @@ -173,7 +173,7 @@ ScreenRecorderSettings::ScreenRecorderSettings() using namespace Layouting; return Column { Group { - title(Tr::tr("FFmpeg installation")), + title(Tr::tr("FFmpeg Installation")), Form { ffmpegTool, br, ffprobeTool, br, @@ -181,7 +181,7 @@ ScreenRecorderSettings::ScreenRecorderSettings() }, }, Group { - title(Tr::tr("Record settings")), + title(Tr::tr("Record Settings")), Column { captureCursor, captureMouseClicks, @@ -191,7 +191,7 @@ ScreenRecorderSettings::ScreenRecorderSettings() }, }, Group { - title(Tr::tr("Export settings")), + title(Tr::tr("Export Settings")), Column { animatedImagesAsEndlessLoop, }, diff --git a/src/plugins/terminal/terminalsettings.cpp b/src/plugins/terminal/terminalsettings.cpp index 57093d20a6e..b6bfe3c37c7 100644 --- a/src/plugins/terminal/terminalsettings.cpp +++ b/src/plugins/terminal/terminalsettings.cpp @@ -489,7 +489,7 @@ TerminalSettings::TerminalSettings() lockKeyboard.setSettingsKey("LockKeyboard"); lockKeyboard.setLabelText(Tr::tr("Block shortcuts in terminal")); lockKeyboard.setToolTip( - Tr::tr("Keeps Qt Creator short cuts from interfering with the terminal.")); + Tr::tr("Keeps Qt Creator shortcuts from interfering with the terminal.")); lockKeyboard.setDefaultValue(true); audibleBell.setSettingsKey("AudibleBell"); diff --git a/src/plugins/texteditor/jsoneditor.cpp b/src/plugins/texteditor/jsoneditor.cpp index d49f5efacea..348df6f4d1f 100644 --- a/src/plugins/texteditor/jsoneditor.cpp +++ b/src/plugins/texteditor/jsoneditor.cpp @@ -151,7 +151,7 @@ public: JsonEditorFactory::JsonEditorFactory() { setId(JSON_EDITOR_ID); - setDisplayName(Tr::tr("Json Editor")); + setDisplayName(Tr::tr("JSON Editor")); addMimeType(JSON_MIME_TYPE); setEditorCreator([] { return new BaseTextEditor; }); diff --git a/src/plugins/texteditor/markdowneditor.cpp b/src/plugins/texteditor/markdowneditor.cpp index 0ad3f0ac2f3..935d215f321 100644 --- a/src/plugins/texteditor/markdowneditor.cpp +++ b/src/plugins/texteditor/markdowneditor.cpp @@ -487,7 +487,7 @@ MarkdownEditorFactory::MarkdownEditorFactory() editor->triggerInlineCode(); }); cmd = ActionManager::registerAction(&m_linkAction, LINK_ACTION, textContext); - cmd->setDescription(Tr::tr("Hyper Link")); + cmd->setDescription(Tr::tr("Hyperlink")); QObject::connect(&m_linkAction, &QAction::triggered, EditorManager::instance(), [] { auto editor = qobject_cast(EditorManager::currentEditor()); if (editor) diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 4a87ecc62af..4905d745f9a 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -9072,7 +9072,7 @@ expected_str TextEditorWidget::configureGenericHighlighter(const QString & { Highlighter::Definition definition = TextEditor::Highlighter::definitionForName(definitionName); if (!definition.isValid()) - return make_unexpected(Tr::tr("Could not find definition")); + return make_unexpected(Tr::tr("Could not find definition.")); d->configureGenericHighlighter(definition); d->removeSyntaxInfoBar(); diff --git a/src/plugins/valgrind/xmlprotocol/parser.cpp b/src/plugins/valgrind/xmlprotocol/parser.cpp index 33d78b3ef49..df464e33247 100644 --- a/src/plugins/valgrind/xmlprotocol/parser.cpp +++ b/src/plugins/valgrind/xmlprotocol/parser.cpp @@ -126,11 +126,11 @@ private: QMutexLocker locker(&m_mutex); while (true) { if (m_state == State::Canceled) - return make_unexpected(Tr::tr("Parsing canceled")); + return make_unexpected(Tr::tr("Parsing canceled.")); if (!m_inputBuffer.isEmpty()) return std::exchange(m_inputBuffer, {}); if (m_state == State::Finalized) - return make_unexpected(Tr::tr("Premature end of XML document")); + return make_unexpected(Tr::tr("Premature end of XML document.")); m_waitCondition.wait(&m_mutex); } QTC_CHECK(false); @@ -198,7 +198,7 @@ static qint64 parseInt64(const QString &str, const QString &context) bool ok; const quint64 v = str.toLongLong(&ok); if (!ok) - throw ParserException{Tr::tr("Could not parse hex number from \"%1\" (%2)").arg(str, context)}; + throw ParserException{Tr::tr("Could not parse hex number from \"%1\" (%2).").arg(str, context)}; return v; } @@ -238,7 +238,7 @@ QString ParserThread::blockingReadElementText() //affects at least Qt <= 4.7.1. Reported as QTBUG-14661. if (!m_reader.isStartElement()) - throw ParserException{Tr::tr("Trying to read element text although current position is not start of element")}; + throw ParserException{Tr::tr("Trying to read element text although current position is not start of element.")}; QString result;