Commit aceed15e authored by Nate Graham's avatar Nate Graham
Browse files

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.
parent b5eebfa1
Pipeline #93461 passed with stage
in 14 minutes and 13 seconds
...@@ -2550,7 +2550,7 @@ bool Part::saveAs(const QUrl &saveUrl, SaveAsFlags flags) ...@@ -2550,7 +2550,7 @@ bool Part::saveAs(const QUrl &saveUrl, SaveAsFlags flags)
if (realSaveUrl.isLocalFile()) { if (realSaveUrl.isLocalFile()) {
const QFileInfo fi(realSaveUrl.toLocalFile()); const QFileInfo fi(realSaveUrl.toLocalFile());
if (fi.exists() && !fi.isWritable()) { 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 <filename>%1</filename> because that file is read-only. Try saving to another location or changing that file's permissions.", realSaveUrl.toLocalFile()));
return false; return false;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment