From 9fe4993bdc8a166c60c1191292aa353d1937f109 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Tue, 15 Aug 2017 16:28:16 -0400 Subject: Added translations to menu buttons and the panel settings dialogue --- src-qt5/desktop-utils/lumina-fm/FODialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-fm/FODialog.cpp') diff --git a/src-qt5/desktop-utils/lumina-fm/FODialog.cpp b/src-qt5/desktop-utils/lumina-fm/FODialog.cpp index ee22f832..0d04b912 100644 --- a/src-qt5/desktop-utils/lumina-fm/FODialog.cpp +++ b/src-qt5/desktop-utils/lumina-fm/FODialog.cpp @@ -128,7 +128,13 @@ bool FODialog::CheckOverwrite(){ } if(!existing.isEmpty()){ //Prompt for whether to overwrite, not overwrite, or cancel - QMessageBox::StandardButton ans = QMessageBox::question(this, tr("Overwrite Files?"), tr("Do you want to overwrite the existing files?")+"\n"+tr("Note: It will just add a number to the filename otherwise.")+"\n\n"+existing.join(", "), QMessageBox::YesToAll | QMessageBox::NoToAll | QMessageBox::Cancel, QMessageBox::NoToAll); + QMessageBox dialog(QMessageBox::Question, tr("Overwrite Files?"), tr("Do you want to overwrite the existing files?")+"\n"+tr("Note: It will just add a number to the filename otherwise.")+"\n\n"+existing.join(", "), QMessageBox::YesToAll | QMessageBox::NoToAll | QMessageBox::Cancel, this); + + dialog.setButtonText(QMessageBox::YesToAll, tr("YesToAll")); + dialog.setButtonText(QMessageBox::NoToAll, tr("NoToAll")); + dialog.setButtonText(QMessageBox::Cancel, tr("Cancel")); + dialog.setDefaultButton(QMessageBox::NoToAll); + const int ans = dialog.exec(); if(ans==QMessageBox::NoToAll){ Worker->overwrite = 0; } //don't overwrite else if(ans==QMessageBox::YesToAll){ Worker->overwrite = 1; } //overwrite else{ qDebug() << " - Cancelled"; Worker->overwrite = -1; ok = false; } //cancel operations -- cgit