forked from qt-creator/qt-creator
Fix various translated strings
Change-Id: Id45cd546f42b1ef2a84cd8eda45bb87ad8d405d7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -476,7 +476,7 @@ void IssuesWidget::updateNamedFilters()
|
|||||||
|
|
||||||
const QIcon global = Utils::Icons::LOCKED.icon();
|
const QIcon global = Utils::Icons::LOCKED.icon();
|
||||||
const QIcon user = USER_ICON.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)
|
for (const auto &it : userFilters)
|
||||||
m_namedFilters->addItem(user, it.displayName, QVariant::fromValue(it));
|
m_namedFilters->addItem(user, it.displayName, QVariant::fromValue(it));
|
||||||
for (const auto &it : globalFilters)
|
for (const auto &it : globalFilters)
|
||||||
|
@@ -98,7 +98,7 @@ static bool analysisPathValid(const FilePath &analysisPath, QString *error)
|
|||||||
static const QRegularExpression invalid("^(.*/)?\\.\\.?(/.*)?$");
|
static const QRegularExpression invalid("^(.*/)?\\.\\.?(/.*)?$");
|
||||||
if (invalid.match(analysisPath.path()).hasMatch()) {
|
if (invalid.match(analysisPath.path()).hasMatch()) {
|
||||||
if (error)
|
if (error)
|
||||||
*error = Tr::tr("Invalid path elements (. or ..)");
|
*error = Tr::tr("Invalid path elements (. or ..).");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -152,9 +152,9 @@ CppQuickFixSettingsWidget::CppQuickFixSettingsWidget()
|
|||||||
"Leave empty to apply heuristics."));
|
"Leave empty to apply heuristics."));
|
||||||
|
|
||||||
const auto jsTestButton = new QPushButton(Tr::tr("Test"));
|
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;
|
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");
|
jsTestInputField->setText("myValue");
|
||||||
const auto makeResultField = [] {
|
const auto makeResultField = [] {
|
||||||
const auto resultField = new QLineEdit;
|
const auto resultField = new QLineEdit;
|
||||||
|
@@ -1036,7 +1036,7 @@ expected_str<void> DockerDevicePrivate::startContainer()
|
|||||||
|
|
||||||
if (deadline.hasExpired() && !DockerApi::instance()->isContainerRunning(m_container)) {
|
if (deadline.hasExpired() && !DockerApi::instance()->isContainerRunning(m_container)) {
|
||||||
m_startProcess->stop();
|
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();
|
qCDebug(dockerDeviceLog) << "Started container: " << m_startProcess->commandLine();
|
||||||
|
@@ -175,7 +175,7 @@ public:
|
|||||||
this,
|
this,
|
||||||
&HeadingWidget::pluginInstallationRequested);
|
&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->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
||||||
removeButton->hide();
|
removeButton->hide();
|
||||||
connect(removeButton, &QAbstractButton::pressed, this, [this]() {
|
connect(removeButton, &QAbstractButton::pressed, this, [this]() {
|
||||||
@@ -183,7 +183,7 @@ public:
|
|||||||
requestRestart();
|
requestRestart();
|
||||||
});
|
});
|
||||||
|
|
||||||
updateButton = new Button(Tr::tr("Update ..."), Button::LargePrimary);
|
updateButton = new Button(Tr::tr("Update..."), Button::LargePrimary);
|
||||||
updateButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
updateButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
||||||
updateButton->hide();
|
updateButton->hide();
|
||||||
connect(updateButton, &QAbstractButton::pressed, this, &HeadingWidget::pluginUpdateRequested);
|
connect(updateButton, &QAbstractButton::pressed, this, &HeadingWidget::pluginUpdateRequested);
|
||||||
|
@@ -171,8 +171,9 @@ WindowsSettingsWidget::WindowsSettingsWidget()
|
|||||||
{ NugetPathExistsRow, Tr::tr("NuGet path exists.") },
|
{ NugetPathExistsRow, Tr::tr("NuGet path exists.") },
|
||||||
{ WindowsAppSdkPathExists, Tr::tr("Windows App SDK path exists.") }
|
{ WindowsAppSdkPathExists, Tr::tr("Windows App SDK path exists.") }
|
||||||
};
|
};
|
||||||
m_winAppSdkSummary = new SummaryWidget(winAppSdkValidationPoints,
|
m_winAppSdkSummary = new SummaryWidget(
|
||||||
Tr::tr("Windows App SDK Settings are OK."),
|
winAppSdkValidationPoints,
|
||||||
|
Tr::tr("Windows App SDK settings are OK."),
|
||||||
Tr::tr("Windows App SDK settings have errors."),
|
Tr::tr("Windows App SDK settings have errors."),
|
||||||
winAppSdkDetailsWidget);
|
winAppSdkDetailsWidget);
|
||||||
|
|
||||||
@@ -294,10 +295,10 @@ GroupItem WindowsSettingsWidget::downloadNugetRecipe()
|
|||||||
|
|
||||||
const auto failDialog = [=](const QString &msgSuffix = {}) {
|
const auto failDialog = [=](const QString &msgSuffix = {}) {
|
||||||
QStringList sl;
|
QStringList sl;
|
||||||
sl << Tr::tr("NuGet downloading failed.");
|
sl << Tr::tr("NuGet download failed.");
|
||||||
if (!msgSuffix.isEmpty())
|
if (!msgSuffix.isEmpty())
|
||||||
sl << msgSuffix;
|
sl << msgSuffix;
|
||||||
sl << Tr::tr("Opening NuGet URL for manual download.");
|
sl << Tr::tr("Open NuGet URL for manual download?");
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(sl.join(" "));
|
msgBox.setText(sl.join(" "));
|
||||||
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);
|
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);
|
||||||
@@ -429,7 +430,7 @@ void WindowsSettingsWidget::downloadWindowsAppSdk()
|
|||||||
const FilePath downloadPath = m_downloadPathChooser->filePath();
|
const FilePath downloadPath = m_downloadPathChooser->filePath();
|
||||||
const FilePath winAppSdkPath = m_winAppSdkPathChooser->filePath();
|
const FilePath winAppSdkPath = m_winAppSdkPathChooser->filePath();
|
||||||
const FilePath nugetPath = m_nugetPathChooser->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";
|
const QString winAppSdkDownloadUrl = "https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads";
|
||||||
|
|
||||||
if (m_winAppSdkSummary->rowsOk({WindowsAppSdkPathExists})) {
|
if (m_winAppSdkSummary->rowsOk({WindowsAppSdkPathExists})) {
|
||||||
@@ -467,10 +468,10 @@ void WindowsSettingsWidget::downloadWindowsAppSdk()
|
|||||||
|
|
||||||
const auto failDialog = [=](const QString &msgSuffix = {}) {
|
const auto failDialog = [=](const QString &msgSuffix = {}) {
|
||||||
QStringList sl;
|
QStringList sl;
|
||||||
sl << Tr::tr("Windows App SDK downloading failed.");
|
sl << Tr::tr("Windows App SDK download failed.");
|
||||||
if (!msgSuffix.isEmpty())
|
if (!msgSuffix.isEmpty())
|
||||||
sl << msgSuffix;
|
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;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(sl.join(" "));
|
msgBox.setText(sl.join(" "));
|
||||||
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);
|
msgBox.addButton(Tr::tr("Cancel"), QMessageBox::RejectRole);
|
||||||
|
@@ -158,8 +158,8 @@ bool QmllsClientSettings::isValidOnProject(ProjectExplorer::Project *project) co
|
|||||||
|
|
||||||
const QtVersion *qtVersion = qtVersionFromProject(project);
|
const QtVersion *qtVersion = qtVersionFromProject(project);
|
||||||
if (!qtVersion) {
|
if (!qtVersion) {
|
||||||
Core::MessageManager::writeSilently(Tr::tr(
|
Core::MessageManager::writeSilently(
|
||||||
"Current kit does not have a valid Qt version, disabling QML Language Server..."));
|
Tr::tr("Current kit does not have a valid Qt version, disabling QML Language Server."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -128,7 +128,7 @@ private:
|
|||||||
|
|
||||||
const Internal::TargetInformation targetInformation(target);
|
const Internal::TargetInformation targetInformation(target);
|
||||||
if (!targetInformation.isValid()) {
|
if (!targetInformation.isValid()) {
|
||||||
reportFailure(Tr::tr("Cannot debug: Invalid target information"));
|
reportFailure(Tr::tr("Cannot debug: Invalid target information."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user