Fix various translated strings

Change-Id: Id45cd546f42b1ef2a84cd8eda45bb87ad8d405d7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Eike Ziller
2025-02-12 09:42:50 +01:00
parent 62f8ea78bf
commit e27208b9a0
8 changed files with 20 additions and 19 deletions

View File

@@ -476,7 +476,7 @@ void IssuesWidget::updateNamedFilters()
const QIcon global = Utils::Icons::LOCKED.icon();
const QIcon user = USER_ICON.icon();
m_namedFilters->addItem(global, Tr::tr("Show all")); // no active named filter
m_namedFilters->addItem(global, Tr::tr("Show All")); // no active named filter
for (const auto &it : userFilters)
m_namedFilters->addItem(user, it.displayName, QVariant::fromValue(it));
for (const auto &it : globalFilters)

View File

@@ -98,7 +98,7 @@ static bool analysisPathValid(const FilePath &analysisPath, QString *error)
static const QRegularExpression invalid("^(.*/)?\\.\\.?(/.*)?$");
if (invalid.match(analysisPath.path()).hasMatch()) {
if (error)
*error = Tr::tr("Invalid path elements (. or ..)");
*error = Tr::tr("Invalid path elements (. or ..).");
return false;
}
return true;

View File

@@ -152,9 +152,9 @@ CppQuickFixSettingsWidget::CppQuickFixSettingsWidget()
"Leave empty to apply heuristics."));
const auto jsTestButton = new QPushButton(Tr::tr("Test"));
const auto hideJsTestResultsButton = new QPushButton(Tr::tr("Hide test results"));
const auto hideJsTestResultsButton = new QPushButton(Tr::tr("Hide Test Results"));
const auto jsTestInputField = new QLineEdit;
jsTestInputField->setToolTip(Tr::tr("The content of the \"name\" variable"));
jsTestInputField->setToolTip(Tr::tr("The content of the \"name\" variable."));
jsTestInputField->setText("myValue");
const auto makeResultField = [] {
const auto resultField = new QLineEdit;

View File

@@ -1036,7 +1036,7 @@ expected_str<void> DockerDevicePrivate::startContainer()
if (deadline.hasExpired() && !DockerApi::instance()->isContainerRunning(m_container)) {
m_startProcess->stop();
return make_unexpected(Tr::tr("Failed to start container: %1").arg(m_container));
return make_unexpected(Tr::tr("Failed to start container \"%1\".").arg(m_container));
}
qCDebug(dockerDeviceLog) << "Started container: " << m_startProcess->commandLine();

View File

@@ -175,7 +175,7 @@ public:
this,
&HeadingWidget::pluginInstallationRequested);
removeButton = new Button(Tr::tr("Remove ..."), Button::SmallSecondary);
removeButton = new Button(Tr::tr("Remove..."), Button::SmallSecondary);
removeButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
removeButton->hide();
connect(removeButton, &QAbstractButton::pressed, this, [this]() {
@@ -183,7 +183,7 @@ public:
requestRestart();
});
updateButton = new Button(Tr::tr("Update ..."), Button::LargePrimary);
updateButton = new Button(Tr::tr("Update..."), Button::LargePrimary);
updateButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
updateButton->hide();
connect(updateButton, &QAbstractButton::pressed, this, &HeadingWidget::pluginUpdateRequested);

View File

@@ -171,8 +171,9 @@ WindowsSettingsWidget::WindowsSettingsWidget()
{ NugetPathExistsRow, Tr::tr("NuGet path exists.") },
{ WindowsAppSdkPathExists, Tr::tr("Windows App SDK path exists.") }
};
m_winAppSdkSummary = new SummaryWidget(winAppSdkValidationPoints,
Tr::tr("Windows App SDK Settings are OK."),
m_winAppSdkSummary = new SummaryWidget(
winAppSdkValidationPoints,
Tr::tr("Windows App SDK settings are OK."),
Tr::tr("Windows App SDK settings have errors."),
winAppSdkDetailsWidget);
@@ -294,10 +295,10 @@ GroupItem WindowsSettingsWidget::downloadNugetRecipe()
const auto failDialog = [=](const QString &msgSuffix = {}) {
QStringList sl;
sl << Tr::tr("NuGet downloading failed.");
sl << Tr::tr("NuGet download failed.");
if (!msgSuffix.isEmpty())
sl << msgSuffix;
sl << Tr::tr("Opening NuGet URL for manual download.");
sl << Tr::tr("Open NuGet URL for manual download?");
QMessageBox msgBox;
msgBox.setText(sl.join(" "));
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);
@@ -429,7 +430,7 @@ void WindowsSettingsWidget::downloadWindowsAppSdk()
const FilePath downloadPath = m_downloadPathChooser->filePath();
const FilePath winAppSdkPath = m_winAppSdkPathChooser->filePath();
const FilePath nugetPath = m_nugetPathChooser->filePath();
const QString winAppSdkDownloadTitle(Tr::tr("Windows App SDK Downloading"));
const QString winAppSdkDownloadTitle(Tr::tr("Downloading Windows App SDK"));
const QString winAppSdkDownloadUrl = "https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads";
if (m_winAppSdkSummary->rowsOk({WindowsAppSdkPathExists})) {
@@ -467,10 +468,10 @@ void WindowsSettingsWidget::downloadWindowsAppSdk()
const auto failDialog = [=](const QString &msgSuffix = {}) {
QStringList sl;
sl << Tr::tr("Windows App SDK downloading failed.");
sl << Tr::tr("Windows App SDK download failed.");
if (!msgSuffix.isEmpty())
sl << msgSuffix;
sl << Tr::tr("Opening Windows App SDK URL for manual download.");
sl << Tr::tr("Open Windows App SDK URL for manual download?");
QMessageBox msgBox;
msgBox.setText(sl.join(" "));
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);

View File

@@ -158,8 +158,8 @@ bool QmllsClientSettings::isValidOnProject(ProjectExplorer::Project *project) co
const QtVersion *qtVersion = qtVersionFromProject(project);
if (!qtVersion) {
Core::MessageManager::writeSilently(Tr::tr(
"Current kit does not have a valid Qt version, disabling QML Language Server..."));
Core::MessageManager::writeSilently(
Tr::tr("Current kit does not have a valid Qt version, disabling QML Language Server."));
return false;
}

View File

@@ -128,7 +128,7 @@ private:
const Internal::TargetInformation targetInformation(target);
if (!targetInformation.isValid()) {
reportFailure(Tr::tr("Cannot debug: Invalid target information"));
reportFailure(Tr::tr("Cannot debug: Invalid target information."));
return;
}