From 7ed44ac5a1a0100129ac0504691e45cc7b3f5d4c Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Wed, 17 Jul 2024 08:39:01 +0200 Subject: [PATCH] VCS: Language fixes for "files cannot be added dialog" Amends 078f6df4d64 Change-Id: I4ad8074d2db1d7d8fcd3962af914c5687f6d6fce Reviewed-by: Orgad Shaneh Reviewed-by: Eike Ziller --- src/plugins/coreplugin/vcsmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/vcsmanager.cpp b/src/plugins/coreplugin/vcsmanager.cpp index 04414e3a06d..16a4f68ba49 100644 --- a/src/plugins/coreplugin/vcsmanager.cpp +++ b/src/plugins/coreplugin/vcsmanager.cpp @@ -375,8 +375,12 @@ QString VcsManager::msgToAddToVcsFailed(const QStringList &files, const IVersion const qsizetype maxSize = 10; if (size > maxSize) { fileList = files.first(maxSize); - fileList.append(Tr::tr("... and %1 more.").arg(size - maxSize)); + //: %1 = name of VCS system, %2 = lines with file paths + return Tr::tr("Could not add the following files to version control (%1)\n%2\n" + "... and %n more.", "", size - maxSize) + .arg(vc->displayName(), fileList.join(QString(QLatin1Char('\n')))); } + //: %1 = name of VCS system, %2 = lines with file paths return Tr::tr("Could not add the following files to version control (%1)\n%2") .arg(vc->displayName(), fileList.join(QString(QLatin1Char('\n')))); }