Tr: Various small fixes

Change-Id: Ic86d6b6a4aae7b301557eaa4296beb9a31399e03
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2023-05-26 13:04:31 +02:00
parent db70923c6f
commit b7f8143728
9 changed files with 18 additions and 21 deletions

View File

@@ -18989,8 +18989,8 @@ Doppelklicken Sie einen Eintrag um ihn zu ändern.</translation>
<translation>Datei &quot;%1&quot; konnte nicht zum Schreiben der Protokolle geöffnet werden.</translation> <translation>Datei &quot;%1&quot; konnte nicht zum Schreiben der Protokolle geöffnet werden.</translation>
</message> </message>
<message> <message>
<source>Save Enabled Categories As</source> <source>Save Enabled Categories As...</source>
<translation>Ausgewählte Kategorien speichern unter</translation> <translation>Ausgewählte Kategorien speichern unter...</translation>
</message> </message>
<message> <message>
<source>Failed to write preset file &quot;%1&quot;.</source> <source>Failed to write preset file &quot;%1&quot;.</source>
@@ -27390,7 +27390,7 @@ Private Check-Ins werden standardmäßig nicht zum entfernten Repository gepusht
<translation>ALT+I,Alt+C</translation> <translation>ALT+I,Alt+C</translation>
</message> </message>
<message> <message>
<source>Settings ...</source> <source>Settings...</source>
<translation>Einstellungen...</translation> <translation>Einstellungen...</translation>
</message> </message>
<message> <message>
@@ -31889,8 +31889,8 @@ Beispiel: *.cpp%1*.h</translation>
<translation>In die Zwischenablage kopieren</translation> <translation>In die Zwischenablage kopieren</translation>
</message> </message>
<message> <message>
<source>Cannot handle MIME type of message %1</source> <source>Cannot handle MIME type &quot;%1&quot; of message.</source>
<translation>MIME type %1 der Nachricht kann nicht verarbeitet werden</translation> <translation>MIME type &quot;%1&quot; der Nachricht kann nicht verarbeitet werden.</translation>
</message> </message>
<message> <message>
<source>Generic StdIO Language Server</source> <source>Generic StdIO Language Server</source>
@@ -32025,7 +32025,7 @@ Beispiel: *.cpp%1*.h</translation>
<translation>In &quot;%1&quot; ist keine ID angegeben.</translation> <translation>In &quot;%1&quot; ist keine ID angegeben.</translation>
</message> </message>
<message> <message>
<source>Could not parse JSON message &quot;%1&quot;.</source> <source>Could not parse JSON message: &quot;%1&quot;.</source>
<translation>Die JSON-Nachricht konnte nicht ausgewertet werden: &quot;%1&quot;.</translation> <translation>Die JSON-Nachricht konnte nicht ausgewertet werden: &quot;%1&quot;.</translation>
</message> </message>
<message> <message>
@@ -38801,7 +38801,7 @@ Benutzen Sie dies nur für Prototypen. Sie können damit keine vollständige Anw
<translation>%1: Vollständiger Pfad zur Hauptdatei.</translation> <translation>%1: Vollständiger Pfad zur Hauptdatei.</translation>
</message> </message>
<message> <message>
<source>%1: The name the active kit.</source> <source>%1: The name of the active kit.</source>
<extracomment>%1 is something like &quot;Active project&quot;</extracomment> <extracomment>%1 is something like &quot;Active project&quot;</extracomment>
<translation>%1: Der Name des aktiven Kits.</translation> <translation>%1: Der Name des aktiven Kits.</translation>
</message> </message>
@@ -44979,7 +44979,7 @@ wirklich löschen?</translation>
<translation>Vollständiger Pfad zum Ziel-&quot;bin&quot;-Verzeichnis der Qt-Version des aktiven Kits des aktiven Projekts.&lt;br&gt;Wahrscheinlich sollten Sie stattdessen %1 nutzen.</translation> <translation>Vollständiger Pfad zum Ziel-&quot;bin&quot;-Verzeichnis der Qt-Version des aktiven Kits des aktiven Projekts.&lt;br&gt;Wahrscheinlich sollten Sie stattdessen %1 nutzen.</translation>
</message> </message>
<message> <message>
<source>Full path to the libexec bin directory of the Qt version in the active kit of the active project.</source> <source>Full path to the libexec directory of the Qt version in the active kit of the active project.</source>
<translation>Vollständiger Pfad zum Host-&quot;libexec&quot;-Verzeichnis der Qt-Version des aktiven Kits des aktiven Projekts.</translation> <translation>Vollständiger Pfad zum Host-&quot;libexec&quot;-Verzeichnis der Qt-Version des aktiven Kits des aktiven Projekts.</translation>
</message> </message>
<message> <message>

View File

@@ -10705,8 +10705,8 @@ will also disable the following plugins:
<translation>Očekivana vrsta %1, ali vrijednost je sadržavala %2</translation> <translation>Očekivana vrsta %1, ali vrijednost je sadržavala %2</translation>
</message> </message>
<message> <message>
<source>Could not parse JSON message &quot;%1&quot;.</source> <source>Could not parse JSON message: &quot;%1&quot;.</source>
<translation>Nije moguće obraditi JSON poruku &quot;%1&quot;.</translation> <translation>Nije moguće obraditi JSON poruku: &quot;%1&quot;.</translation>
</message> </message>
<message> <message>
<source>Expected a JSON object, but got a JSON &quot;%1&quot;.</source> <source>Expected a JSON object, but got a JSON &quot;%1&quot;.</source>

View File

@@ -77,8 +77,7 @@ JsonRpcMessage::JsonRpcMessage(const BaseMessage &message)
if (doc.isObject()) if (doc.isObject())
m_jsonObject = doc.object(); m_jsonObject = doc.object();
else if (doc.isNull()) else if (doc.isNull())
m_parseError = m_parseError = Tr::tr("Could not parse JSON message: \"%1\".").arg(error.errorString());
Tr::tr("Could not parse JSON message \"%1\".").arg(error.errorString());
else else
m_parseError = m_parseError =
Tr::tr("Expected a JSON object, but got a JSON \"%1\" value.").arg(docType(doc)); Tr::tr("Expected a JSON object, but got a JSON \"%1\" value.").arg(docType(doc));

View File

@@ -622,7 +622,7 @@ void LoggingViewManagerWidget::saveLoggingsToFile() const
void LoggingViewManagerWidget::saveEnabledCategoryPreset() const void LoggingViewManagerWidget::saveEnabledCategoryPreset() const
{ {
Utils::FilePath fp = Utils::FileUtils::getSaveFilePath(ICore::dialogParent(), Utils::FilePath fp = Utils::FileUtils::getSaveFilePath(ICore::dialogParent(),
Tr::tr("Save Enabled Categories As")); Tr::tr("Save Enabled Categories As..."));
if (fp.isEmpty()) if (fp.isEmpty())
return; return;
const QList<LoggingCategoryItem> enabled = m_categoryModel->enabledCategories(); const QList<LoggingCategoryItem> enabled = m_categoryModel->enabledCategories();

View File

@@ -559,7 +559,7 @@ void FossilPluginPrivate::createRepositoryActions(const Core::Context &context)
m_fossilContainer->addAction(command); m_fossilContainer->addAction(command);
m_commandLocator->appendCommand(command); m_commandLocator->appendCommand(command);
action = new QAction(Tr::tr("Settings ..."), this); action = new QAction(Tr::tr("Settings..."), this);
m_repositoryActionList.append(action); m_repositoryActionList.append(action);
command = Core::ActionManager::registerAction(action, Constants::CONFIGURE_REPOSITORY, context); command = Core::ActionManager::registerAction(action, Constants::CONFIGURE_REPOSITORY, context);
connect(action, &QAction::triggered, this, &FossilPluginPrivate::configureRepository); connect(action, &QAction::triggered, this, &FossilPluginPrivate::configureRepository);

View File

@@ -71,7 +71,7 @@ void BaseClientInterface::parseCurrentMessage()
if (m_currentMessage.mimeType == JsonRpcMessage::jsonRpcMimeType()) { if (m_currentMessage.mimeType == JsonRpcMessage::jsonRpcMimeType()) {
emit messageReceived(JsonRpcMessage(m_currentMessage)); emit messageReceived(JsonRpcMessage(m_currentMessage));
} else { } else {
emit error(Tr::tr("Cannot handle MIME type of message %1") emit error(Tr::tr("Cannot handle MIME type \"%1\" of message.")
.arg(QString::fromUtf8(m_currentMessage.mimeType))); .arg(QString::fromUtf8(m_currentMessage.mimeType)));
} }
m_currentMessage = BaseMessage(); m_currentMessage = BaseMessage();

View File

@@ -1183,7 +1183,7 @@ void Project::addVariablesToMacroExpander(const QByteArray &prefix,
}); });
expander->registerVariable(fullPrefix + "Kit:Name", expander->registerVariable(fullPrefix + "Kit:Name",
//: %1 is something like "Active project" //: %1 is something like "Active project"
Tr::tr("%1: The name the active kit.").arg(descriptor), Tr::tr("%1: The name of the active kit.").arg(descriptor),
[targetGetter]() -> QString { [targetGetter]() -> QString {
if (const Target *const target = targetGetter()) if (const Target *const target = targetGetter())
return target->kit()->displayName(); return target->kit()->displayName();

View File

@@ -197,7 +197,7 @@ void QtSupportPlugin::extensionsInitialized()
expander->registerVariable( expander->registerVariable(
"ActiveProject::QT_HOST_LIBEXECS", "ActiveProject::QT_HOST_LIBEXECS",
Tr::tr("Full path to the libexec bin directory of the Qt version in the active kit " Tr::tr("Full path to the libexec directory of the Qt version in the active kit "
"of the active project."), "of the active project."),
[]() { []() {
const QtVersion *const qt = activeQtVersion(); const QtVersion *const qt = activeQtVersion();

View File

@@ -69,8 +69,7 @@ static FormatTask format(FormatTask task)
process.setCommand({executable, options}); process.setCommand({executable, options});
process.runBlocking(); process.runBlocking();
if (process.result() != ProcessResult::FinishedWithSuccess) { if (process.result() != ProcessResult::FinishedWithSuccess) {
task.error = Tr::tr("TextEditor", "Failed to format: %1.") task.error = Tr::tr("Failed to format: %1.").arg(process.exitMessage());
.arg(process.exitMessage());
return task; return task;
} }
const QString output = process.cleanedStdErr(); const QString output = process.cleanedStdErr();
@@ -249,8 +248,7 @@ void updateEditorText(QPlainTextEdit *editor, const QString &text)
static void showError(const QString &error) static void showError(const QString &error)
{ {
Core::MessageManager::writeFlashing(Tr::tr("TextEditor", "Error in text formatting: %1") Core::MessageManager::writeFlashing(Tr::tr("Error in text formatting: %1").arg(error.trimmed()));
.arg(error.trimmed()));
} }
/** /**