Fix UI text capitalization, punctuation, and phrasing

Change-Id: I41951660a464601063e5cedd417db2cb7cd37e44
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Leena Miettinen
2023-10-20 16:08:07 +02:00
parent 76f082186e
commit 61088bba69
13 changed files with 22 additions and 22 deletions

View File

@@ -1257,7 +1257,7 @@ void Process::start()
d->m_result = ProcessResult::StartFailed; d->m_result = ProcessResult::StartFailed;
d->m_resultData.m_exitCode = 255; d->m_resultData.m_exitCode = 255;
d->m_resultData.m_exitStatus = QProcess::CrashExit; 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()); .arg(d->m_setup.m_commandLine.toUserOutput());
d->m_resultData.m_error = QProcess::FailedToStart; d->m_resultData.m_error = QProcess::FailedToStart;
d->emitGuardedSignal(&Process::done); d->emitGuardedSignal(&Process::done);

View File

@@ -253,7 +253,7 @@ void PyDapEngine::setupEngine()
Utils::InfoBarEntry Utils::InfoBarEntry
info(installDebugPyInfoBarId, info(installDebugPyInfoBarId,
Tr::tr( 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); Utils::InfoBarEntry::GlobalSuppression::Enabled);
info.addCustomButton(Tr::tr("Install debugpy"), [this] { info.addCustomButton(Tr::tr("Install debugpy"), [this] {
Core::ICore::infoBar()->removeInfo(installDebugPyInfoBarId); Core::ICore::infoBar()->removeInfo(installDebugPyInfoBarId);

View File

@@ -333,8 +333,8 @@ void QmlPreviewPlugin::previewCurrentFile()
return; return;
if (runningPreviews().isEmpty()) if (runningPreviews().isEmpty())
QMessageBox::warning(Core::ICore::dialogParent(), Tr::tr("QML Preview not running"), QMessageBox::warning(Core::ICore::dialogParent(), Tr::tr("QML Preview Not Running"),
Tr::tr("Please start the QML Preview for the project before selecting " Tr::tr("Start the QML Preview for the project before selecting "
"a specific file for preview.")); "a specific file for preview."));
const QString file = currentNode->filePath().toString(); const QString file = currentNode->filePath().toString();

View File

@@ -299,11 +299,11 @@ CropWidget::CropWidget(QWidget *parent)
m_warningIcon = new CropSizeWarningIcon(CropSizeWarningIcon::StandardVariant); m_warningIcon = new CropSizeWarningIcon(CropSizeWarningIcon::StandardVariant);
auto saveImageButton = new QToolButton; 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()); saveImageButton->setIcon(Icons::SAVEFILE.icon());
auto copyImageToClipboardAction = new QAction(Tr::tr("Copy current, cropped frame as image " 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->setIcon(Icons::SNAPSHOT.icon());
copyImageToClipboardAction->setShortcut(QKeySequence::Copy); copyImageToClipboardAction->setShortcut(QKeySequence::Copy);

View File

@@ -155,7 +155,7 @@ ExportWidget::ExportWidget(QWidget *parent)
[&lastFormat] (const Format &f) { [&lastFormat] (const Format &f) {
return f.displayName == lastFormat(); return f.displayName == lastFormat();
}).fileDialogFilter(); }).fileDialogFilter();
FilePath file = FileUtils::getSaveFilePath(nullptr, Tr::tr("Save as"), lastDir(), FilePath file = FileUtils::getSaveFilePath(nullptr, Tr::tr("Save As"), lastDir(),
fileDialogFilters(), &selectedFilter); fileDialogFilters(), &selectedFilter);
if (!file.isEmpty()) { if (!file.isEmpty()) {
m_currentFormat = findOr(formats(), defaultFormat, m_currentFormat = findOr(formats(), defaultFormat,

View File

@@ -98,7 +98,7 @@ CropSizeWarningIcon::CropSizeWarningIcon(IconVariant backgroundType, QWidget *pa
{ {
setMinimumSize(warningIconSize); setMinimumSize(warningIconSize);
setToolTip(Tr::tr("Width and height are not both divisible by 2. " 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 = new QTimer(this);
m_updateTimer->setInterval(350); m_updateTimer->setInterval(350);
m_updateTimer->setSingleShot(true); m_updateTimer->setSingleShot(true);

View File

@@ -108,7 +108,7 @@ RecordOptionsDialog::RecordOptionsDialog(QWidget *parent)
Column { Column {
Row { m_screenId, st }, Row { m_screenId, st },
Group { Group {
title(Tr::tr("Recorded screen area")), title(Tr::tr("Recorded screen area:")),
Column { Column {
m_cropScene, m_cropScene,
Row { st, m_cropRectLabel, m_resetButton }, Row { st, m_cropRectLabel, m_resetButton },
@@ -210,7 +210,7 @@ RecordWidget::RecordWidget(const FilePath &recordFile, QWidget *parent)
progressLabel->setEnabled(false); progressLabel->setEnabled(false);
progressLabel->setAlignment(Qt::AlignVCenter | Qt::AlignRight); 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); addAction(m_openClipAction);
setContextMenuPolicy(Qt::ActionsContextMenu); setContextMenuPolicy(Qt::ActionsContextMenu);
@@ -289,7 +289,7 @@ RecordWidget::RecordWidget(const FilePath &recordFile, QWidget *parent)
} else if (!clip.isLossless()) { } else if (!clip.isLossless()) {
QMessageBox::critical(Core::ICore::dialogParent(), QMessageBox::critical(Core::ICore::dialogParent(),
Tr::tr("Clip Not Supported"), 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\".")); "pixel format \"rgb24\"."));
} else { } else {
m_clipInfo.duration = 0; m_clipInfo.duration = 0;

View File

@@ -173,7 +173,7 @@ ScreenRecorderSettings::ScreenRecorderSettings()
using namespace Layouting; using namespace Layouting;
return Column { return Column {
Group { Group {
title(Tr::tr("FFmpeg installation")), title(Tr::tr("FFmpeg Installation")),
Form { Form {
ffmpegTool, br, ffmpegTool, br,
ffprobeTool, br, ffprobeTool, br,
@@ -181,7 +181,7 @@ ScreenRecorderSettings::ScreenRecorderSettings()
}, },
}, },
Group { Group {
title(Tr::tr("Record settings")), title(Tr::tr("Record Settings")),
Column { Column {
captureCursor, captureCursor,
captureMouseClicks, captureMouseClicks,
@@ -191,7 +191,7 @@ ScreenRecorderSettings::ScreenRecorderSettings()
}, },
}, },
Group { Group {
title(Tr::tr("Export settings")), title(Tr::tr("Export Settings")),
Column { Column {
animatedImagesAsEndlessLoop, animatedImagesAsEndlessLoop,
}, },

View File

@@ -151,7 +151,7 @@ public:
JsonEditorFactory::JsonEditorFactory() JsonEditorFactory::JsonEditorFactory()
{ {
setId(JSON_EDITOR_ID); setId(JSON_EDITOR_ID);
setDisplayName(Tr::tr("Json Editor")); setDisplayName(Tr::tr("JSON Editor"));
addMimeType(JSON_MIME_TYPE); addMimeType(JSON_MIME_TYPE);
setEditorCreator([] { return new BaseTextEditor; }); setEditorCreator([] { return new BaseTextEditor; });

View File

@@ -487,7 +487,7 @@ MarkdownEditorFactory::MarkdownEditorFactory()
editor->triggerInlineCode(); editor->triggerInlineCode();
}); });
cmd = ActionManager::registerAction(&m_linkAction, LINK_ACTION, textContext); 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(), [] { QObject::connect(&m_linkAction, &QAction::triggered, EditorManager::instance(), [] {
auto editor = qobject_cast<MarkdownEditor *>(EditorManager::currentEditor()); auto editor = qobject_cast<MarkdownEditor *>(EditorManager::currentEditor());
if (editor) if (editor)

View File

@@ -9072,7 +9072,7 @@ expected_str<void> TextEditorWidget::configureGenericHighlighter(const QString &
{ {
Highlighter::Definition definition = TextEditor::Highlighter::definitionForName(definitionName); Highlighter::Definition definition = TextEditor::Highlighter::definitionForName(definitionName);
if (!definition.isValid()) 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->configureGenericHighlighter(definition);
d->removeSyntaxInfoBar(); d->removeSyntaxInfoBar();

View File

@@ -126,11 +126,11 @@ private:
QMutexLocker locker(&m_mutex); QMutexLocker locker(&m_mutex);
while (true) { while (true) {
if (m_state == State::Canceled) if (m_state == State::Canceled)
return make_unexpected(Tr::tr("Parsing canceled")); return make_unexpected(Tr::tr("Parsing canceled."));
if (!m_inputBuffer.isEmpty()) if (!m_inputBuffer.isEmpty())
return std::exchange(m_inputBuffer, {}); return std::exchange(m_inputBuffer, {});
if (m_state == State::Finalized) 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); m_waitCondition.wait(&m_mutex);
} }
QTC_CHECK(false); QTC_CHECK(false);
@@ -198,7 +198,7 @@ static qint64 parseInt64(const QString &str, const QString &context)
bool ok; bool ok;
const quint64 v = str.toLongLong(&ok); const quint64 v = str.toLongLong(&ok);
if (!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; return v;
} }
@@ -238,7 +238,7 @@ QString ParserThread::blockingReadElementText()
//affects at least Qt <= 4.7.1. Reported as QTBUG-14661. //affects at least Qt <= 4.7.1. Reported as QTBUG-14661.
if (!m_reader.isStartElement()) 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; QString result;