From c4ac5e414a67d0c50dabe9ee5ee7f98d940d7833 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 19 Oct 2022 18:08:39 +0200 Subject: [PATCH] UI text: Use a full stop in the end of messages And fix the capitalization of some message box titles. Task-number: QTCREATORBUG-28334 Change-Id: I858eefd5a12494723c40e0253a3708fa77284d1b Reviewed-by: Eike Ziller Reviewed-by: --- share/qtcreator/translations/qtcreator_cs.ts | 8 ++++---- share/qtcreator/translations/qtcreator_da.ts | 12 ++++++------ share/qtcreator/translations/qtcreator_de.ts | 12 ++++++------ share/qtcreator/translations/qtcreator_fr.ts | 8 ++++---- share/qtcreator/translations/qtcreator_ja.ts | 12 ++++++------ share/qtcreator/translations/qtcreator_pl.ts | 8 ++++---- share/qtcreator/translations/qtcreator_ru.ts | 12 ++++++------ share/qtcreator/translations/qtcreator_sl.ts | 8 ++++---- share/qtcreator/translations/qtcreator_zh_CN.ts | 8 ++++---- share/qtcreator/translations/qtcreator_zh_TW.ts | 8 ++++---- src/libs/qmljs/qmljsfindexportedcpptypes.cpp | 2 +- src/plugins/cppeditor/cppmodelmanager.cpp | 14 +++++++------- src/plugins/gitlab/gitlabprojectsettings.cpp | 4 ++-- .../propertyeditor/dynamicpropertiesproxymodel.cpp | 4 ++-- .../components/stateseditor/stateseditormodel.cpp | 4 ++-- src/plugins/studiowelcome/qdsnewdialog.cpp | 2 +- 16 files changed, 63 insertions(+), 63 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_cs.ts b/share/qtcreator/translations/qtcreator_cs.ts index d50fe0ad53d..bc5a04a3a74 100644 --- a/share/qtcreator/translations/qtcreator_cs.ts +++ b/share/qtcreator/translations/qtcreator_cs.ts @@ -35698,16 +35698,16 @@ Chcete přesto soubor s nastavením nahrát? Základní stav - Invalid state name - Neplatný název stavu + Invalid state name. + Neplatný název stavu. The empty string as a name is reserved for the base state. Prázdný řetězec znaků je vyhrazen jako název základního stavu. - Name already used in another state - Název je již používán jiným stavem + Name already used in another state. + Název je již používán jiným stavem. diff --git a/share/qtcreator/translations/qtcreator_da.ts b/share/qtcreator/translations/qtcreator_da.ts index 0553fb4fb1c..1e58e2c653f 100644 --- a/share/qtcreator/translations/qtcreator_da.ts +++ b/share/qtcreator/translations/qtcreator_da.ts @@ -30154,16 +30154,16 @@ Dette er uafhængigt af visibility-egenskaben i QML. grundlæggende tilstand - Invalid state name - Ugyldig tilstandsnavn + Invalid state name. + Ugyldig tilstandsnavn. The empty string as a name is reserved for the base state. Den tomme streng som et navn er reserveret til den grundlæggende tilstand. - Name already used in another state - Navn allerede brugt i anden tilstand + Name already used in another state. + Navn allerede brugt i anden tilstand. @@ -31402,8 +31402,8 @@ Se "Checking Code Syntax"-dokumentation for mere information.Qt Quick - The type will only be available in the QML editors when the type name is a string literal - Typen er kun tilgængelig i QML-redigeringerne når typenavnet er en streng-literal + The type will only be available in the QML editors when the type name is a string literal. + Typen er kun tilgængelig i QML-redigeringerne når typenavnet er en streng-literal. The module URI cannot be determined by static analysis. The type will be available diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index f7f0c214108..a9e15a33d2e 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -12868,16 +12868,16 @@ Soll es noch einmal versucht werden? Grundzustand - Invalid state name - Ungültiger Name des Zustands + Invalid state name. + Ungültiger Name des Zustands. The empty string as a name is reserved for the base state. Eine leere Zeichenkette ist als Name des Basiszustands reserviert. - Name already used in another state - Der Name wird bereits von einem anderen Zustand verwendet + Name already used in another state. + Der Name wird bereits von einem anderen Zustand verwendet. @@ -19756,8 +19756,8 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?< QmlJSTools - The type will only be available in the QML editors when the type name is a string literal - Dieser Typ wird im QML Editor nur sichtbar sein, wenn der Typname ein Zeichenketten-Literal ist + The type will only be available in the QML editors when the type name is a string literal. + Dieser Typ wird im QML Editor nur sichtbar sein, wenn der Typname ein Zeichenketten-Literal ist. The module URI cannot be determined by static analysis. The type will be available diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 0c92bc4fafe..6336d3030cc 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -35326,16 +35326,16 @@ Do you want to retry? état de base - Invalid state name - Nom d'état invalide + Invalid state name. + Nom d'état invalide. The empty string as a name is reserved for the base state. La chaîne vide comme nom est réservée à l'état de base. - Name already used in another state - Le nom est déjà utilisé dans un autre état + Name already used in another state. + Le nom est déjà utilisé dans un autre état. diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 08042303af5..b79e85852ea 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -28364,16 +28364,16 @@ Locked items cannot be modified or selected. 初期状態 - Invalid state name - 無効な状態名 + Invalid state name. + 無効な状態名。 The empty string as a name is reserved for the base state. 空文字は初期状態用に予約された名前です。 - Name already used in another state - 名前が他の状態名と重複しています + Name already used in another state. + 名前が他の状態名と重複しています。 @@ -28867,8 +28867,8 @@ Qt Creator know about a likely URI. "// @uri My.Module.Uri" を記述することによって Qt Creator に URI を通知できます。 - The type will only be available in the QML editors when the type name is a string literal - この型は型名が文字列リテラルであるため、QML エディタでのみ利用可能できます + The type will only be available in the QML editors when the type name is a string literal. + この型は型名が文字列リテラルであるため、QML エディタでのみ利用可能できます。 The module URI cannot be determined by static analysis. The type will be available diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index a6ac92674d0..8d893b967eb 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -15860,16 +15860,16 @@ Ponowić próbę? Stan bazowy - Invalid state name - Niepoprawna nazwa stanu + Invalid state name. + Niepoprawna nazwa stanu. The empty string as a name is reserved for the base state. Pusta nazwa jest zarezerwowana dla stanu bazowego. - Name already used in another state - Nazwa jest już użyta w innym stanie + Name already used in another state. + Nazwa jest już użyta w innym stanie. diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index 5c193377396..7dfce2514a1 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -38820,16 +38820,16 @@ This is independent of the visibility property in QML. исходное состояние - Invalid state name - Неверное название состояния + Invalid state name. + Неверное название состояния. The empty string as a name is reserved for the base state. Пустая строка зарезервирована как название исходного состояния. - Name already used in another state - Название уже используется другим состоянием + Name already used in another state. + Название уже используется другим состоянием. @@ -40620,8 +40620,8 @@ For more information, see the "Checking Code Syntax" documentation. - The type will only be available in the QML editors when the type name is a string literal - Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML + The type will only be available in the QML editors when the type name is a string literal. + Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML. The module URI cannot be determined by static analysis. The type will be available diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 7f4ef186521..bed9083bd44 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -25066,16 +25066,16 @@ Ali še vedno želite naložiti nastavitveno datoteko? osnovno stanje - Invalid state name - Neveljavno ime stanja + Invalid state name. + Neveljavno ime stanja. The empty string as a name is reserved for the base state. Prazen niz za ime je rezervirano za osnovno stanje. - Name already used in another state - Ime je že uporabljeno v drugem stanju + Name already used in another state. + Ime je že uporabljeno v drugem stanju. diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index 551984479a6..d63cca82f24 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -33406,16 +33406,16 @@ Do you want to retry? 基线状态 - Invalid state name - 无效状态名称 + Invalid state name. + 无效状态名称。 The empty string as a name is reserved for the base state. 空字符串是为基线状态保留的名称。 - Name already used in another state - 名称已经被另一个状态使用 + Name already used in another state. + 名称已经被另一个状态使用。 diff --git a/share/qtcreator/translations/qtcreator_zh_TW.ts b/share/qtcreator/translations/qtcreator_zh_TW.ts index 1b0160912b6..a6dfb77b626 100644 --- a/share/qtcreator/translations/qtcreator_zh_TW.ts +++ b/share/qtcreator/translations/qtcreator_zh_TW.ts @@ -20463,16 +20463,16 @@ Do you want to retry? 基本狀態 - Invalid state name - 無效狀態名稱 + Invalid state name. + 無效狀態名稱。 The empty string as a name is reserved for the base state. 空字串是為基本狀態保留的名稱。 - Name already used in another state - 此名稱已經被其他狀態使用 + Name already used in another state. + 此名稱已經被其他狀態使用。 diff --git a/src/libs/qmljs/qmljsfindexportedcpptypes.cpp b/src/libs/qmljs/qmljsfindexportedcpptypes.cpp index 20a708133d9..2e07d91f22c 100644 --- a/src/libs/qmljs/qmljsfindexportedcpptypes.cpp +++ b/src/libs/qmljs/qmljsfindexportedcpptypes.cpp @@ -251,7 +251,7 @@ protected: _doc->fileName(), line, column, QmlJS::FindExportedCppTypes::tr( - "The type will only be available in the QML editors when the type name is a string literal")); + "The type will only be available in the QML editors when the type name is a string literal.")); return false; } diff --git a/src/plugins/cppeditor/cppmodelmanager.cpp b/src/plugins/cppeditor/cppmodelmanager.cpp index da8fdb53f62..9efc42b5ab9 100644 --- a/src/plugins/cppeditor/cppmodelmanager.cpp +++ b/src/plugins/cppeditor/cppmodelmanager.cpp @@ -342,19 +342,19 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) .arg(reason)); }; static const auto showFallbackWarning = [](const QString &reason) { - Core::MessageManager::writeSilently(Tr::tr("%1, falling back to built-in preprocessor") + Core::MessageManager::writeSilently(Tr::tr("%1, falling back to built-in preprocessor.") .arg(reason)); }; static const auto saveAndOpen = [](const FilePath &filePath, const QByteArray &contents, bool inNextSplit) { SaveFile f(filePath.toString()); if (!f.open()) { - showError(Tr::tr("Failed to open output file \"%1\"").arg(filePath.toUserOutput())); + showError(Tr::tr("Failed to open output file \"%1\".").arg(filePath.toUserOutput())); return; } f.write(contents); if (!f.commit()) { - showError(Tr::tr("Failed to write output file \"%1\"").arg(filePath.toUserOutput())); + showError(Tr::tr("Failed to write output file \"%1\".").arg(filePath.toUserOutput())); return; } f.close(); @@ -386,7 +386,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) const Project * const project = ProjectTree::currentProject(); if (!project || !project->activeTarget() || !project->activeTarget()->activeBuildConfiguration()) { - showFallbackWarning(Tr::tr("Could not determine which compiler to invoke")); + showFallbackWarning(Tr::tr("Could not determine which compiler to invoke.")); useBuiltinPreprocessor(); return; } @@ -398,7 +398,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) } else if (classifier.isCxx() || classifier.isHeader()) { tc = ToolChainKitAspect::cxxToolChain(project->activeTarget()->kit()); } else { - showFallbackWarning(Tr::tr("Could not determine which compiler to invoke")); + showFallbackWarning(Tr::tr("Could not determine which compiler to invoke.")); useBuiltinPreprocessor(); return; } @@ -408,7 +408,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) && (tc->typeId() == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID || tc->typeId() == ProjectExplorer::Constants::CLANG_CL_TOOLCHAIN_TYPEID); if (!isGcc && !isMsvc) { - showFallbackWarning(Tr::tr("Could not determine compiler command line")); + showFallbackWarning(Tr::tr("Could not determine compiler command line.")); useBuiltinPreprocessor(); return; } @@ -418,7 +418,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit) return pp->belongsToProject(ProjectTree::currentProject()); }); if (!projectPart) { - showFallbackWarning(Tr::tr("Could not determine compiler command line")); + showFallbackWarning(Tr::tr("Could not determine compiler command line.")); useBuiltinPreprocessor(); return; } diff --git a/src/plugins/gitlab/gitlabprojectsettings.cpp b/src/plugins/gitlab/gitlabprojectsettings.cpp index 6cc171d5fd0..44e9ba1ee2b 100644 --- a/src/plugins/gitlab/gitlabprojectsettings.cpp +++ b/src/plugins/gitlab/gitlabprojectsettings.cpp @@ -215,12 +215,12 @@ void GitLabProjectSettingsWidget::onConnectionChecked(const Project &project, } else { if (project.accessLevel != -1) { m_infoLabel->setType(Utils::InfoLabel::Ok); - m_infoLabel->setText(tr("Accessible (%1)") + m_infoLabel->setText(tr("Accessible (%1).") .arg(accessLevelString(project.accessLevel))); linkable = true; } else { m_infoLabel->setType(Utils::InfoLabel::Warning); - m_infoLabel->setText(tr("Read only access")); + m_infoLabel->setText(tr("Read only access.")); } } m_infoLabel->setVisible(true); diff --git a/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp index f0a27f5a980..ee89eebffe6 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp @@ -152,8 +152,8 @@ void DynamicPropertiesProxyModel::createProperty(const QString &name, const QStr const ModelNode modelNode = selectedNodes.constFirst(); if (modelNode.isValid()) { if (modelNode.hasProperty(name.toUtf8())) { - Core::AsynchronousMessageBox::warning(tr("Property already exists"), - tr("Property '%1' already exists") + Core::AsynchronousMessageBox::warning(tr("Property Already Exists"), + tr("Property \"%1\" already exists.") .arg(name)); return; } diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index f2adcf4f363..f06dae49388 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -170,10 +170,10 @@ void StatesEditorModel::renameState(int internalNodeId, const QString &newName) if (newName.isEmpty() ||! m_statesEditorView->validStateName(newName)) { QTimer::singleShot(0, [newName]{ Core::AsynchronousMessageBox::warning( - tr("Invalid state name"), + tr("Invalid State Name"), newName.isEmpty() ? tr("The empty string as a name is reserved for the base state.") : - tr("Name already used in another state")); + tr("Name already used in another state.")); }); reset(); } else { diff --git a/src/plugins/studiowelcome/qdsnewdialog.cpp b/src/plugins/studiowelcome/qdsnewdialog.cpp index ce23919cbea..da5224a292d 100644 --- a/src/plugins/studiowelcome/qdsnewdialog.cpp +++ b/src/plugins/studiowelcome/qdsnewdialog.cpp @@ -87,7 +87,7 @@ QdsNewDialog::QdsNewDialog(QWidget *parent) m_dialog->installEventFilter(this); QObject::connect(&m_wizard, &WizardHandler::wizardCreationFailed, this, [this]() { - QMessageBox::critical(m_dialog, tr("New project"), tr("Failed to initialize data")); + QMessageBox::critical(m_dialog, tr("New Project"), tr("Failed to initialize data.")); reject(); delete this; });