From aceed15e84730413f105410da71a2676c46e7f9f Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 27 Sep 2021 12:59:03 -0600 Subject: [PATCH] Improve "can not overwrite" message some more This commit uses KUIT formatting for the filename part of the string, fixes a grammar error ("read only" used as an adjective) and adds a bit more detail for the user to help them figure out what happened. --- part/part.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part/part.cpp b/part/part.cpp index 3a59425d8..be205c16e 100644 --- a/part/part.cpp +++ b/part/part.cpp @@ -2550,7 +2550,7 @@ bool Part::saveAs(const QUrl &saveUrl, SaveAsFlags flags) if (realSaveUrl.isLocalFile()) { const QFileInfo fi(realSaveUrl.toLocalFile()); if (fi.exists() && !fi.isWritable()) { - KMessageBox::information(widget(), i18n("File could not be saved in '%1' because it is read only. Save it to another location or change its permissions.", realSaveUrl.toLocalFile())); + KMessageBox::information(widget(), xi18nc("@info", "Could not overwrite %1 because that file is read-only. Try saving to another location or changing that file's permissions.", realSaveUrl.toLocalFile())); return false; } }