Commit d1bf5116 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

tr()-Fixes for ReadOnlyFilesDialog.



Fix contexts, remove exclamation mark.

Change-Id: Icfd698e10d7e9e8c949919a102c7a482f007f91a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent d684c677
......@@ -92,10 +92,10 @@ ReadOnlyFilesDialogPrivate::ReadOnlyFilesDialogPrivate(IDocument *document, bool
, useVCS(false)
, showWarnings(false)
, document(document)
, mixedText(QApplication::translate("ReadOnlyFilesDialog", "Mixed"))
, makeWritableText(QApplication::translate("ReadOnlyFilesDialog", "Make Writable"))
, versionControlOpenText(QApplication::translate("ReadOnlyFilesDialog", "Open With VCS"))
, saveAsText(QApplication::translate("ReadOnlyFilesDialog", "Save As"))
, mixedText(ReadOnlyFilesDialog::tr("Mixed"))
, makeWritableText(ReadOnlyFilesDialog::tr("Make Writable"))
, versionControlOpenText(ReadOnlyFilesDialog::tr("Open With VCS"))
, saveAsText(ReadOnlyFilesDialog::tr("Save As"))
{}
ReadOnlyFilesDialogPrivate::~ReadOnlyFilesDialogPrivate()
......@@ -220,12 +220,12 @@ void ReadOnlyFilesDialog::promptFailWarning(const QStringList &files, ReadOnlyRe
message += d->failWarning;
break;
default:
title = tr("Canceled Changing Permissions!");
title = tr("Canceled Changing Permissions");
message = d->failWarning;
break;
}
} else {
title = tr("Could Not Change Permissions On Some Files!");
title = tr("Could Not Change Permissions On Some Files");
message = d->failWarning;
message += tr("\nSee details for a complete list of files.");
details = files.join(QLatin1String("\n"));
......
......@@ -653,8 +653,7 @@ static QList<IDocument *> saveModifiedFilesHelper(const QList<IDocument *> &docu
}
if (!roDocuments.isEmpty()) {
Core::Internal::ReadOnlyFilesDialog roDialog(roDocuments, d->m_mainWindow);
roDialog.setShowFailWarning(true, QCoreApplication::translate(
"saveModifiedFilesHelper",
roDialog.setShowFailWarning(true, DocumentManager::tr(
"Could not save the files.",
"error message"));
if (roDialog.exec() == Core::Internal::ReadOnlyFilesDialog::RO_Cancel) {
......
Markdown is supported
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