diff options
31 files changed, 86 insertions, 79 deletions
diff --git a/src/libs/utils/processinfo.cpp b/src/libs/utils/processinfo.cpp index 11e00e35387..433b8548187 100644 --- a/src/libs/utils/processinfo.cpp +++ b/src/libs/utils/processinfo.cpp @@ -38,11 +38,11 @@ static Result<QList<ProcessInfo>> getLocalProcessesUsingProc(const FilePath &dev { const FilePath procDir = devicePath.withNewPath("/proc"); if (!procDir.exists()) - return ResultError(Tr::tr("%1 does not exist").arg(procDir.toUserOutput())); + return ResultError(Tr::tr("\"%1\" does not exist.").arg(procDir.toUserOutput())); const FilePath find = devicePath.withNewPath("find").searchInPath(); if (!find.isExecutableFile()) - return ResultError(Tr::tr("find is not an existing executable")); + return ResultError(Tr::tr("\"find\" is not an existing executable")); static const QString execs = "-exec test -f {}/exe \\; " "-exec test -f {}/cmdline \\; " @@ -144,7 +144,7 @@ static Result<QList<ProcessInfo>> getLocalProcessesUsingPs(const FilePath &devic const FilePath ps = deviceRoot.withNewPath("ps").searchInPath(); if (!ps.isExecutableFile()) - return ResultError(Tr::tr("ps is not an existing executable")); + return ResultError(Tr::tr("\"ps\" is not an existing executable.")); // cmdLines are full command lines, usually with absolute path, // exeNames only the file part of the executable's path. @@ -179,7 +179,7 @@ static Result<QList<ProcessInfo>> getProcessesUsingPidin(const FilePath &deviceR { const FilePath pidin = deviceRoot.withNewPath("pidin").searchInPath(); if (!pidin.isExecutableFile()) - return ResultError(Tr::tr("pidin is not an existing executable")); + return ResultError(Tr::tr("\"pidin\" is not an existing executable.")); Process process; process.setCommand({pidin, {"-F", "%a %A {/%n}"}}); diff --git a/src/libs/utils/result.cpp b/src/libs/utils/result.cpp index afd63ce1c77..c00025f11dd 100644 --- a/src/libs/utils/result.cpp +++ b/src/libs/utils/result.cpp @@ -13,11 +13,11 @@ static QString messageForCode(ResultSpecialErrorCode code) { switch (code) { case ResultAssert: - return Tr::tr("Internal error: %1"); + return Tr::tr("Internal error: %1."); case ResultUnimplemented: - return Tr::tr("Not implemented error: %1"); + return Tr::tr("Not implemented error: %1."); default: - return Tr::tr("Unknown error: %1"); + return Tr::tr("Unknown error: %1."); } } @@ -26,7 +26,8 @@ ResultError::ResultError(const QString &errorMessage) {} ResultError::ResultError(ResultSpecialErrorCode code, const QString &errorMessage) - : m_error(messageForCode(code).arg(errorMessage.isEmpty() ? Tr::tr("Unknown reason") : errorMessage)) + : m_error(messageForCode(code).arg( + errorMessage.isEmpty() ? Tr::tr("Unknown reason.") : errorMessage)) {} Result<> makeResult(bool ok, const QString &errorMessage) diff --git a/src/libs/utils/unarchiver.cpp b/src/libs/utils/unarchiver.cpp index 5301ea9ebfb..aa9460012d1 100644 --- a/src/libs/utils/unarchiver.cpp +++ b/src/libs/utils/unarchiver.cpp @@ -164,7 +164,7 @@ static Result<> unarchive( const int filter = archive_filter_code(a.get(), 0); if (format == ARCHIVE_FORMAT_RAW && filter == ARCHIVE_FILTER_NONE) - return ResultError(Tr::tr("Not an archive")); + return ResultError(Tr::tr("Not an archive.")); if (r == ARCHIVE_EOF) break; @@ -232,7 +232,7 @@ void Unarchiver::start() Result<> Unarchiver::result() const { if (m_async.isCanceled()) - return ResultError(Tr::tr("Canceled")); + return ResultError(Tr::tr("Canceled.")); return m_async.result(); } diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index d5ea0068e63..a4e67dfe15a 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -2122,7 +2122,7 @@ Result<> BinEditorDocument::openImpl(const FilePath &filePath, quint64 offset) const qint64 size = filePath.fileSize(); if (size < 0) { // FIXME: Was: file.errorString(), but we don't have a file anymore. - return ResultError(Tr::tr("Cannot open %1: %2").arg(filePath.toUserOutput())); + return ResultError(Tr::tr("Cannot open \"%1\".").arg(filePath.toUserOutput())); } if (size == 0) @@ -2133,7 +2133,7 @@ Result<> BinEditorDocument::openImpl(const FilePath &filePath, quint64 offset) return ResultError(Tr::tr("The file is too big for the Binary Editor (max. 32GB).")); if (offset >= quint64(size)) - return ResultError(Tr::tr("File offset too large")); + return ResultError(Tr::tr("File offset too large.")); setFilePath(filePath); setSizes(offset, size); diff --git a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp index d3514fbc5bd..2975ea1fc20 100644 --- a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp +++ b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp @@ -121,7 +121,8 @@ void QdbWatcher::forkHostServer() showMessage(Tr::tr("QDB host server started."), false); else showMessage( - Tr::tr("Could not start QDB host server in %1").arg(qdbFilePath.toUserOutput()), true); + Tr::tr("Could not start QDB host server in \"%1\".").arg(qdbFilePath.toUserOutput()), + true); } void QdbWatcher::retry() diff --git a/src/plugins/boot2qt/qdbdevice.cpp b/src/plugins/boot2qt/qdbdevice.cpp index 74aab10408e..9ae8109ee76 100644 --- a/src/plugins/boot2qt/qdbdevice.cpp +++ b/src/plugins/boot2qt/qdbdevice.cpp @@ -161,7 +161,7 @@ public: setTitle(Tr::tr("Device Settings")); nameLineEdit = new QLineEdit(this); - nameLineEdit->setPlaceholderText(Tr::tr("A short, free-text description")); + nameLineEdit->setPlaceholderText(Tr::tr("A short, free-text description.")); addressLineEdit = new QLineEdit(this); addressLineEdit->setPlaceholderText(Tr::tr("Host name or IP address")); diff --git a/src/plugins/boot2qt/qdbmakedefaultappstep.cpp b/src/plugins/boot2qt/qdbmakedefaultappstep.cpp index c4c5a3f7321..94bd40ddf49 100644 --- a/src/plugins/boot2qt/qdbmakedefaultappstep.cpp +++ b/src/plugins/boot2qt/qdbmakedefaultappstep.cpp @@ -29,8 +29,8 @@ public: : AbstractRemoteLinuxDeployStep(bsl, id) { selection.setSettingsKey("QdbMakeDefaultDeployStep.MakeDefault"); - selection.addOption(Tr::tr("Set this application to start by default")); - selection.addOption(Tr::tr("Reset default application")); + selection.addOption(Tr::tr("Set This Application to Start by Default")); + selection.addOption(Tr::tr("Reset Default Application")); setInternalInitializer([this] { return isDeploymentPossible(); }); } diff --git a/src/plugins/coco/globalsettings.cpp b/src/plugins/coco/globalsettings.cpp index f703d241aeb..d87b9a2776a 100644 --- a/src/plugins/coco/globalsettings.cpp +++ b/src/plugins/coco/globalsettings.cpp @@ -253,7 +253,7 @@ GlobalSettingsPage::GlobalSettingsPage() : m_widget(nullptr) { setId(Constants::COCO_SETTINGS_PAGE_ID); - setDisplayName(QCoreApplication::translate("Coco", "Coco")); + setDisplayName(Tr::tr("Coco")); setCategory("I.Coco"); // Category I contains also the C++ settings. } diff --git a/src/plugins/compilerexplorer/compilerexplorereditor.cpp b/src/plugins/compilerexplorer/compilerexplorereditor.cpp index d3896fb2ae3..4e9d1765b35 100644 --- a/src/plugins/compilerexplorer/compilerexplorereditor.cpp +++ b/src/plugins/compilerexplorer/compilerexplorereditor.cpp @@ -384,7 +384,7 @@ Result<> JsonSettingsDocument::open(const FilePath &filePath, const FilePath &realFilePath) { if (!filePath.isReadableFile()) - return ResultError(Tr::tr("File not readable")); + return ResultError(Tr::tr("File not readable.")); Result<QByteArray> contents = realFilePath.fileContents(); if (!contents) diff --git a/src/plugins/coreplugin/foldernavigationwidget.cpp b/src/plugins/coreplugin/foldernavigationwidget.cpp index d10f7a48c31..ddccadb4b7d 100644 --- a/src/plugins/coreplugin/foldernavigationwidget.cpp +++ b/src/plugins/coreplugin/foldernavigationwidget.cpp @@ -692,6 +692,7 @@ void FolderNavigationWidget::contextMenuEvent(QContextMenuEvent *ev) if (isDir) { FilePath topLevel; if (IVersionControl *vc = VcsManager::findVersionControlForDirectory(filePath, &topLevel)) { + //: %1 = version control name const QString text = Tr::tr("%1 Log Directory").arg(vc->displayName()); QAction *vcsLogDirectory = new QAction(text, this); menu.addAction(vcsLogDirectory); diff --git a/src/plugins/cppeditor/quickfixes/addmodulefrominclude.cpp b/src/plugins/cppeditor/quickfixes/addmodulefrominclude.cpp index 145a3f9f4b4..73e112b72d0 100644 --- a/src/plugins/cppeditor/quickfixes/addmodulefrominclude.cpp +++ b/src/plugins/cppeditor/quickfixes/addmodulefrominclude.cpp @@ -36,7 +36,7 @@ public: : CppQuickFixOperation(interface) , m_module(module) { - setDescription(Tr::tr("Add project dependency %1").arg(module)); + setDescription(Tr::tr("Add Project Dependency %1").arg(module)); } void perform() override diff --git a/src/plugins/cppeditor/quickfixes/bringidentifierintoscope.cpp b/src/plugins/cppeditor/quickfixes/bringidentifierintoscope.cpp index 25191a1920d..6ba4e58e816 100644 --- a/src/plugins/cppeditor/quickfixes/bringidentifierintoscope.cpp +++ b/src/plugins/cppeditor/quickfixes/bringidentifierintoscope.cpp @@ -314,9 +314,10 @@ AddIncludeForUndefinedIdentifierOp::AddIncludeForUndefinedIdentifierOp( , m_include(include) , m_module(module) { - const QString desc = !m_module.isEmpty() - ? Tr::tr("Add #include %1 and project dependency %2").arg(m_include, m_module) - : Tr::tr("Add #include %1").arg(m_include); + const QString desc + = !m_module.isEmpty() + ? Tr::tr("Add #include %1 and Project Dependency %2").arg(m_include, m_module) + : Tr::tr("Add #include %1").arg(m_include); setDescription(desc); } diff --git a/src/plugins/cppeditor/quickfixes/convertstringliteral.cpp b/src/plugins/cppeditor/quickfixes/convertstringliteral.cpp index 015c9eabdf7..e943a6e79cb 100644 --- a/src/plugins/cppeditor/quickfixes/convertstringliteral.cpp +++ b/src/plugins/cppeditor/quickfixes/convertstringliteral.cpp @@ -89,6 +89,7 @@ static QString msgQtStringLiteralDescription(const QString &replacement) static QString msgQtStringLiteralOperatorDescription(const QString &replacement) { + //: %1 = operator name like "QLatin1Char" return Tr::tr("Append %1 operator").arg(replacement); } @@ -653,7 +654,7 @@ class WrapStringLiteral: public CppQuickFixFactory actions = SingleQuoteAction | ConvertToLatin1CharLiteralOperatorAction | objectiveCActions; description = Tr::tr( - "Convert to Character Literal and Append QLatin1Char operator"); + "Convert to Character Literal and Append QLatin1Char Operator"); result << new WrapStringLiteralOp( interface, priority, actions, description, literal); } diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 2303fd074fe..117b61395ce 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -2590,11 +2590,18 @@ bool DebuggerEngine::showStoppedBySignalMessageBox(QString meaning, QString name name = ' ' + Tr::tr("<Unknown>", "name") + ' '; if (meaning.isEmpty()) meaning = ' ' + Tr::tr("<Unknown>", "meaning") + ' '; - const QString msg = Tr::tr("<p>The debugged process stopped because it received a " - "signal from the operating system.<p>" - "<table><tr><td>Signal name : </td><td>%1</td></tr>" - "<tr><td>Signal meaning : </td><td>%2</td></tr></table>") - .arg(name, meaning); + const QString msg = QString("<p>%1</p>" + "<table>" + "<tr><td>%2</td><td>%3</td></tr>" + "<tr><td>%4</td><td>%5</td></tr>" + "</table>") + .arg( + Tr::tr("The debugged process stopped because it received a signal " + "from the operating system."), + Tr::tr("Signal name:"), + name, + Tr::tr("Signal meaning:"), + meaning); d->m_alertBox = AsynchronousMessageBox::information(Tr::tr("Signal Received"), msg); return true; @@ -2602,9 +2609,9 @@ bool DebuggerEngine::showStoppedBySignalMessageBox(QString meaning, QString name void DebuggerEngine::showStoppedByExceptionMessageBox(const QString &description) { - const QString msg = - Tr::tr("<p>The debugged process stopped because it triggered an exception.<p>%1"). - arg(description); + const QString msg = "<p>" + + Tr::tr("The debugged process stopped because it triggered an exception.") + + "</p><p>" + description + "</p>"; AsynchronousMessageBox::information(Tr::tr("Exception Triggered"), msg); } diff --git a/src/plugins/extensionmanager/extensionmanagersettings.cpp b/src/plugins/extensionmanager/extensionmanagersettings.cpp index 3b70b86862a..bcf961d6ea1 100644 --- a/src/plugins/extensionmanager/extensionmanagersettings.cpp +++ b/src/plugins/extensionmanager/extensionmanagersettings.cpp @@ -42,10 +42,10 @@ ExtensionManagerSettings::ExtensionManagerSettings() } repositoryUrls.setSettingsKey("RepositoryUrls"); - repositoryUrls.setLabelText(Tr::tr("Repository Urls:")); + repositoryUrls.setLabelText(Tr::tr("Repository URLs:")); repositoryUrls.setToolTip( - Tr::tr("Repositories to query for Extensions. You can specify local paths or " - "http(s) urls that should be merged with the main repository.")); + Tr::tr("Repositories to query for extensions. You can specify local paths or " + "HTTP(S) URLs that should be merged with the main repository.")); repositoryUrls.setDefaultValue( {"https://github.com/qt-creator/extension-registry/archive/refs/heads/main.tar.gz"}); diff --git a/src/plugins/extensionmanager/extensionmanagerwidget.cpp b/src/plugins/extensionmanager/extensionmanagerwidget.cpp index f71fbcd6bb0..058e8d0bc6a 100644 --- a/src/plugins/extensionmanager/extensionmanagerwidget.cpp +++ b/src/plugins/extensionmanager/extensionmanagerwidget.cpp @@ -180,7 +180,7 @@ public: QString versionStr = remoteSpec->version(); if (!isCompatible) - versionStr += Tr::tr(" (Incompatible)"); + versionStr += " " + Tr::tr("(Incompatible)"); else if (initialIndex == -1) initialIndex = i; @@ -914,7 +914,7 @@ void ExtensionManagerWidget::fetchAndInstallPlugin(const QUrl &url, bool update, QMessageBox::warning( ICore::dialogParent(), Tr::tr("Download Error"), - Tr::tr("Downloaded extension has invalid hash")); + Tr::tr("Downloaded extension has an invalid hash.")); return DoneResult::Error; } diff --git a/src/plugins/fakevim/fakevimactions.cpp b/src/plugins/fakevim/fakevimactions.cpp index 53b622c2eb8..de43e2529e5 100644 --- a/src/plugins/fakevim/fakevimactions.cpp +++ b/src/plugins/fakevim/fakevimactions.cpp @@ -88,8 +88,8 @@ FakeVimSettings::FakeVimSettings() "Backspace", "bs", Tr::tr("Backspace:")); setup(&isKeyword, "@,48-57,_,192-255,a-z,A-Z", "IsKeyword", "isk", Tr::tr("Keyword characters:")); - setup(&clipboard, {}, "Clipboard", "cb", Tr::tr("")); - setup(&formatOptions, {}, "formatoptions", "fo", Tr::tr("")); + setup(&clipboard, {}, "Clipboard", "cb", ""); + setup(&formatOptions, {}, "formatoptions", "fo", ""); // Emulated plugins setup(&emulateVimCommentary, false, "commentary", {}, "vim-commentary"); diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 56972f57804..abbd4b87a78 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -496,7 +496,7 @@ FakeVimExCommandsMappings::FakeVimExCommandsMappings() m_commandEdit->setValidationFunction([](const QString &text) -> Result<> { if (QRegularExpression(text).isValid()) return ResultOk; - return ResultError(Tr::tr("The pattern \"%1\" is no valid regular expression").arg(text)); + return ResultError(Tr::tr("The pattern \"%1\" is no valid regular expression.").arg(text)); }); auto resetButton = new QPushButton(Tr::tr("Reset"), m_commandBox); resetButton->setToolTip(Tr::tr("Reset to default.")); diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index e718b7f707a..92345a9c63b 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -3638,7 +3638,7 @@ void GitClient::StashInfo::stashPrompt(const QString &command, const QString &st cancelButton->setToolTip(Tr::tr("Cancel %1.").arg(command)); QPushButton *diffButton = msgBox.addButton(Tr::tr("Di&ff && Cancel"), QMessageBox::RejectRole); - diffButton->setToolTip(Tr::tr("Show a Diff of the local changes and cancel %1.").arg(command)); + diffButton->setToolTip(Tr::tr("Show a diff of the local changes and cancel %1.").arg(command)); msgBox.exec(); diff --git a/src/plugins/imageviewer/imageviewerfile.cpp b/src/plugins/imageviewer/imageviewerfile.cpp index 3d7453cf24e..a09bb90edad 100644 --- a/src/plugins/imageviewer/imageviewerfile.cpp +++ b/src/plugins/imageviewer/imageviewerfile.cpp @@ -77,7 +77,7 @@ Result<> ImageViewerFile::openImpl(const FilePath &filePath) cleanUp(); if (!filePath.isReadableFile()) - return ResultError(Tr::tr("File not readable")); + return ResultError(Tr::tr("File not readable.")); const QString &fileName = filePath.toUrlishString(); QByteArray format = QImageReader::imageFormat(fileName); diff --git a/src/plugins/projectexplorer/customparser.cpp b/src/plugins/projectexplorer/customparser.cpp index d7b6fa98e32..470c7147f31 100644 --- a/src/plugins/projectexplorer/customparser.cpp +++ b/src/plugins/projectexplorer/customparser.cpp @@ -328,7 +328,8 @@ private: (m_where == CustomParsersSelectionWidget::InBuildConfig && s.buildDefault) || (m_where == CustomParsersSelectionWidget::InRunConfig && s.runDefault); if (projectDefault) { - checkBox->setText(Tr::tr("%1 (Project default)").arg(s.displayName)); + //: %1 = parser display name + checkBox->setText(Tr::tr("%1 (project default)").arg(s.displayName)); if (!isSelected) parsers.append(s.id); } diff --git a/src/plugins/projectexplorer/customparserssettingspage.cpp b/src/plugins/projectexplorer/customparserssettingspage.cpp index b3ea4efaff0..000f067df98 100644 --- a/src/plugins/projectexplorer/customparserssettingspage.cpp +++ b/src/plugins/projectexplorer/customparserssettingspage.cpp @@ -85,15 +85,15 @@ QVariant CustomParsersModel::headerData(int section, Qt::Orientation orientation case Qt::ToolTipRole: switch (section) { case 0: - result = Tr::tr("The name of the custom parser"); + result = Tr::tr("The name of the custom parser."); break; case 1: result = Tr::tr("This custom parser is used by default for all build configurations of " - "the project"); + "the project."); break; case 2: result = Tr::tr( - "This custom parser is used by default for all run configurations of the project"); + "This custom parser is used by default for all run configurations of the project."); break; } } diff --git a/src/plugins/projectexplorer/devicesupport/idevice.cpp b/src/plugins/projectexplorer/devicesupport/idevice.cpp index eb4e33a77cf..8660cd34d7e 100644 --- a/src/plugins/projectexplorer/devicesupport/idevice.cpp +++ b/src/plugins/projectexplorer/devicesupport/idevice.cpp @@ -262,7 +262,7 @@ IDevice::IDevice() freePortsAspect.setSettingsKey(PortsSpecKey); freePortsAspect.setLabelText(Tr::tr("Free ports:")); freePortsAspect.setToolTip( - Tr::tr("You can enter lists and ranges like this: '1024,1026-1028,1030'.")); + Tr::tr("You can enter lists and ranges like this: \"1024,1026-1028,1030\".")); freePortsAspect.setHistoryCompleter("PortRange"); } diff --git a/src/plugins/projectexplorer/devicesupport/processlist.cpp b/src/plugins/projectexplorer/devicesupport/processlist.cpp index 47896b386e1..712f4061586 100644 --- a/src/plugins/projectexplorer/devicesupport/processlist.cpp +++ b/src/plugins/projectexplorer/devicesupport/processlist.cpp @@ -108,7 +108,7 @@ void ProcessList::update() } } else { d->model.rootItem()->appendChild(new DeviceProcessTreeItem( - {0, {}, Tr::tr("Failed to fetch process list")}, Qt::NoItemFlags)); + {0, {}, Tr::tr("Failed to fetch process list.")}, Qt::NoItemFlags)); QStringList errors = result.error().split('\n'); for (const QString &error : errors) { diff --git a/src/plugins/projectexplorer/devicesupport/sshparameters.cpp b/src/plugins/projectexplorer/devicesupport/sshparameters.cpp index b8ed927aaa3..94e0e42c849 100644 --- a/src/plugins/projectexplorer/devicesupport/sshparameters.cpp +++ b/src/plugins/projectexplorer/devicesupport/sshparameters.cpp @@ -252,13 +252,12 @@ SshParameters SshParametersAspectContainer::sshParameters() const SshParametersAspectContainer::SshParametersAspectContainer() { useKeyFile.setDefaultValue(SshParameters::AuthenticationTypeAll); - useKeyFile.setToolTip( - Tr::tr("Enable to specify a private key file to use for authentication, " - "otherwise the default mechanism is used for authentication " - "(password, .sshconfig and the default private key)")); + useKeyFile.setToolTip(Tr::tr("Enable to specify a private key file to use for authentication, " + "otherwise the default mechanism is used for authentication " + "(password, .sshconfig and the default private key).")); useKeyFile.setLabelText(Tr::tr("Use specific key:")); - hostKeyCheckingMode.setToolTip(Tr::tr("The device's SSH host key checking mode")); + hostKeyCheckingMode.setToolTip(Tr::tr("The device's SSH host key checking mode.")); hostKeyCheckingMode.setLabelText(Tr::tr("Host key check:")); hostKeyCheckingMode.setDisplayStyle(SelectionAspect::DisplayStyle::ComboBox); hostKeyCheckingMode.addOption("None", Tr::tr("No host key checking")); @@ -267,30 +266,30 @@ SshParametersAspectContainer::SshParametersAspectContainer() host.setDisplayStyle(StringAspect::DisplayStyle::LineEditDisplay); host.setPlaceHolderText(Tr::tr("Host name or IP address")); - host.setToolTip(Tr::tr("The device's host name or IP address")); + host.setToolTip(Tr::tr("The device's host name or IP address.")); host.setHistoryCompleter("HostName"); host.setLabelText(Tr::tr("Host name:")); userName.setDisplayStyle(StringAspect::DisplayStyle::LineEditDisplay); userName.setPlaceHolderText(Tr::tr("User name")); - userName.setToolTip(Tr::tr("The device's SSH user name")); + userName.setToolTip(Tr::tr("The device's SSH user name.")); userName.setHistoryCompleter("UserName"); userName.setLabelText(Tr::tr("User name:")); port.setDefaultValue(22); port.setRange(1, 65535); - port.setToolTip(Tr::tr("The device's SSH port number")); + port.setToolTip(Tr::tr("The device's SSH port number.")); port.setLabelText(Tr::tr("SSH port:")); privateKeyFile.setPlaceHolderText(Tr::tr("Private key file")); - privateKeyFile.setToolTip(Tr::tr("The device's private key file")); + privateKeyFile.setToolTip(Tr::tr("The device's private key file.")); privateKeyFile.setLabelText(Tr::tr("Private key file:")); privateKeyFile.setHistoryCompleter("KeyFile"); privateKeyFile.setEnabler(&useKeyFile); timeout.setDefaultValue(10); timeout.setLabelText(Tr::tr("Timeout:")); - timeout.setToolTip(Tr::tr("The device's SSH connection timeout")); + timeout.setToolTip(Tr::tr("The device's SSH connection timeout.")); } } // namespace ProjectExplorer diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index dc82680bf8d..6a48589539b 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -4101,6 +4101,7 @@ void ProjectExplorerPlugin::updateRunActions() void ProjectExplorerPlugin::updateVcsActions(const QString &vcsDisplayName) { + //: %1 = version control name dd->m_vcsLogAction->setText(Tr::tr("%1 Log Directory").arg(vcsDisplayName)); } diff --git a/src/plugins/python/pyprojecttoml.cpp b/src/plugins/python/pyprojecttoml.cpp index 26b482a5154..ae62f3b5652 100644 --- a/src/plugins/python/pyprojecttoml.cpp +++ b/src/plugins/python/pyprojecttoml.cpp @@ -29,7 +29,7 @@ PyProjectTomlError PyProjectTomlError::TypeError( { return PyProjectTomlError( PyProjectTomlErrorType::TypeError, - Tr::tr("Type error: \"%1\" must be a \"%2\", not a \"%3\"") + Tr::tr("Type error: \"%1\" must be a \"%2\", not a \"%3\".") .arg(QString::fromUtf8(nodeName)) .arg(QString::fromUtf8(expectedType)) .arg(QString::fromUtf8(actualType)), @@ -41,7 +41,7 @@ PyProjectTomlError PyProjectTomlError::MissingNodeError( { return PyProjectTomlError( PyProjectTomlErrorType::MissingNode, - Tr::tr("Missing node error: \"%1\" table must contain a \"%2\" node") + Tr::tr("Missing node error: \"%1\" table must contain a \"%2\" node.") .arg(QString::fromUtf8(nodeName)) .arg(QString::fromUtf8(key)), line); @@ -51,7 +51,7 @@ PyProjectTomlError PyProjectTomlError::EmptyNodeError(const std::string &nodeNam { return PyProjectTomlError( PyProjectTomlErrorType::EmptyNode, - Tr::tr("Node \"%1\" is empty").arg(QString::fromUtf8(nodeName)), + Tr::tr("Node \"%1\" is empty.").arg(QString::fromUtf8(nodeName)), line); } diff --git a/src/plugins/qmljseditor/qmljseditorplugin.cpp b/src/plugins/qmljseditor/qmljseditorplugin.cpp index 8467422fb25..84014dce150 100644 --- a/src/plugins/qmljseditor/qmljseditorplugin.cpp +++ b/src/plugins/qmljseditor/qmljseditorplugin.cpp @@ -319,8 +319,7 @@ static FormatResult reformatByCustomFormatter( const FilePath &formatter = settings.customFormatterPath; const QStringList &args = settings.customFormatterArguments.split(" ", Qt::SkipEmptyParts); if (!formatter.isExecutableFile()) { - MessageManager::writeSilently( - Tr::tr("Custom Formatter path not found.")); + MessageManager::writeSilently(Tr::tr("Custom formatter path not found.")); return FormatResult::Failed; } const CommandLine commandLine(formatter, args); diff --git a/src/plugins/qmljstools/qmljscodestylepreferenceswidget.cpp b/src/plugins/qmljstools/qmljscodestylepreferenceswidget.cpp index 319549ce2a4..e5d30cf9add 100644 --- a/src/plugins/qmljstools/qmljscodestylepreferenceswidget.cpp +++ b/src/plugins/qmljstools/qmljscodestylepreferenceswidget.cpp @@ -27,20 +27,14 @@ BuiltinFormatterSettingsWidget::BuiltinFormatterSettingsWidget(QWidget *parent, m_tabSettingsWidget->setParent(this); using namespace Layouting; - Column { - Group { - title(Tr::tr("Builtin Formatter Settings")), - Column { - m_tabSettingsWidget, - Group { - title(Tr::tr("Other Settings")), - Form { - Tr::tr("Line Length:"), m_lineLength, br - } - } - } - } - }.attachTo(this); + Column{Group{ + title(Tr::tr("Built-in Formatter Settings")), + Column{ + m_tabSettingsWidget, + Group{ + title(Tr::tr("Other Settings")), + Form{Tr::tr("Line length:"), m_lineLength, br}}}}} + .attachTo(this); connect( &m_lineLength, diff --git a/src/plugins/squish/objectsmapdocument.cpp b/src/plugins/squish/objectsmapdocument.cpp index 2b47dfded21..ffe18fa35aa 100644 --- a/src/plugins/squish/objectsmapdocument.cpp +++ b/src/plugins/squish/objectsmapdocument.cpp @@ -46,7 +46,7 @@ Result<> ObjectsMapDocument::saveImpl(const FilePath &filePath, bool autoSave) const bool writeOk = writeFile(filePath); if (!writeOk) - return ResultError(Tr::tr("Failed to write \"%1\"").arg(filePath.toUserOutput())); + return ResultError(Tr::tr("Failed to write \"%1\".").arg(filePath.toUserOutput())); if (!autoSave) { setModified(false); @@ -98,7 +98,7 @@ Result<> ObjectsMapDocument::buildObjectsMapTree(const QByteArray &contents) const QString objectName = QString::fromUtf8(line.left(tabPosition).trimmed()); if (!objectName.startsWith(ObjectsMapTreeItem::COLON)) { qDeleteAll(itemForName); - return ResultError(Tr::tr("Object name does not start with colon")); + return ResultError(Tr::tr("Object name does not start with colon.")); } ObjectsMapTreeItem *item = new ObjectsMapTreeItem(objectName, @@ -175,7 +175,7 @@ QByteArray ObjectsMapDocument::contents() const Result<> ObjectsMapDocument::openImpl(const FilePath &fileName, const FilePath &realFileName) { if (fileName.isEmpty()) - return ResultError("File name is empty"); // FIXME: Find somethong better + return ResultError("File name is empty."); // FIXME: Find somethong better QByteArray text; if (realFileName.fileName() == "objects.map") { diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index 0a7e29a4fba..bfe959dbaf4 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -231,6 +231,7 @@ static void showUpdateInfo(const QList<Update> &updates, scrollArea->setFrameShape(QFrame::NoFrame); scrollArea->viewport()->setAutoFillBackground(false); label->setAutoFillBackground(false); + //: in the sense "details of the update" scrollArea->setWindowTitle(Tr::tr("Update Details")); return scrollArea; }); |