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 <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Leena Miettinen
2022-10-19 18:08:39 +02:00
parent d0278ae295
commit c4ac5e414a
16 changed files with 63 additions and 63 deletions

View File

@@ -35698,16 +35698,16 @@ Chcete přesto soubor s nastavením nahrát?</translation>
<translation>Základní stav</translation> <translation>Základní stav</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Neplatný název stavu</translation> <translation>Neplatný název stavu.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Prázdný řetězec znaků je vyhrazen jako název základního stavu.</translation> <translation>Prázdný řetězec znaků je vyhrazen jako název základního stavu.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Název je již používán jiným stavem</translation> <translation>Název je již používán jiným stavem.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -30154,16 +30154,16 @@ Dette er uafhængigt af visibility-egenskaben i QML.</translation>
<translation>grundlæggende tilstand</translation> <translation>grundlæggende tilstand</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Ugyldig tilstandsnavn</translation> <translation>Ugyldig tilstandsnavn.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Den tomme streng som et navn er reserveret til den grundlæggende tilstand.</translation> <translation>Den tomme streng som et navn er reserveret til den grundlæggende tilstand.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Navn allerede brugt i anden tilstand</translation> <translation>Navn allerede brugt i anden tilstand.</translation>
</message> </message>
</context> </context>
<context> <context>
@@ -31402,8 +31402,8 @@ Se &quot;Checking Code Syntax&quot;-dokumentation for mere information.</transla
<translation>Qt Quick</translation> <translation>Qt Quick</translation>
</message> </message>
<message> <message>
<source>The type will only be available in the QML editors when the type name is a string literal</source> <source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>Typen er kun tilgængelig i QML-redigeringerne når typenavnet er en streng-literal</translation> <translation>Typen er kun tilgængelig i QML-redigeringerne når typenavnet er en streng-literal.</translation>
</message> </message>
<message> <message>
<source>The module URI cannot be determined by static analysis. The type will be available <source>The module URI cannot be determined by static analysis. The type will be available

View File

@@ -12868,16 +12868,16 @@ Soll es noch einmal versucht werden?</translation>
<translation>Grundzustand</translation> <translation>Grundzustand</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Ungültiger Name des Zustands</translation> <translation>Ungültiger Name des Zustands.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Eine leere Zeichenkette ist als Name des Basiszustands reserviert.</translation> <translation>Eine leere Zeichenkette ist als Name des Basiszustands reserviert.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Der Name wird bereits von einem anderen Zustand verwendet</translation> <translation>Der Name wird bereits von einem anderen Zustand verwendet.</translation>
</message> </message>
</context> </context>
<context> <context>
@@ -19756,8 +19756,8 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?<
<context> <context>
<name>QmlJSTools</name> <name>QmlJSTools</name>
<message> <message>
<source>The type will only be available in the QML editors when the type name is a string literal</source> <source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>Dieser Typ wird im QML Editor nur sichtbar sein, wenn der Typname ein Zeichenketten-Literal ist</translation> <translation>Dieser Typ wird im QML Editor nur sichtbar sein, wenn der Typname ein Zeichenketten-Literal ist.</translation>
</message> </message>
<message> <message>
<source>The module URI cannot be determined by static analysis. The type will be available <source>The module URI cannot be determined by static analysis. The type will be available

View File

@@ -35326,16 +35326,16 @@ Do you want to retry?</source>
<translation>état de base</translation> <translation>état de base</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Nom d&apos;état invalide</translation> <translation>Nom d&apos;état invalide.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>La chaîne vide comme nom est réservée à l&apos;état de base.</translation> <translation>La chaîne vide comme nom est réservée à l&apos;état de base.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Le nom est déjà utilisé dans un autre état</translation> <translation>Le nom est déjà utilisé dans un autre état.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -28364,16 +28364,16 @@ Locked items cannot be modified or selected.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@@ -28867,8 +28867,8 @@ Qt Creator know about a likely URI.</source>
&quot;// @uri My.Module.Uri&quot; を記述することによって Qt Creator に URI を通知できます。</translation> &quot;// @uri My.Module.Uri&quot; を記述することによって Qt Creator に URI を通知できます。</translation>
</message> </message>
<message> <message>
<source>The type will only be available in the QML editors when the type name is a string literal</source> <source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>QML </translation> <translation>QML </translation>
</message> </message>
<message> <message>
<source>The module URI cannot be determined by static analysis. The type will be available <source>The module URI cannot be determined by static analysis. The type will be available

View File

@@ -15860,16 +15860,16 @@ Ponowić próbę?</translation>
<translation>Stan bazowy</translation> <translation>Stan bazowy</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Niepoprawna nazwa stanu</translation> <translation>Niepoprawna nazwa stanu.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Pusta nazwa jest zarezerwowana dla stanu bazowego.</translation> <translation>Pusta nazwa jest zarezerwowana dla stanu bazowego.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Nazwa jest już użyta w innym stanie</translation> <translation>Nazwa jest już użyta w innym stanie.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -38820,16 +38820,16 @@ This is independent of the visibility property in QML.</source>
<translation>исходное состояние</translation> <translation>исходное состояние</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Неверное название состояния</translation> <translation>Неверное название состояния.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Пустая строка зарезервирована как название исходного состояния.</translation> <translation>Пустая строка зарезервирована как название исходного состояния.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Название уже используется другим состоянием</translation> <translation>Название уже используется другим состоянием.</translation>
</message> </message>
</context> </context>
<context> <context>
@@ -40620,8 +40620,8 @@ For more information, see the &quot;Checking Code Syntax&quot; documentation.</s
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>The type will only be available in the QML editors when the type name is a string literal</source> <source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML</translation> <translation>Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML.</translation>
</message> </message>
<message> <message>
<source>The module URI cannot be determined by static analysis. The type will be available <source>The module URI cannot be determined by static analysis. The type will be available

View File

@@ -25066,16 +25066,16 @@ Ali še vedno želite naložiti nastavitveno datoteko?</translation>
<translation>osnovno stanje</translation> <translation>osnovno stanje</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation>Neveljavno ime stanja</translation> <translation>Neveljavno ime stanja.</translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>Prazen niz za ime je rezervirano za osnovno stanje.</translation> <translation>Prazen niz za ime je rezervirano za osnovno stanje.</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>Ime je že uporabljeno v drugem stanju</translation> <translation>Ime je že uporabljeno v drugem stanju.</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -33406,16 +33406,16 @@ Do you want to retry?</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -20463,16 +20463,16 @@ Do you want to retry?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Invalid state name</source> <source>Invalid state name.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>The empty string as a name is reserved for the base state.</source> <source>The empty string as a name is reserved for the base state.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Name already used in another state</source> <source>Name already used in another state.</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -251,7 +251,7 @@ protected:
_doc->fileName(), _doc->fileName(),
line, column, line, column,
QmlJS::FindExportedCppTypes::tr( 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; return false;
} }

View File

@@ -342,19 +342,19 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit)
.arg(reason)); .arg(reason));
}; };
static const auto showFallbackWarning = [](const QString &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)); .arg(reason));
}; };
static const auto saveAndOpen = [](const FilePath &filePath, const QByteArray &contents, static const auto saveAndOpen = [](const FilePath &filePath, const QByteArray &contents,
bool inNextSplit) { bool inNextSplit) {
SaveFile f(filePath.toString()); SaveFile f(filePath.toString());
if (!f.open()) { 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; return;
} }
f.write(contents); f.write(contents);
if (!f.commit()) { 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; return;
} }
f.close(); f.close();
@@ -386,7 +386,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit)
const Project * const project = ProjectTree::currentProject(); const Project * const project = ProjectTree::currentProject();
if (!project || !project->activeTarget() if (!project || !project->activeTarget()
|| !project->activeTarget()->activeBuildConfiguration()) { || !project->activeTarget()->activeBuildConfiguration()) {
showFallbackWarning(Tr::tr("Could not determine which compiler to invoke")); showFallbackWarning(Tr::tr("Could not determine which compiler to invoke."));
useBuiltinPreprocessor(); useBuiltinPreprocessor();
return; return;
} }
@@ -398,7 +398,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit)
} else if (classifier.isCxx() || classifier.isHeader()) { } else if (classifier.isCxx() || classifier.isHeader()) {
tc = ToolChainKitAspect::cxxToolChain(project->activeTarget()->kit()); tc = ToolChainKitAspect::cxxToolChain(project->activeTarget()->kit());
} else { } else {
showFallbackWarning(Tr::tr("Could not determine which compiler to invoke")); showFallbackWarning(Tr::tr("Could not determine which compiler to invoke."));
useBuiltinPreprocessor(); useBuiltinPreprocessor();
return; return;
} }
@@ -408,7 +408,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit)
&& (tc->typeId() == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID && (tc->typeId() == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID
|| tc->typeId() == ProjectExplorer::Constants::CLANG_CL_TOOLCHAIN_TYPEID); || tc->typeId() == ProjectExplorer::Constants::CLANG_CL_TOOLCHAIN_TYPEID);
if (!isGcc && !isMsvc) { if (!isGcc && !isMsvc) {
showFallbackWarning(Tr::tr("Could not determine compiler command line")); showFallbackWarning(Tr::tr("Could not determine compiler command line."));
useBuiltinPreprocessor(); useBuiltinPreprocessor();
return; return;
} }
@@ -418,7 +418,7 @@ void CppModelManager::showPreprocessedFile(bool inNextSplit)
return pp->belongsToProject(ProjectTree::currentProject()); return pp->belongsToProject(ProjectTree::currentProject());
}); });
if (!projectPart) { if (!projectPart) {
showFallbackWarning(Tr::tr("Could not determine compiler command line")); showFallbackWarning(Tr::tr("Could not determine compiler command line."));
useBuiltinPreprocessor(); useBuiltinPreprocessor();
return; return;
} }

View File

@@ -215,12 +215,12 @@ void GitLabProjectSettingsWidget::onConnectionChecked(const Project &project,
} else { } else {
if (project.accessLevel != -1) { if (project.accessLevel != -1) {
m_infoLabel->setType(Utils::InfoLabel::Ok); m_infoLabel->setType(Utils::InfoLabel::Ok);
m_infoLabel->setText(tr("Accessible (%1)") m_infoLabel->setText(tr("Accessible (%1).")
.arg(accessLevelString(project.accessLevel))); .arg(accessLevelString(project.accessLevel)));
linkable = true; linkable = true;
} else { } else {
m_infoLabel->setType(Utils::InfoLabel::Warning); m_infoLabel->setType(Utils::InfoLabel::Warning);
m_infoLabel->setText(tr("Read only access")); m_infoLabel->setText(tr("Read only access."));
} }
} }
m_infoLabel->setVisible(true); m_infoLabel->setVisible(true);

View File

@@ -152,8 +152,8 @@ void DynamicPropertiesProxyModel::createProperty(const QString &name, const QStr
const ModelNode modelNode = selectedNodes.constFirst(); const ModelNode modelNode = selectedNodes.constFirst();
if (modelNode.isValid()) { if (modelNode.isValid()) {
if (modelNode.hasProperty(name.toUtf8())) { if (modelNode.hasProperty(name.toUtf8())) {
Core::AsynchronousMessageBox::warning(tr("Property already exists"), Core::AsynchronousMessageBox::warning(tr("Property Already Exists"),
tr("Property '%1' already exists") tr("Property \"%1\" already exists.")
.arg(name)); .arg(name));
return; return;
} }

View File

@@ -170,10 +170,10 @@ void StatesEditorModel::renameState(int internalNodeId, const QString &newName)
if (newName.isEmpty() ||! m_statesEditorView->validStateName(newName)) { if (newName.isEmpty() ||! m_statesEditorView->validStateName(newName)) {
QTimer::singleShot(0, [newName]{ QTimer::singleShot(0, [newName]{
Core::AsynchronousMessageBox::warning( Core::AsynchronousMessageBox::warning(
tr("Invalid state name"), tr("Invalid State Name"),
newName.isEmpty() ? newName.isEmpty() ?
tr("The empty string as a name is reserved for the base state.") : 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(); reset();
} else { } else {

View File

@@ -87,7 +87,7 @@ QdsNewDialog::QdsNewDialog(QWidget *parent)
m_dialog->installEventFilter(this); m_dialog->installEventFilter(this);
QObject::connect(&m_wizard, &WizardHandler::wizardCreationFailed, this, [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(); reject();
delete this; delete this;
}); });