From 0fc5963793b4c30cdebbe6d189736751e97e2351 Mon Sep 17 00:00:00 2001 From: Beat Hangartner Date: Fri, 9 Oct 2026 13:16:44 +0200 Subject: [PATCH] Write the list of refused dropped files with an English colon The message listing the files a drop could not add wrote each line as "name : reason", with the space French puts before a colon, and as a fixed string that no translation could change. It is now a tr() text, "name: reason", so each language can write it its own way. Suggested in the review of #1416. Co-Authored-By: Claude Opus 5.5 --- sources/diagramview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index d282999cb..e758b91de 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -455,7 +455,7 @@ void DiagramView::handleImageFilesDrop(QDropEvent *e) QString error; const QImage image = ImageDrop::load(file, &error); if (image.isNull()) - refused << QStringLiteral("%1 : %2").arg(QFileInfo(file).fileName(), error); + refused << tr("%1: %2").arg(QFileInfo(file).fileName(), error); else items << new DiagramImageItem(QPixmap::fromImage(image)); }