forked from qt-creator/qt-creator
VCS: Language fixes for "files cannot be added dialog"
Amends 078f6df4d6
Change-Id: I4ad8074d2db1d7d8fcd3962af914c5687f6d6fce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
1705440fa3
commit
7ed44ac5a1
@@ -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'))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user