Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b1b09ed9 authored by loh tar's avatar loh tar Committed by Christoph Cullmann

ViewManager: Fix I18n_ARGUMENT_MISSING hint in message box when open a very large file

Test Plan:
Before
{F6463917}
After
{F6463918}

Reviewers: #kate, #vdg, cullmann

Reviewed By: #kate, cullmann

Subscribers: cullmann, pino, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D17428
parent 7a2b2268
......@@ -247,8 +247,9 @@ void KateViewManager::slotDocumentOpen()
}
}
if (!fileListWithTooLargeFiles.isEmpty()) {
const QString text = i18n("<p>You are attempting to open one or more large files:</p><ul>%1</ul><p>Do you want to proceed?</p><p><strong>Beware that kate may stop responding for some time when opening large files.</strong></p>");
const auto ret = KMessageBox::warningYesNo(this, text.arg(fileListWithTooLargeFiles), i18n("Opening Large File"), KStandardGuiItem::cont(), KStandardGuiItem::stop());
const QString text = i18n("<p>You are attempting to open one or more large files:</p><ul>%1</ul><p>Do you want to proceed?</p><p><strong>Beware that kate may stop responding for some time when opening large files.</strong></p>"
, fileListWithTooLargeFiles);
const auto ret = KMessageBox::warningYesNo(this, text, i18n("Opening Large File"), KStandardGuiItem::cont(), KStandardGuiItem::stop());
if (ret == KMessageBox::No) {
return;
}
......
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