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>
</message>
<message>
<source>Invalid state name</source>
<translation>Neplatný název stavu</translation>
<source>Invalid state name.</source>
<translation>Neplatný název stavu.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Name already used in another state</source>
<translation>Název je již používán jiným stavem</translation>
<source>Name already used in another state.</source>
<translation>Název je již používán jiným stavem.</translation>
</message>
</context>
<context>

View File

@@ -30154,16 +30154,16 @@ Dette er uafhængigt af visibility-egenskaben i QML.</translation>
<translation>grundlæggende tilstand</translation>
</message>
<message>
<source>Invalid state name</source>
<translation>Ugyldig tilstandsnavn</translation>
<source>Invalid state name.</source>
<translation>Ugyldig tilstandsnavn.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Name already used in another state</source>
<translation>Navn allerede brugt i anden tilstand</translation>
<source>Name already used in another state.</source>
<translation>Navn allerede brugt i anden tilstand.</translation>
</message>
</context>
<context>
@@ -31402,8 +31402,8 @@ Se &quot;Checking Code Syntax&quot;-dokumentation for mere information.</transla
<translation>Qt Quick</translation>
</message>
<message>
<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>
<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>
</message>
<message>
<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>
</message>
<message>
<source>Invalid state name</source>
<translation>Ungültiger Name des Zustands</translation>
<source>Invalid state name.</source>
<translation>Ungültiger Name des Zustands.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Name already used in another state</source>
<translation>Der Name wird bereits von einem anderen Zustand verwendet</translation>
<source>Name already used in another state.</source>
<translation>Der Name wird bereits von einem anderen Zustand verwendet.</translation>
</message>
</context>
<context>
@@ -19756,8 +19756,8 @@ gehören nicht zu den verifizierten Remotes in %3. Anderes Verzeichnis angeben?<
<context>
<name>QmlJSTools</name>
<message>
<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>
<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>
</message>
<message>
<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>
</message>
<message>
<source>Invalid state name</source>
<translation>Nom d&apos;état invalide</translation>
<source>Invalid state name.</source>
<translation>Nom d&apos;état invalide.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Name already used in another state</source>
<translation>Le nom est déjà utilisé dans un autre état</translation>
<source>Name already used in another state.</source>
<translation>Le nom est déjà utilisé dans un autre état.</translation>
</message>
</context>
<context>

View File

@@ -28364,16 +28364,16 @@ Locked items cannot be modified or selected.</source>
<translation></translation>
</message>
<message>
<source>Invalid state name</source>
<translation></translation>
<source>Invalid state name.</source>
<translation></translation>
</message>
<message>
<source>The empty string as a name is reserved for the base state.</source>
<translation></translation>
</message>
<message>
<source>Name already used in another state</source>
<translation></translation>
<source>Name already used in another state.</source>
<translation></translation>
</message>
</context>
<context>
@@ -28867,8 +28867,8 @@ Qt Creator know about a likely URI.</source>
&quot;// @uri My.Module.Uri&quot; を記述することによって Qt Creator に URI を通知できます。</translation>
</message>
<message>
<source>The type will only be available in the QML editors when the type name is a string literal</source>
<translation>QML </translation>
<source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>QML </translation>
</message>
<message>
<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>
</message>
<message>
<source>Invalid state name</source>
<translation>Niepoprawna nazwa stanu</translation>
<source>Invalid state name.</source>
<translation>Niepoprawna nazwa stanu.</translation>
</message>
<message>
<source>The empty string as a name is reserved for the base state.</source>
<translation>Pusta nazwa jest zarezerwowana dla stanu bazowego.</translation>
</message>
<message>
<source>Name already used in another state</source>
<translation>Nazwa jest już użyta w innym stanie</translation>
<source>Name already used in another state.</source>
<translation>Nazwa jest już użyta w innym stanie.</translation>
</message>
</context>
<context>

View File

@@ -38820,16 +38820,16 @@ This is independent of the visibility property in QML.</source>
<translation>исходное состояние</translation>
</message>
<message>
<source>Invalid state name</source>
<translation>Неверное название состояния</translation>
<source>Invalid state name.</source>
<translation>Неверное название состояния.</translation>
</message>
<message>
<source>The empty string as a name is reserved for the base state.</source>
<translation>Пустая строка зарезервирована как название исходного состояния.</translation>
</message>
<message>
<source>Name already used in another state</source>
<translation>Название уже используется другим состоянием</translation>
<source>Name already used in another state.</source>
<translation>Название уже используется другим состоянием.</translation>
</message>
</context>
<context>
@@ -40620,8 +40620,8 @@ For more information, see the &quot;Checking Code Syntax&quot; documentation.</s
<translation></translation>
</message>
<message>
<source>The type will only be available in the QML editors when the type name is a string literal</source>
<translation>Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML</translation>
<source>The type will only be available in the QML editors when the type name is a string literal.</source>
<translation>Имя типа должно быть строковым литералом, чтобы он был доступен в редакторах QML.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Invalid state name</source>
<translation>Neveljavno ime stanja</translation>
<source>Invalid state name.</source>
<translation>Neveljavno ime stanja.</translation>
</message>
<message>
<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>
</message>
<message>
<source>Name already used in another state</source>
<translation>Ime je že uporabljeno v drugem stanju</translation>
<source>Name already used in another state.</source>
<translation>Ime je že uporabljeno v drugem stanju.</translation>
</message>
</context>
<context>

View File

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

View File

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

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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;
}

View File

@@ -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 {

View File

@@ -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;
});