forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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; });
|
||||
|
||||
@@ -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<MarkdownEditor *>(EditorManager::currentEditor());
|
||||
if (editor)
|
||||
|
||||
@@ -9072,7 +9072,7 @@ expected_str<void> 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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user